Page 1 of 1

workflows-and-activities [rollback handler - region]

Posted: Thu Sep 04, 2014 6:25 am
by bibroy
This question is related to the tutorial at http://www.broadleafcommerce.com/docs/c ... activities - the document says:

In fact, you can even further refine rollback behavior by calling the overloaded version of registerState that accepts a region parameter. Region allows you to provide a grouping label for one or more RollbackHandlers, which provides an avenue for selectively rolling back a subset of registered rollback handlers.


The question is : how do I determine/configure a region, if I want to execute a subset of registered rollback handlers - an example will help.

Re: workflows-and-activities [rollback handler - region]

Posted: Sat Sep 06, 2014 7:17 pm
by phillipuniverse
We do not have a good example of a region in the framework. We don't really use this and instead rely on an activity only having a single rollback handler that rolls back everything that the activity did. I can't think of a great reason that you need this level of fine grained control.