|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TxHook
Implementing this interface allows to execute transactional hooks.
Hook and deadline features are requiring the implementation of TxHook or Hook interface.
Within xpdl definition, the hook feature is specified within
external attributes of Activity element.
There is two parameters defining the hook:
For deadline feature, name of the class that implements this interface is specified within XPDL Deadline element.
The event name (internal to the engine) is ON_DEADLINE.
This TxHook interface is intended to use APIs acceded by the APIAccessor(provided
into parameters of the execute() method) that can do write operations into the engine database:
Hook
interface the exception is catched by the engine
and no rollback is performed.
If at process definition (with proEd) the designer has chosen: hook with rollback,
implementing this interface for the hook is well suited.
If the designer has chosen: hook without rollback,
implementing this interface for the hook is
not authorized by the engine (will generate an exception).
Method Summary | |
---|---|
void |
execute(APIAccessor accessor,
org.ow2.bonita.facade.runtime.ActivityInstance<org.ow2.bonita.facade.runtime.ActivityBody> activityInstance)
Method of the interface to be implemented. |
Method Detail |
---|
void execute(APIAccessor accessor, org.ow2.bonita.facade.runtime.ActivityInstance<org.ow2.bonita.facade.runtime.ActivityBody> activityInstance) throws java.lang.Exception
accessor
- The APIAccessor interface to access: RuntimeAPI, ManagementAPI, DefinitionAPI, CommandAPI.activityInstance
- the record of the current activity.
java.lang.Exception
- If an Exception has occurred.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |