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

SWF: Node name for "parallel" stages is incorrect

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • None
    • False
    • None
    • False
    • ---
    • ---

      Given the following:

        "states": [
          {
            "name": "Code generation",
            "type": "parallel",
            "branches": [
              {
                "name": "Generating the Ansible Job component",
                "actions": [...]
              },
              {
                "name": "Generating the Catalog Info Component",
                "actions": [...]
              }
            ],
            "transition": "Publish to GitHub"
          },
      

      The node names stored in the Data Index are as follows:

      {
        "data": {
          "ProcessInstances": [
            {
              "nodes": [
      ...
                {
                  "name": "Code generation-Generating the Ansible Job component"
                },
                {
                  "name": "Code generationEnd"
                },
                {
                  "name": "Code generation-Generating the Catalog Info Component"
                },
                {
                  "name": "Code generationStart"
                },
              ]
            }
          ]
        }
      }
      

      The problem is that SWF state Code generation has Process Instance node names Code generationStart and Code generationEnd. This leads to other tooling being unable to find the correct node in the definition.

      For example, kie-tools has the ability to colour nodes in the DiagramEditor based on name. However the completed "parallel" state node cannot be found from the data retrieved from a GraphQL query.

      See the attached screenshot from DevUI for the workflow.

              ftirados Francisco Javier Tirado Sarti
              manstis@redhat.com Michael Anstis
              Marian Macik Marian Macik
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: