Uploaded image for project: 'Red Hat Process Automation Manager'
  1. Red Hat Process Automation Manager
  2. RHPAM-3484

Listeners not ready when signal is emitted in subprocess

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 7.11.0.GA
    • 7.8.1.GA
    • jBPM Core
    • 2021 Week 07-09 (from Feb 15), 2021 Week 10-12 (from Mar 8)

    Description

      An signal sent by a subprocess is not captured correctly in an intermediate capture event.

      To detect, you can set the scope to project instead of per process and previous instances of the project will capture the signal (as at that time they have the listener waiting for the signal)

      Attached a project with signal scope "Project" and output showing that the previous instance listen to this signals

      solution

      To avoid problems with the action nodes (intermediate throw) I added a new metadata for the node
      "executeActionAfterComplete" when is set to true the signal is process after finishing processing the current flow.(like a passthrough)

      https://github.com/kiegroup/jbpm/pull/1880/files#diff-3bb9f48c4484a807e42314ab3250ad0f97819113aadac6739c9bc771a536777aR77-R79

      Attachments

        1. 02873851-multicon.zip
          21 kB
        2. 02873851-reproducer.zip
          21 kB
        3. signal-listener-subprocess.png
          signal-listener-subprocess.png
          59 kB
        4. signal scope.png
          signal scope.png
          23 kB
        5. waiting-state.png
          waiting-state.png
          39 kB

        Issue Links

          Activity

            People

              elguardian@gmail.com Enrique González Martínez (Inactive)
              afanjula@redhat.com Alberto Fanjul Alonso
              Gonzalo Muñoz Fernández Gonzalo Muñoz Fernández
              Gonzalo Muñoz Fernández Gonzalo Muñoz Fernández
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: