I have a component that have inner workflow that can be triggered outside. It counts variable that also available outside. I need to wait for component to execute inner workflow triggered from outside workflow before the next step. How do I? In my case, next step always starts right next to count start but not after
Hi @den_mok if it’s not asynchronous, they should be executed in order. If it’s asynchronous, you can return a value from your inner workflow with the “Return a value” action and then, in the outer workflow, you can use Execute Component action, and then a tiny bit of JS in a Custom JS action to grab the result of the previous action:
const res = await context.workflow[‘24837f38-27da-4f58-be7b-74ead3d9c3c0’].result
return res;
Can you provide more details about your setup?
1 Like