Uploaded image for project: 'jBPM'
  1. jBPM
  2. JBPM-236

Timer (the neverending story)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • jBPM 3.0.0
    • jBPM 3.0.0
    • Runtime Engine
    • None

      I create a timer in a task node, and it works fine. The problem is that the timer still exists and repeats the specified action even if the process instance is ended.

      Does it necessary to cancel the timer with the node-leave event of the task-node ?
      The timer destruction is not implicit ?

      <task-node name="tn1">
      <task name='t1'>
      <assignment class='org.whatever.Assignment' />
      <timer name='t1'
      duedate='40 minutes'
      repeat='40 minutes' >
      <action class='org.whatever.Action' />
      </timer>
      </task>
      <transition name="tr1" to="join1"></transition>
      </task-node>

      The cancel-timer doesn't seem to work:

      <task-node name="tn1">
      <task name='t1'>
      <assignment class='org.whatever.Assignment' />
      <timer name='t1'
      duedate='40 minutes'
      repeat='40 minutes' >
      <action class='org.whatever.Action' />
      </timer>
      </task>
      <transition name="tr1" to="join1">
      <cancel-timer name='t1' />
      </transition>
      </task-node>

      And the cancel-event attribute does nothing:

      <task-node name="tn1">
      <task name='t1'>
      <assignment class='org.whatever.Assignment' />
      <timer name='t1'
      duedate='40 minutes'
      repeat='40 minutes'
      cancel-event='task-end' >
      <action class='org.whatever.Action' />
      </timer>
      </task>
      <transition name="tr1" to="join1"></transition>
      </task-node>

            tom.baeyens Tom Baeyens (Inactive)
            alkero_jira David Loiseau (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: