I am using jBPM 6.0 (and 6.1), interfacing with jBPM via the REST API, and have a process that has a reusable subprocess being used in multiple swimlanes.
When I start the top level process, it has a parallel path that starts 2 instances of the same subprocess/processId but in different swimlanes. I am able to retrieve the Active Nodes as below:
id: 3
nodeId: "_2B4CB8FC-6934-4473-BF3B-AB2FE108336F"
name: "3.2.1"
deploymentId: "myDeploymentId:1.1"
processInstanceId: 1
nodeType: "SubProcessNode"
connection: "_0F7C4D5C-79CF-4FA7-8E0D-84B020AC738B"
dataTimeStamp: 1407771204015
completed: false
}
id: 5
nodeId: "_84B04D3D-9860-4F2E-B67A-D51A18082AB2"
name: "3.2.1"
deploymentId: "myDeploymentId:1.1"
processInstanceId: 1
nodeType: "SubProcessNode"
connection: "_FBA83F9F-DAA8-439F-847F-76256D3DDCB5"
dataTimeStamp: 1407786950147
completed: false
}
I have 3 active Process Instances now. I need to be able to map the active node 'SubProcessNode' above to the correct process instance. Since the process instances do not have a 'nodeId' and they have the same parent process id, processId, version, name and external Id I cannot map it to the correct instance Id.
The reason I need to do this is that I need to determine the swimlane for the subprocess instance Id since the same subprocess is in multiple swimlanes.
Any help would be appreciated.