I have a workflow that can be run by hand or called by another workflow.
I need to be able to determine how the workflow was called.
Does anyone know how to determine this?
Thanks.
I have a workflow that can be run by hand or called by another workflow.
I need to be able to determine how the workflow was called.
Does anyone know how to determine this?
Thanks.
Best answer by Chris Sunderland
Inside the workflow, you can add a script activity which makes a check like such
workflow.getWorkflowId() == workflow.getRoot().getWorkflowId();
This check would return True if the workflow was called directly and false if it was executed inside a parent workflow.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.