You are viewing limited content. For full access, please sign in.

Question

Question

Determine if invoke workflow failed

asked on November 2, 2016

I am calling workflows from another workflow (Invoke Workflow activity).  I want to terminate the workflow of my parent workflow whenever a failure occurs in my invoked workflow.  Is there a way to do this?

0 0

Answer

SELECTED ANSWER
replied on November 2, 2016

It's an option that can be configured.

2 0

Replies

replied on November 2, 2016

In the invoked workflow, use a "Try-Catch" activity and in the catch branch, you can use an "End Workflow" activity to terminate the parent workflow.

0 0
replied on November 2, 2016

If I understand what you are saying, if a End Workflow or Terminate Workflow activity is executed in an invoked workflow, it also ends the parent workflow, is that correct?

0 0
SELECTED ANSWER
replied on November 2, 2016

It's an option that can be configured.

2 0
replied on November 16, 2016

When you say "Use a Try/Catch" I assumed what you meant was, if I wrap the Invoke Workflow activity in a Try/Catch then the Catch will be executed if the child workflow is terminated.  This does not seem to be the case.

 

I want to call some code in the parent if the child is terminated before the parent is terminated.  What is the recommended approach to accomplishing this?

1 0
You are not allowed to follow up in this post.

Sign in to reply to this post.