isPropagated calculation for event is not correct
-------------------------------------------------
Key: JBPM-783
URL:
http://jira.jboss.com/jira/browse/JBPM-783
Project: JBoss jBPM
Issue Type: Bug
Components: Core Engine
Affects Versions: jBPM 3.2 alpha 1
Reporter: Olga Ivanova
Assigned To: Tom Baeyens
As it is stated in comment inside org.jbpm.graph.def.GraphElement.fireAndPropagateEvent
method
// calculate if the event was fired on this element or if it was a propagated event
boolean isPropagated = (this.equals(executionContext.getEventSource()));
I believe code does not correspond to the intent and should look following:
boolean isPropagated = !(this.equals(executionContext.getEventSource()));
i.e if event source is same element that this, event is not propagated, if they are
different - event is propagated.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira