[
https://jira.jboss.org/jira/browse/JBPM-642?page=com.atlassian.jira.plugi...
]
Joram Barrez commented on JBPM-642:
-----------------------------------
I know that this issue is closed, but I disagree with the current implementation.
- It should not be possible to signal a parent token that is in a fork. For the end-user
this fork-token shouldn't even 'exists' (ie its in fact an implementation
detail).
- When using superstates to divide the process in phases, this also causes problems when
using the token collection to check the current process phases: ie. the 'real tokens
will be in a certain phase, but the parent token is still stuck in the fork (and gives,
from a business-wise view an incorrect result). This can easiliy be hacked around be
checking the node type of the token ... but that should not be done in the first place
...
Signaling RootToken on Fork Node
---------------------------------
Key: JBPM-642
URL:
https://jira.jboss.org/jira/browse/JBPM-642
Project: JBoss jBPM
Issue Type: Feature Request
Components: Core Engine
Reporter: Enric Cecilla
Assignee: Tom Baeyens
Giving the following processdefinition:
*start->fork->a->join->end
->b ^
When RootToken is on Fork node trying to signal again the RootToken actually moves the
token to one branch state, then RootToken can be signalled til it is on the Join node. At
that moment it can be signalled again and it leaves the Join node.
pi.signal();
assertEquals( "fork", pi.getRootToken().getNode().getName() ); //true
pi.signal();
assertEquals( "b", pi.getRootToken().getNode().getName() ); //true
pi.signal();
assertEquals( "join", pi.getRootToken().getNode().getName() ); //true
Does it makes any sense being able to signal a RootToken on Fork node which has children
on every branch? From my point of view signalling on that condition should throw and
Exception. Only child tokens should be allowed to signal since "real" tasks are
on child tokens
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira