1 2 Previous Next 17 Replies Latest reply on Nov 8, 2006 8:21 AM by Donald.Liu Go to original post
      • 15. Re: Assign Task - 2 users
        Thiago Marafon Newbie

        I know it works...
        what i was trying to do is a way that an user could change the pooled actors by himself, without coding an assignment class...
        If the pooled actors were in the swimlane definition, then I could make a GUI to add or remove actors easily, simply editing the XML

        • 16. Re: Assign Task - 2 users
          falazar Novice

          Did we have any further answers on this?

          Is there a nice simepl front-end way to do this?

          James

          • 17. Re: Assign Task - 2 users
            Donald.Liu Newbie

            # <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.

            1 2 Previous Next