Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JBoss User Help »

[jboss-user] [JBoss jBPM] - Newbie question...

scott.stark@jboss.org

2007-07-11


Is there any opportunity to get TaskInstance by Token?


| Token token = ...
| final Collection taskInstances = token.getProcessInstance().getTaskMgmtInstance().getUnfinishedTasks(token);
| for (Object taskInstance : taskInstances) {
|      if (((TaskInstance) taskInstance).getTask().getTaskNode().getName().equals(token.getNode().getName())) {
|       return (TaskInstance)taskInstance;
|      }
|     }

Am I right? Are there any limitations with such aproach?

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

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4062945
_______________________________________________
jboss-user mailing list
jboss-user@(protected)
https://lists.jboss.org/mailman/listinfo/jboss-user
©2008 junlu.com - Jax Systems, LLC, U.S.A.