flowable / flowable/flowable-engine

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

Offen
#4,121 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Java
Sterne
9.5k
Forks
2.9k
Ø Merge
7 Std. 8 Min.
Gemergte PRs (30 T.)
2

Beschreibung

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 :(

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

Das Issue nennt /runtime/executions und /history/historic-activity-instances als die relevanten REST-Einstiegspunkte; beginne damit, ihr Verhalten für abgeschlossene, parallele und asynchrone Instanzen zu prüfen. Es werden keine Dateien oder Tests genannt. Als erledigt gilt, eine unterstützte REST-only-Möglichkeit zu identifizieren, um aktuelle und bereits besuchte Aktivitäten abzurufen, oder zu dokumentieren, dass die erforderliche stabile Zuordnung nicht verfügbar ist.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
java, typescript
Bereich
api, backend
Issue-Typ
Feature
Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
25/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.