[jboss-user] [JBoss jBPM] - Re: seem a new bug on TaskMgmtInstance to removeSignalling o
holly77
do-not-reply at jboss.com
Wed Aug 22 04:29:32 EDT 2007
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#4076659
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4076659
More information about the jboss-user
mailing list