@pedrosacosta:

taskInstance = (TaskInstance) 
processInstance.getTaskMgmtInstance().getTaskInstances().iterator().next();

gives you the first taskInstance of this process, not the UNFINISHED 
taskInstances. A modern IDE has codecompletion, where you can see

taskInstance = (TaskInstance) 
processInstance.getTaskMgmtInstance().getUnfinishedTasks(taskInstance = 
(TaskInstance) 
processInstance.getTaskMgmtInstance().getUnfinishedTasks(processInstance.getRootToken()).iterator().next();).iterator().next();

is also possible. This will give you the unfinished tasks so you can signal 
that one, instead of the already completed one. We are thinking of returning an 
error when an already completed task is signalled, but that will not be in the 
3.1 release.

@forJbpm:

Sorry, I cannot help you since I have no idea what your real problem is. And 
please do not start a new unrelated question in an already existing thread. 
That is confusing to us and other users.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3911019#3911019

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3911019


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to