1 Reply Latest reply on Jun 7, 2013 6:38 AM by sam ni

    end-tasks attribute in task node

    sam ni Newbie

      I'm having a set of task instances for a task. These are getting created in the action class within the node-enter event of the task node.

      I have added the attribute end-tasks="true" and I am having a timer for the task.

      When the timer is completed, all the tasks have to be ended and execution should go to next node.

      This seems to work fine if any of the  task instances have not been ended.

      If I end one of the task instance and the remaining ones are still open, the task is not ended even after the timer has completed.

       

       

                          <task-node name="task node" create-tasks="false" end-tasks="true">

                                    <event type="node-enter">

                                              <action name="test action" class="com.TestAction">

       

                                              </action>

                                    </event>

                                    <task name="task1" >

                                              <timer duedate="2 minutes" transition="signalcheck">

                                              </timer>

                                    </task>

                                    <transition to="next node"></transition>

                          </task-node>

       

      I'm using jbpm v3.

      Please help.

        • 1. Re: end-tasks attribute in task node
          sam ni Newbie

          The issue is now solved.

          I have moved the timer out of the task, but within the task node.

          <task-node name="task node" create-tasks="false" end-tasks="true">

                                        <event type="node-enter">

                                                  <action name="test action" class="com.TestAction">

           

                                                  </action>

                                        </event>

                                        <task name="task1" >                                       

                                        </task>

           

                                        <timer duedate="2 minutes" transition="signalcheck">

                                        </timer>

           

                                        <transition to="next node"></transition>

                              </task-node>

           

          Hope this helps someone.