leon_ [
http://community.jboss.org/people/leon_] created the discussion
"Re: Accessing process variables in rule-task"
To view the discussion, visit:
http://community.jboss.org/message/608176#608176
--------------------------------------------------------------
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
[
http://community.jboss.org/message/608176#608176]
Start a new discussion in jBPM at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]