Interface TransitionFactory
public interface TransitionFactory
TransitionFactory
s are responsible for instantiating
TransitionElement
s; the interface encapsulating the execution
logic of an SFC transition.
To add a new type of transition, register a TransitionFactory
with
the GatewayTransitionRegistry
.
-
Method Summary
Modifier and TypeMethodDescriptioncreate
(ChartContext context, TransitionDefinition definition) Create aTransitionElement
instance as defined bydefinition
.getId()
-
Method Details
-
getId
String getId()- Returns:
- a unique String that identifies this transition type.
-
create
Create aTransitionElement
instance as defined bydefinition
.- Parameters:
context
- theChartContext
this transition will execute in.definition
- theTransitionDefinition
.- Returns:
- a
TransitionElement
instance.
-