Interface StepFactory
-
- All Superinterfaces:
StepDelegate
public interface StepFactory extends StepDelegate
StepFactory
s are responsible for instantiatingStepElement
s; the interface encapsulating the execution logic of a an SFC step. To add a new type of step, you'll need to register aStepFactory
with theGatewayStepRegistry
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StepElement
create(ChartContext context, ScopeContext scopeContext, StepDefinition definition)
Create aStepElement
as defined bydefinition
.-
Methods inherited from interface com.inductiveautomation.sfc.api.StepDelegate
fromXml, getCompilationAlteringProperties, getId, toXml, validate
-
-
-
-
Method Detail
-
create
StepElement create(ChartContext context, ScopeContext scopeContext, StepDefinition definition)
Create aStepElement
as defined bydefinition
.- Parameters:
context
- theChartContext
this step will execute in.scopeContext
- theScopeContext
provides access to the chart and step scopes. The step scope will be reset for each activation.definition
- theStepDefinition
.- Returns:
- a
StepElement
instance.
-
-