Skip to content

Important: About using this extension on WSO2 Developer Studio generated files.

juanmanuelz edited this page Jul 23, 2014 · 1 revision

If you are using the WSO2 BPEL editor from WSO2 Developer Studio, you must be careful with the namespace prefix. In the provided example, the extension declaration is this:

<extensions> <extension namespace="http://hasithaa.github.io/BPEL-ClassActivity/" mustUnderstand="yes"/> </extensions>

But, when you're using the designer and you wish to use this custom extension,you must switch to the source code view of your bpel file and write this:

<bpel:extensions> <bpel:extension namespace="http://hasithaa.github.io/BPEL-ClassActivity/" mustUnderstand="yes"></bpel:extension> </bpel:extensions>

For the execution step part the provided example is this:

<extensionActivity> <java:invokeClass name="InvokeClass" class="io.github.hasithaa.java4bpel.sample.LogVariable"> <java:param>myVar</java:param> <java:param>myResponseVar</java:param> </java:invokeClass> </extensionActivity>

and in the source code view of your designer you have to write: <bpel:extensionActivity> <java:invokeClass name="InvokeClass" class="io.github.hasithaa.java4bpel.sample.LogVariable"> <java:param>input</java:param> <java:param>output</java:param> </java:invokeClass> </bpel:extensionActivity>