T
- The class of the Stateful Entitypublic interface StatefulFSM<T>
FSM
annotation.
The StatefulJ Framework will automatically inject the StatefulFSM based off the declared Generic Type.
If there is more than one StatefulController
that qualifies, then you can provide the bean Id of
the specific StatefulController
Modifier and Type | Method and Description |
---|---|
Object |
onEvent(String event,
Object... parms)
Pass an event to the FSM for a non-existent Stateful Entity.
|
Object |
onEvent(T stateful,
String event,
Object... parms)
Pass an event to the FSM for existing Stateful Entity
|
Object onEvent(String event, Object... parms) throws TooBusyException
Factory
event
- the Eventparms
- Optional parameters passed into the Action methodTooBusyException
- thrown if the FSM cannot process the eventObject onEvent(T stateful, String event, Object... parms) throws TooBusyException
stateful
- the Stateful Entityevent
- the Eventparms
- Optional parameters passed into the Action methodTooBusyException
- thrown if the FSM cannot process the eventCopyright © 2016. All rights reserved.