This content has been marked as final. Show 3 replies
You can access process variables from rules so I believe that would work for your case. Just make sure you insert process instance as a fact into the session so you can then access it and its variables.
import org.drools.runtime.process.WorkflowProcessInstance rule "your rule" when p: WorkflowProcessInstance() then System.out.println("Variable is " + p.getVariable("yourVar")); end