Web Service: What is the best way to cancel an action?

#1

What is the best way to cancle an action (method CompleteActivityInstance or RaiseCancelExceptionOnActivityInstance/ RaiseCancelExceptionOnActivityInstanceByName)?

Solution
Use RaiseCancelExceptionOnActivityInstance web method.
You have to add an Exception transition on the corresponding action too to handle properly the exception.

0 Likes