flowable / flowable/flowable-engine
Decision Tables in Multi-Instance Subprocesses Write Output to Main Process
- Lingua principale
- Java
- Stelle
- 9.5k
- Fork
- 2.9k
- Merge medio
- 7h 8m
- PR unite (30g)
- 2
Descrizione
**Describe the bug**
When you attempt to use a decision task inside of a multi-instance subprocess that operates in parallel, the output variables get written to the main process. This causes all instances of the multi-instance subprocess to "see" the outputs from the last executed decision table.
**Expected behavior**
Output variables from decision tasks should be scoped in such a way to be usable inside of parallel multi-instance subprocesses
**Code**
Sample app attached. The sample app contains a groovy script task that creates an `items` array containing the numbers 1, 2, & 3. Following that there is a parallel multi instance sub-process containing a decision task and a user task with a form. Decision task takes the `item` passed into the specific instance and uses one a rule to write it back out to `item_out`. The user tasks form supplies a way to view `item`, `item_out`, and a `p_var` process variable set by the script task. Looking at the executions of the decision table in the flowable-admin app, it's clear that each instance is operating on the correct `item` variable and putting out a correct output, but only the last `item_out` is displayed for all forms.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Inizia con l’app di esempio allegata e riproduci il sottoprocesso parallelo multi-istanza contenente il decision task e lo user task. Esamina come l’esecuzione della decisione scrive in item_out e come i form leggono item, item_out e p_var; il lavoro è completato quando ogni istanza visualizza il proprio output della decisione invece del valore dell’ultima istanza completata.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- groovy, java
- Ambito
- backend
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 45/100