JBoss Community

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

created by Maciej Swiderski in jBPM - View the full discussion

I can see you use rules as the condition language, so you need to insert process instance into working memory (ksession) before you can access it inside the rule. So you can do it in two ways:

- first createProcessInstance, then insert it into ksession, and start the process instance

- employ process event listener to do it for you, take a look here for sample on how it can be done

 

HTH

Reply to this message by going to Community

Start a new discussion in jBPM at Community