0

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>
vanto
  • 3,134
  • 18
  • 28
user3712116
  • 527
  • 1
  • 4
  • 8

1 Answers1

2

ODE doesn't support Oracle's proprietary extensions. Just do the following:

<assign>
  <from>$ode:pid</from>
  <to>$instance</to>
</assign>
vanto
  • 3,134
  • 18
  • 28