Skip to content

Flowable (REST-only): How to get “where am I” and the exact path taken for one process run? #4121

@maxpathid

Description

@maxpathid

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

  1. Current position - on which node a current workflow instance run is on? (“where am I?”)
  2. 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.

also sorry for opening an issue, I uploaded the question 9 days ago in the flowable-forum and didn't get any response :(

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions