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

A triggered timer does not end the task which is left


    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Critical
    • Resolution: Done
    • Affects Version/s: jBPM 4.0, jBPM 4.1
    • Fix Version/s: jBPM 4.4
    • Component/s: Runtime Engine
    • Labels:


      In my process definition, "task1" has a transition with a due date. When this timer is triggered by the job executor, the transition takes the process to "task2" but "task1" still looks active. For instance, when I run a "task query", instead of only finding "task2", both "task1" and "task2" are found.

      Here is my process definition:

      <?xml version="1.0" encoding="UTF-8"?>
      <process name="test1" xmlns="http://jbpm.org/4.0/jpdl">
      <start g="-9,192,48,48" name="start1">
      <transition g="-44,-18" name="to task3" to="task3" />
      <end g="490,192,48,48" name="end1" />
      <task g="272,189,92,52" name="task1">
      <transition g="-42,-18" name="to end1" to="end1" />
      <transition g="-45,-18" name="to java1" to="reminder">
      <timer duedate="10 seconds" />
      <java class="fr.idm.SimpleReminder" g="272,316,92,52" method="remind" name="reminder">
      <transition to="task2" />
      <end g="626,319,48,48" name="end2" />
      <task g="454,316,92,52" name="task2">
      <transition g="-42,-18" name="to end2" to="end2" />
      <task g="113,189,92,52" name="task3">
      <transition g="-44,-18" to="task1" name="to end1" />

      For testing purpose, I introduced "task3" before "task1". It is not listed by the task query, which makes me think that, once "task1" is left, it should no longer be active.

      This looks like https://jira.jboss.org/jira/browse/JBPM-967 but the suggested solution does not seem applicable to JBPM 4.x.

      I will attached the whole source code.

        Gliffy Diagrams


          1. 20100227-JBPM-2753
            14 kB
          2. jbpm-2357-20100507.diff
            20 kB
          3. JBPM-2537-JBPM-2807.patch
            22 kB
          4. JBPM-2537-JBPM-2807v2.patch
            20 kB
          5. jbpm-2537-patch
            3 kB
          6. jbpm-2537-patch-method.patch
            11 kB
          7. jbpm-2537-patch-method.patch
            8 kB
          8. kukeltje.zip
            16 kB
          9. process.jpdl.xml
            0.8 kB
          10. screenshot-1.jpg
            15 kB
          11. TaskTimeoutTest.java
            4 kB
          12. workflow-test-jbpm4.1.zip
            8 kB

            Issue Links



                • Assignee:
                  aguizar Alejandro Guizar
                  alxsei Alexis Seigneurin
                • Votes:
                  7 Vote for this issue
                  5 Start watching this issue


                  • Created: