Reserved keyword that gets workflow IDs similar to invoker #2078
nahiyan-yasaar-selise
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently there's no way to know if a workflow was triggered by a user or a particular workflow. We would like two reserved keywords, one that holds the current workflow's ID (
workflowID
), another that holds the ID of the workflow that caused the trigger (triggerer
?). If a user triggers a workflow due to an updateinvoker
has the userID, buttriggerer
will benull
, but if workflowA triggers workflowB, thentriggerer
in workflowB has the ID of workflowA whereasinvoker
should benull
.Possible benefits/use cases:
workflowID == triggerer
that terminates early. Or if workflowA triggers workflowB and workflowB triggers workflowA, we can do a similar gateway condition.This effectively turns workflows into pseudo-subworkflows with a built-in parameter being pre-filled.
Beta Was this translation helpful? Give feedback.
All reactions