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
.
Modifier and Type | Method and Description |
---|---|
TransitionElement |
create(ChartContext context,
TransitionDefinition definition)
Create a
TransitionElement instance as defined by
definition . |
java.lang.String |
getId() |
java.lang.String getId()
TransitionElement create(ChartContext context, TransitionDefinition definition)
TransitionElement
instance as defined by
definition
.context
- the ChartContext
this transition will execute in.definition
- the TransitionDefinition
.TransitionElement
instance.