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

SWF Editor - Workflow property declaration order changes in the serialization

XMLWordPrintable

    • 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)

      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):

        1. continuing-as-a-new-execution.sw.json
          1 kB
          Lubomir Terifaj
        2. continuing-as-a-new-execution.sw.yaml
          1 kB
          Lubomir Terifaj
        3. image-2022-11-25-18-14-34-065.png
          39 kB
          Handrey Cunha
        4. image-2022-11-25-18-15-51-991.png
          38 kB
          Handrey Cunha

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

                Created:
                Updated: