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

event information in callback state overrides the SW data instead for merging

    XMLWordPrintable

Details

    • False
    • False
    • Hide

      To reproduce use a callback state and these are the results:

       

      1) Previous to the event reception in the workflow data I have something like this:

      {
      "somePreviousData" : "blablabla"
      }

       

      2) let's say that callback event is received and carry this data

       

      {
      "theEventData" : "some other data"
      }
       
      

       

      3) Ok, now when the callback operation finalizes and the process moves to another state, the workflow data has this:

       

      {
      "theEventData" : "some other data"
      }
       
      

      the previous info is missing.

      Show
      To reproduce use a callback state and these are the results:   1) Previous to the event reception in the workflow data I have something like this: { "somePreviousData" : "blablabla" }   2) let's say that callback event is received and carry this data   { "theEventData" : "some other data" }     3) Ok, now when the callback operation finalizes and the process moves to another state, the workflow data has this:   { "theEventData" : "some other data" }   the previous info is missing.
    • 2021 Week 49-51 (from Dec 6th)

    Description

      When the event information is received in a callback state, instead of merging the event data with the SW data, the event data is overriding the SW data.
      This will be fixed by implementing this https://github.com/serverlessworkflow/specification/blob/0.6.x/specification.md#Data-Merging, https://github.com/serverlessworkflow/specification/blob/0.6.x/specification.md#action-data-filters

      Attachments

        Issue Links

          Activity

            People

              ftirados Francisco Javier Tirado Sarti
              wmedvede@redhat.com Walter Medvedeo
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: