How to get instance id of BPEL process in Apache ODE at runtime? Need to return id as response to calling.
I tried this, but it didn't work
<bpelx:exec name="Java_Embedding_1" language="java" version="1.3">
<![CDATA[ setVariableData("instance", new Long(getInstanceId())); ]]>
</bpelx:exec>