JBoss Community

How to access processinstance in JPDL?

created by Jimmy Smith in jBPM - View the full discussion

How can I access a process instance in jPDL, eg when I want to pass the id or key of the processInstance to a java activity?

 

<java class="...classname..." method="execute" name="DoSomeJava">
  <arg>
    <object expr="#{??????}"/>
  </arg>
  <transition to="Next Step"/>
</java>

 

What must ????? be to send the processInstanceId/Key to the java class?

I can't seem to find a reference to see which process attributes are available and how. Might also be handy to at times send activity name to generic java classes, etc.

Reply to this message by going to Community

Start a new discussion in jBPM at Community