workflows-and-activities [explicitly register - handler]
Posted: Thu Sep 04, 2014 6:42 am
This question is related to the tutorial at http://www.broadleafcommerce.com/docs/c ... activities - the document states:
Question: Since details are not provided, will the code for explicit registration be something like this:
The document also says
Question: what is meant by module here?
By default, one must explicitly register a RollbackHandler in code (see above). This is because most RollbackHandlers will require thread specific state to be registered in order to achieve a viable rollback state
Question: Since details are not provided, will the code for explicit registration be something like this:
Code: Select all
ActivityStateManage asm = ActivityStateManagerImpl.getStateManager();
//more code goes here.
asm.registerState(myrollbackHandler, some-hashmap-of-state-items);
The document also says
The ActivityStateManager can be called from anywhere in the flow of execution for a workflow (Activity, Module, ErrorHandler, etc...).
Question: what is meant by module here?