[
https://issues.jboss.org/browse/JBPM-3071?page=com.atlassian.jira.plugin....
]
Kris Verlaenen commented on JBPM-3071:
--------------------------------------
You need to notify the rules engine if you modify an object.
Try adding update(p) after changing its value in the first rule.
Two rules in tandem
-------------------
Key: JBPM-3071
URL:
https://issues.jboss.org/browse/JBPM-3071
Project: jBPM
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Runtime Engine
Affects Versions: jBPM 5.0
Reporter: Tomas Huryn
Assignee: Kris Verlaenen
There are two Rule task in the process.
Content of the first Rule task:
rule "Your First Rule"
ruleflow-group "rfgroup"
dialect "mvel"
when
p: java.awt.Point(x==10)
then
p.x=20;
System.out.println("Rule fired");
end
Content of the second Rule task:
rule "Your Second Rule"
ruleflow-group "rfgroup2"
dialect "mvel"
when
java.awt.Point(x==20)
then
System.out.println("Rule 2 fired")
end
The problem is, that the second rule is never fired - change ot he Point object is not
transfered.
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira