JBoss Community

Re: Accessing process variables in rule-task

created by leon_ in jBPM - View the full discussion

The following rules do not seem to fire. I have included ksession.fireUntilHalt() in my procestest. Do I miss anything else?!

 

rule "regel_overheid"

ruleflow-group "RegelsRechtwijzer"    

 

     when     

          $proces : WorkflowProcessInstance()

          $partij : String() from (String)$proces.getVariable("conflictpartij");

          eval($partij == "overheid");    

    

     then

          ((WorkflowProcessInstance)kcontext.getKnowledgeRuntime().getProcessInstance($proces.getId())).setVariable("conflictpartij", "kantonrechter");

end

 

rule "debug_regel"

ruleflow-group "RegelsRechtwijzer"    

#include attributes such as "salience" here...    

     when

          $proces : WorkflowProcessInstance();            

    

     then    

          $proces.setVariable("conflictoplossing", "Kantonrechter");    

          update($proces);

end

Reply to this message by going to Community

Start a new discussion in jBPM at Community