[jboss-user] [jBPM] - How to get a process instance id within a sequence flow "condition expression"?

Dmitry Erkin do-not-reply at jboss.com
Sun Jan 20 14:16:45 EST 2013


Dmitry Erkin [https://community.jboss.org/people/dmitry.erkin] created the discussion

"How to get a process instance id within a sequence flow "condition expression"?"

To view the discussion, visit: https://community.jboss.org/message/793103#793103

--------------------------------------------------------------
Hello!
My process has a gateway and two outgoing sequence flows. For each flow I want to set up a condition based on facts stored in a session. The problem is that I can not get a process instance id:

code like this doe not work:

WorkflowProcessInstanceImpl(id == *kcontext.processInstance.id*, $request: variables["request"])
Request($id:id) from $request
not exists(Issue(requestid == $id))

sample code from "jbpm5 developer guide":

WorkflowProcessInstanceImpl( $person: variables["person"])
Person( age< 18 ) from $person

looks like it chooses a particular process instance rather by person's age than by instance id

 any ideas?


Regards,
Dmitry Erkin
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/793103#793103]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20130120/3c595d79/attachment.html 


More information about the jboss-user mailing list