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

ProcessEventListener does not work well with Signal Start Event

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Minor
    • None
    • 6.1.0
    • jBPM Core
    • None

    Description

      Description of problem:
      When you create a process with Signal Start Event, beforeProcessStarted and afterProcessStarted are called twice.

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

      Steps to Reproduce:
      1. Create a simple process which contains only Signal Start Event and End Event.
      2. Create your own ProcessEventListener and add it to the KieSession.
      3. Start the process and see generated events.
      4. Send a signal and see another events.

      Actual results:
      Both beforeProcessStarted and afterProcessStarted methods are called twice. Once when you call ksession.startProcess and then again when you send a signal and process is really started.

      Expected results:
      I think the correct behavior will be if both beforeProcessStarted and afterProcessStarted are called just once. After you call ksession.startProcess, beforeProcessStarted should be called. And after the signal is sent, afterProcessStarted should be called.

      Additional info:
      http://git.app.eng.bos.redhat.com/git/jbossqe/brms.git/tree/test-jbpm-regression/src/test/java/com/bpms/functional/ProcessEventListenerTest.java
      http://git.app.eng.bos.redhat.com/git/jbossqe/brms.git/tree/test-jbpm-regression/src/test/resources/SignalStartEvent.bpmn2

      Attachments

        Activity

          People

            swiderski.maciej Maciej Swiderski (Inactive)
            tlivora Tomáš Livora (Inactive)
            Jiri Svitak Jiri Svitak (Inactive)
            Jiri Svitak Jiri Svitak (Inactive)
            Marek Baluch
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: