Class AbstractSTMTransitionAction<StateEntityType extends StateEntity,PayloadType>

java.lang.Object
org.chenile.workflow.service.stmcmds.AbstractSTMTransitionAction<StateEntityType,PayloadType>
Type Parameters:
StateEntityType - the sub-type of the state entity
PayloadType - the type of payload
All Implemented Interfaces:
STMTransitionAction<StateEntityType>

public abstract class AbstractSTMTransitionAction<StateEntityType extends StateEntity,PayloadType> extends Object implements STMTransitionAction<StateEntityType>
STMTransitionAction uses Object as a payload type. Hence it is impossible to infer the precise Payload type from the implementation of STMTransition Action. This class serves as a bridge for sub-classes to enforce a Paylaod Type. By extending this class, sub-classes declare the precise Payload Type that they expect.

Without this class. Payload type had to be declared in the STM configuration. The blue print for STM assumes that all STM Transition Actions extend this class.