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

SWF Editor - Workflow property declaration order changes in the serialization

    XMLWordPrintable

Details

    • False
    • None
    • False
    • Hide
      1. Open workflow in editor with edit mode.
        • To run editor in edit mode you can use combined-editor. Execute the following commands to run it:
          pnpm bootstrap
          pnpm -r -F @kie-tools/serverless-workflow-diagram-editor... build:prod
          pnpm -r -F @kie-tools/serverless-workflow-combined-editor... build:prod
          (cd $KIE_TOOLS_HOME/packages/serverless-workflow-combined-editor && pnpm run start)
          
        • For example, open one of the following workflows:
      2. Ensure, the text editor is updated with the diagram content.
        • For example, you can rename workflow using the diagram.

      Actual result

      The order of workflow elements is changed.

      Expected result

      The workflow elements order is the same as it was before editing.
      The only difference may be the edited part.

      Show
      Open workflow in editor with edit mode. To run editor in edit mode you can use combined-editor. Execute the following commands to run it: pnpm bootstrap pnpm -r -F @kie-tools/serverless-workflow-diagram-editor... build:prod pnpm -r -F @kie-tools/serverless-workflow-combined-editor... build:prod (cd $KIE_TOOLS_HOME/packages/serverless-workflow-combined-editor && pnpm run start) For example, open one of the following workflows: continuing-as-a-new-execution.sw.json continuing-as-a-new-execution.sw.yaml Ensure, the text editor is updated with the diagram content. For example, you can rename workflow using the diagram. Actual result The order of workflow elements is changed. Expected result The workflow elements order is the same as it was before editing. The only difference may be the edited part.
    • ---
    • ---
    • 2022 Week 47-49 (from Nov 21), 2022 Week 50-02 (from Dec 12)

    Description

      Workflow property declaration order should not change when the SW is serialized.

      The issue applies to both JSON as well as YAML files.

      It can be an inconvenience for users editing the workflows directly, or if it is necessary to consider the order of properties for other purposes.

      Example

      Original JSON:

      After serialization (no changes in SW):

      Attachments

        Issue Links

          Activity

            People

              dtikhomi@redhat.com Dmitrii Tikhomirov
              handreyrc Handrey Cunha
              Lubomir Terifaj Lubomir Terifaj
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: