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

Question

Question

Canceled invoked workflows weirdness/bug?

asked on April 30, 2014

 I have a conditional parallel that works on a two different sections of a document at once.

 

I have a workflow called city splitter that I use as a shortcut to split apart City, ST, zip that does some simple validations and such before returning functions. 

 

when I invoke that workflow on both sides of the parallel it canceled whichever invoked workflow started second (usually within milliseconds of each other).  

 

It took me a while to determine what was going on but it was the fact that the invoked workflow was trying to return invalid data. The invoked workflow was returning "no" for a boolean value. As soon as I fixed this it started working correctly and running both workflows fine.

 

I didn't see any errors in the invoked workflow or in the log for that invoked workflow. I only saw an error in a conditional on the original invoking workflow that tried to parse that boolean AFTER the invoke workflow finished. Whichever workflow started 2nd would finish (when looking at it in search results/log) but would show up as canceled in that workflow that invoked it.

 

 

All in all a strange behavior, so I wanted to report this. 

0 0

Answer

SELECTED ANSWER
replied on April 30, 2014

When a workflow terminates, it cancels any waiting activity so resources can be cleaned up.

 

All it is indicating is that it didn't wait for the other invoke workflow to return. It doesn't actually try to stop the invoked workflow however (since it has no knowledge of how important the work is in that workflow).  

 

 

 

0 0

Replies

replied on April 30, 2014

Are the following statements correct? 

 

a) The invoking workflow is terminated with an error (something like incorrect format)

b) The invoked workflows (both of them) show as completed from search results.

c)  In the invoking workflow, the invoke activity of the second workflow shows as cancelled?

 

 

 

0 0
replied on April 30, 2014

All three are correct. I guess what was throwing me off was that the green successful indicator was showing all the way through the bottom and the track tokens was kicking off (I have it on while I'm building this out). Normally I never see it go past a red box on the workflow tab, but in this case it did I'm guessing because of the conditional parallel.

0 0
SELECTED ANSWER
replied on April 30, 2014

When a workflow terminates, it cancels any waiting activity so resources can be cleaned up.

 

All it is indicating is that it didn't wait for the other invoke workflow to return. It doesn't actually try to stop the invoked workflow however (since it has no knowledge of how important the work is in that workflow).  

 

 

 

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

Sign in to reply to this post.