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

[SWF Editor] is adding extra "end": false to eventConditions fields even when transition is set

    XMLWordPrintable

Details

    • 2022 Week 29-31 (from Jul 18), 2022 Week 32-34 (from Aug 8), 2022 Week 35-37 (from Aug 29)

    Description

      During example testing I have noticed that marshalling roundtrip adds some fields that weren't added by me and sould not be required to be added.

      This issue is about Switch State and its transitions.
      If the attached examples are openned in the webapp and downloaded additional fields are added in some elements.
      Before:

       {
               "name":"CheckVisaStatus",
               "type":"switch",
               "eventConditions": [
                  {
                    "eventRef": "visaApprovedEvent",
                    "transition": "HandleApprovedVisa"
                  },
                  {
                    "eventRef": "visaRejectedEvent",
                    "transition": "HandleRejectedVisa"
                  }
               ],
               "timeouts": {
                 "eventTimeout": "PT1H"
               },
               "defaultCondition": {
                  "transition": "HandleNoVisaDecision"
               }
            }
      

      After:

      {
               "name":"CheckVisaStatus",
               "type":"switch",
               "eventConditions": [
                  {
                    "eventRef": "visaApprovedEvent",
                    "transition": "HandleApprovedVisa",
                    "end": false
                  },
                  {
                    "eventRef": "visaRejectedEvent",
                    "transition": "HandleRejectedVisa",
                    "end": false
                  }
               ],
               "timeouts": {
                 "eventTimeout": "PT1H"
               },
               "defaultCondition": {
                  "transition": "HandleNoVisaDecision",
                  "end": false
               }
            }
      

      We expect the After case to match Before case.
      After case contains extra line:
      *"end": false*

      Attachments

        Activity

          People

            josephblt Wagner Lemos (Inactive)
            dhanak@redhat.com Dominik Hanak
            Dominik Hanak Dominik Hanak
            Dominik Hanak Dominik Hanak
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: