Hey there!
We are working with Flowable as our workflow engine in java, but our code is in typescript and we communicate with the engine via RESTful API calls.
I’m working on a feature trying to understand 2 things (given a processInstanceId) -
- Current position - on which node a current workflow instance run is on? (“where am I?”)
- Actual path - the ordered list of activities that really executed in this run (e.g. model has node1→node2→node3, but this run did node1→node3 so the final result should be [“node1”,“node3”]).
I’ve tried many things but mostly - “/runtime/executions” for the active tree and “/history/historic-activity-instances” (+ variables) to rebuild the path. This breaks in parallel/multi-instance (parallelForEach) and async cases: inner nodes use different executionIds, and runtime rows disappear after completion (executions are done and deleted so i cant query their activities).
Question: Is there a REST-only, recommended approach (or example) to (a) get current activity the instance is on and (b) reconstruct the exact visited activities with a stable parent/child mapping in history? Happy to share a small BPMN + payloads if useful.