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

Improve the way signaling of an event on a session works by only dispatching the event occurrence to the processes that were created in that session, and not to process instances created in other sessions

XMLWordPrintable

      I created two persistent knowledge sessions and in each session I started one process instance, then I disposed of the two sessions. Both process instances are instances of same process definition which has only one wait node of type signal event.
      Later on, I load the second session from JPA datastore based on its id and I fire the event for which the two process instances are waiting. I fire this event on the knowledge session [ie ksession.signalEvent("LastCheckEvent", null);], not on the process instance itself.
      After I do that, both process instances advanced to the end node, even though I only loaded the second session from JPA datastore. This makes me think event instances fired within the context of a given session, don't know to which instance to dispatch the event. It would be nice to only dispatch the signaled event to the process that was started within loaded session.

            kverlaen@redhat.com Kris Verlaenen
            ccerb_jira Cristian Cerb (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: