7 Replies Latest reply on Apr 7, 2009 1:06 AM by balazska

    JBPM remove token from task

    balazska
      Hi!

      How can I remove token from task?


      I have a fork node and then two human task.
      I would like to remove token from the first human task node, if the second is end-ed?
      I wouldn't like to do paralel running or join.

      thanks.

          -->task1->end
      fork-
          -->task2->end

      I want: If task1 or task2 is ended--->the full process is ended :)
        • 1. Re: JBPM remove token from task
          kukeltje.ronald.jbpm.org

          two task for different users? If so, use the low level jbpm api. Otherwise you could put poth tasks in one tasknode and use the jbpm 'signal' attribute and set it to 'first'

          • 2. Re: JBPM remove token from task
            balazska

            thanky you for your answer.


            but, i would like to assign actor-id not pooled actors by the signal case.

            • 3. Re: JBPM remove token from task
              balazska

              And I would like to different transitions from these tasks


              esxmple:


                           
                    -human1--task1-end full process    
              start--
                    -       -task2-end full process    
                    -human2--
                            -task3-end full process    

              • 4. Re: JBPM remove token from task
                balazska

                And I would like to different transitions from these tasks


                esxmple:





                      -human1--task1-end full process     
                start--
                      -
                      -human2--
                              -task3-end full process
                              -task2-end full process    


                 

                • 5. Re: JBPM remove token from task
                  mwohlf

                  babazs babazs wrote on Mar 19, 2009 13:13:


                  thanky you for your answer.

                  but, i would like to assign actor-id not pooled actors by the signal case.


                  Ronald is talking about the signal attribute of the task node which specifies the effect of task completion on the process execution continuation, it's not related to the task assignment, at least not directly afaik.

                  • 6. Re: JBPM remove token from task
                    balazska
                    hi!

                    I try to your advice, but the another task is not removed, after the first or second is ended.

                    What do you think this fragment:?

                    <task-node name="x" signal="first">
                    <task name="y" description="c" signalling="true">                    
                    <assignment actor-id="#{idf.toString()}"  />
                    </task>
                    <task name="z" description="o" signalling="true">                    
                    <assignment actor-id="#{idt.toString()}"   />
                    </task>
                    <transition to="aa" name="vv"></transition>
                    <transition to="bb" name="bb"></transition>

                    </task-node>

                    • 7. Re: JBPM remove token from task
                      balazska
                      Hi!

                      My problem is solved by end-tasks="true" attribute in task-node.

                      Thanks your help very much.