conductor
conductor copied to clipboard
Event handler and events
Hi @v1r3n ,
i have a query on events. consider i have 2 workflows main and sub. if i trigger a event from "main" to start a wf which is "sub". is there a way to bring back the infomation of subworkflow like task outputs to the main workflow? and is there is any way tell main work wf that sub wf is completed.
@amoolya19 yes, subworkflow tasks are treated as normal tasks and you can use the task output from subworkflow in other task. However, this is only possible when you use the SUB_WORKFLOW task.
If you use events to trigger a "sub workflow", it is not possible to bring the output to the main workflow - as it is meant to be loosely coupled.