Uploaded image for project: 'Kogito'
  1. Kogito
  2. KOGITO-8499

Only one of a list of events in the "State End" of a ServerlessWorkflow is produced

    XMLWordPrintable

Details

    • 2023 Week 03-05 (from Jan 16)
    • Low

    Description

      When trying to produce multiple events in the 'end' property of a state, only the first one seems to be produced. For example, in the example below:

       

      {
        "name": "DummyState",
        "type": "inject",
        "data": {},
        "end": {
          "produceEvents": [            
            {
              "eventRef": "RequestActivitiesInfractionsIdentification"
            },
            {
              "eventRef": "RequestAmplitudesInfractionsIdentification"
            }
          ]
        }
      } 

      only the event FirstDummy is fired.

       

      However, both events seems to be produced correctly when using the property '' of a state property 'transition', like this :

       

      "transition":
       {
         "produceEvents": [
           {
             "eventRef": "FirstDummyEvent"
           },
           {
             "eventRef": "SecondDummyEvent"
           }
         ],
         "nextState": "End"
      }

       

      Attachments

        Activity

          People

            ftirados Francisco Javier Tirado Sarti
            cyril.cousinou Cyril Cousinou (Inactive)
            Marian Macik Marian Macik
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: