user3712116
user3712116

Reputation: 537

Apache ODE instance ID

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>

Upvotes: 0

Views: 169

Answers (1)

vanto
vanto

Reputation: 3142

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

<assign>
  <from>$ode:pid</from>
  <to>$instance</to>
</assign>

Upvotes: 2

Related Questions