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

Error Querying Process Instance Details for Aborted/Completed processes

XMLWordPrintable

    • False
    • False
    • Undefined
    • 2021 Week 22-24 (from May 31)

      When trying to load Process details for an Aborted or completed instance Data Index throws the following error ([gist|https://gist.githubusercontent.com/pefernan/712134f41e84320e3829e5c69dc0df95/raw/ba9f6018f7653e8864df7d2718b498b9c568a66e/gistfile1.txt).] It work well for active process instances.

       

      The GraphQL query we use is: 

      {
         ProcessInstances(where: {
           id: {equal: $id}
         }) {
         id
         processId
         processName
         businessKey
         parentProcessInstanceId
         parentProcessInstance {
           id
           processName
           businessKey
         }
        ...
         error {
           nodeDefinitionId
           message
         }
         childProcessInstances {
           id
           processName
           businessKey
         }
         nodes {
           id
           nodeId
           name
           type
           definitionId
           exit
           enter
         }
         milestones {
           id
           name
           status
         }
        }
      }
      

      The issue seems related to the `nodes/enter` property which is required and it is lacking in the nodes contained when querying for aborted/completed instance. For active process instances nodes contain all the properties.

            cnicolai@redhat.com Cristiano Nicolai
            rh-ee-pefernan Pere Fernandez Perez
            Tristan Radisson Tristan Radisson
            Tristan Radisson Tristan Radisson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: