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?