JBoss Community

Re: Process variables rules template relationship

created by Mauricio Salatino in jBPM - View the full discussion

You can also do something like:

 

import org.drools.runtime.process.WorkflowProcessInstance

rule "your rule"
    when
        p: WorkflowProcessInstance($myVar: variables["yourVar"] == "something")
      then
        System.out.println("My Variable is equals to something");
end

Reply to this message by going to Community

Start a new discussion in jBPM at Community