• Toll-free  888-665-8637
  • International  +1 717-220-0012
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

jorgem
#1 Posted : Wednesday, October 18, 2006 5:03:06 PM(UTC)
jorgem

Rank: Member

Joined: 10/17/2006(UTC)
Posts: 66

I notice that implementations of the OrderTask (used in workflow) have a rollback method with this signature:

Code:

Public Overloads Overrides Function Rollback( byval context as OrderTaskContext)


I implemented an ordertask derived class that supports this method.

I have a few questions:
1) Under what conditions is the Rollback() method supposed to be called? It seems like it is ALWAYS called.
2) What is the point of this method? Am I supposed to undo whatever was done in the Execute() function?
3) What happens if there is a rollback error? Should I throw and exception?

-- jorge.
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

©2024 Develisys. All rights reserved.
  • Toll-free  888-665-8637
  • International  +1 717-220-0012