cancel
Showing results for 
Search instead for 
Did you mean: 

Terminating Activity step with error

Former Member
0 Kudos

Hi,

I have an Activity step which task executes a method of a class. This method returns result code (and I do binding to WF) and if it is not 0 I would like to terminate this step (workitem) in error status. How is the best and easiest way to do this?

Thank you in advance,

Anna

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

For the first time I have heard this requirement where you wish to put workitem in error. I will suggest you use Exceptions in place of error or may be just send a notification to someone who is monitoring about this return value.

Thanks

Arghadip

Former Member
0 Kudos

Thank you.

But I am not able to set any handling in case of error of this step - if this fails it must be possible to see in worfklow log as error. If I set an exception in method and later not catch it in workfow, would I see it as erroneus?

Anna

Answers (1)

Answers (1)

Former Member
0 Kudos

yes, when exception is raised and not handled in WF it crashes. Thats what I tried to get.

Best regards