0 Replies Latest reply on Nov 28, 2005 4:57 AM by pinston

    Cancel task when timer expires

    pinston

      I am trying to test JBPM fonction and try this scenario:
      post a task to a user
      if the task is not done after some times
      post a new task to the manager

      I tried this:

      <task-node name="task_to_user">
      
       <task name="something a user should do" swimlane="user">
       <event type='task-create'>
       <script>
       System.out.println( "-----------> Task [task_to_user] is created" );
       </script>
       </event>
       </task>
      
       <timer name="countdown"
       duedate="10 seconds"
       transition="tr_task_manager" >
       <script>
       System.out.println("----------> Timer expires ........ ");
       </script>
       </timer>
      
       <transition name="tr_user_to_end" to="end_process">
       <script>
       System.out.println( "-----------> transition [tr_user_to_end]" );
       </script>
       </transition>
      
       <transition name="tr_task_manager" to="task_to_manager">
       <script>
       System.out.println( "-----------> transition [tr_task_manager]" );
       </script>
       </transition>
      
      </task-node>


      My question is:

      Should I have to cancel the task when I am living the task-node in case the timer expires ?

      Because it seems that the task is still there after leaving a task-node.

      Philippe