I encountered the same problem an will create a JIRA issue for it:
I think there is a bug in TaskMgmtinstance.removeSignalling(Token token) of jBPM versions
3.1.4 and 3.2:
| /**
| * removes signalling capabilities from all task instances related to the given
token.
| */
| public void removeSignalling(Token token) {
| if (taskInstances!=null) {
| Iterator iter = taskInstances.iterator();
| while (iter.hasNext()) {
| TaskInstance taskInstance = (TaskInstance) iter.next();
| taskInstance.setSignalling(false);
| }
| }
| }
|
So when ending a Token this method is called for the Token to be ended.
But as you can see signalling is set to false for all TaskInstances that are in the
current TaskMgmtInstance.
It has to be checked, that signalling is removed only from TaskInstances belonging to the
given Token, i.e.
| /**
| * removes signalling capabilities from all task instances related to the given
token.
| */
| public void removeSignalling(Token token) {
| if (taskInstances!=null) {
| Iterator iter = taskInstances.iterator();
| while (iter.hasNext()) {
| TaskInstance taskInstance = (TaskInstance) iter.next();
|
/****************************************************************************************/
| // check, that signalling is removed only from TaskInstances belonging to the given
Token
|
/****************************************************************************************/
| if(taskInstance.getToken.getId() == token.getId)
| taskInstance.setSignalling(false);
| }
| }
| }
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4076659#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...