Uploaded image for project: 'JBoss BPMS Platform'
  1. JBoss BPMS Platform
  2. RHBPMS-3577

Timer process with 0s delay fails in many interesting ways

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 6.0.0
    • 6.0.0
    • jBPM Core
    • ER5
    • +
    • Hide
      Summary: A Timer process with a duration set to 0 seconds results in unexpected behavior and failure of the process with various intermittent errors. The errors occur because of an issue with the underlying transaction not being committed.

      Cause:

      Consequence:

      Fix:

      Result:
      Show
      Summary: A Timer process with a duration set to 0 seconds results in unexpected behavior and failure of the process with various intermittent errors. The errors occur because of an issue with the underlying transaction not being committed. Cause: Consequence: Fix: Result:

      Description of problem:
      I have a simple process: Start -> Timer -> Script Task -> End. When the Timer duration is set to 0s, the behaviour gets... strange.

      Sometimes, I get an exception stacktrace (see attachment). In this case, the instance finishes. Processinstanceinfo table does not contain this instance, processinstancelog has a record of this instance as completed. Nodeinstancelog table contains only records of the instance after leaving the timer node. Start node information and information about entering the timer node are missing.

      Sometimes, I get no stack trace, but the instance never finishes. Processinstanceinfo table has a record of this instance, processinstancelog has a record of this instance as active. Nodeinstancelog table contains only records of the instance up to and including entering the timer node. This instance never finishes.

      Sometimes, I get no stack trace, the instance finishes. Processinstanceinfo table might or might not contain this instance, processinstancelog has two records of this instance - one as active, one as completed. Nodeinstancelog table contains records for the whole instance, all the nodes, entering and leaving.

      I'd like to add that 0s is not an invalid input, just perhaps one not used often.

      Version-Release number of selected component (if applicable):
      BPMS 6.0 ER2

              swiderski.maciej Maciej Swiderski (Inactive)
              zkrejcov Zuzka Krejčová (Inactive)
              Zuzka Krejčová Zuzka Krejčová (Inactive)
              Zuzka Krejčová Zuzka Krejčová (Inactive)
              Kris Verlaenen, Rajesh Rajasekaran, Vikram Goyal (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: