mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-13 05:07:43 +02:00
Add subprocess match trigger (#10101)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
@@ -700,7 +700,10 @@ async function checkParent (execution: Execution, control: ProcessControl): Prom
|
||||
{
|
||||
from: parent.currentState,
|
||||
process: parent.process,
|
||||
trigger: process.trigger.OnSubProcessesDone
|
||||
trigger:
|
||||
filtered.length === 0
|
||||
? { $in: [process.trigger.OnSubProcessesDone, process.trigger.OnSubProcessMatch] }
|
||||
: process.trigger.OnSubProcessMatch
|
||||
},
|
||||
{
|
||||
sort: { rank: SortingOrder.Ascending }
|
||||
|
||||
Reference in New Issue
Block a user