JBoss Community

Re: Accessing process variables in rule-task

created by Esteban Aliverti in jBPM - View the full discussion

Sorry, I forgot to mention that the WorkflowProcessInstance object is not a fact by default. You need to insert it before the Rule Node is executed. One way to do this is to add a Script Task node that executes:

 

kcontext.getKnowledgeRuntime().insert(kcontext.getProcessInstance());

Reply to this message by going to Community

Start a new discussion in jBPM at Community