[jboss-user] [JBoss jBPM] - Re: Assign Task - 2 users

coolfish007 do-not-reply at jboss.com
Wed Nov 8 08:21:22 EST 2006


#  <task-node name="abc" signal="last-wait" create-tasks="false">  
#           
#           
#             <action name="createInstance"  
#         class="CreateTaskInstance">  
#               
#           
#           
#           
#     </task-node>  


# public class CreateTaskInstance implements ActionHandler {  
#   
#     private static final long serialVersionUID = 1L;  
#   
#     public void execute(ExecutionContext executionContext) throws Exception {  
#         Token token = executionContext.getToken();  
#         TaskMgmtInstance tmi = executionContext.getTaskMgmtInstance();  
#   
#         TaskNode taskNode = (TaskNode) executionContext.getNode();  
#         Task task= taskNode.getTask("abc");  
#         tmi.createTaskInstance(task, token)  
#                       .setActorId("1001");  
#         tmi.createTaskInstance(task, token)  
#                      .setActorId("1001");  
#   
#     }  
#   
# }  

This may help you,create 2 same task,when both of the 2 tasks end,the token will go ahead.

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

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



More information about the jboss-user mailing list