This content has been marked as final.
Show 2 replies
-
1. Re: Difference between .cancel() and .compensate() BusinessA
jhalliday Feb 25, 2008 6:27 AM (in response to b_)Cancel is a transaction from the active state, whereas compensate is a transition from the completed state. In short, it depends where in the lifecycle the tx aborts. See the state diagram on page 8 of the WS-BusinessActivity spec.
-
2. Re: Difference between .cancel() and .compensate() BusinessA
b_ Feb 25, 2008 8:12 AM (in response to b_)Thanks,
From what i understand when the .cancel() is invoked on the participant, the transaction aware web service is either currently executing the business logic or else haven't started executing the business logic yet. (The participant cannot have informed the coordinator that it has completed.)
Am i right?
What is still not clear to me is in what circumstance is the .cancel() method invoked?