public abstract class AbstractFlowBuilder extends java.lang.Object implements FlowBuilder
buildStates().| Constructor and Description |
|---|
AbstractFlowBuilder() |
| Modifier and Type | Method and Description |
|---|---|
void |
buildEndActions()
Builds any end actions to execute when the flow ends.
|
void |
buildExceptionHandlers()
Creates and adds all exception handlers to the flow built by this builder.
|
void |
buildGlobalTransitions()
Builds any transitions shared by all states of the flow.
|
void |
buildInputMapper()
Builds the input mapper responsible for mapping flow input on start.
|
void |
buildOutputMapper()
Builds the output mapper responsible for mapping flow output on end.
|
void |
buildStartActions()
Builds any start actions to execute when the flow starts.
|
abstract void |
buildStates()
Builds the states of the flow.
|
void |
buildVariables()
Builds any variables initialized by the flow when it starts.
|
protected Flow |
createFlow()
Factory method that initially creates the flow implementation during flow builder initialization.
|
void |
dispose()
Shutdown the builder, releasing any resources it holds.
|
protected void |
doDispose()
Flow builder destruction hook.
|
protected void |
doInit()
Flow builder initialization hook.
|
protected FlowBuilderContext |
getContext()
Returns this flow builder's context.
|
Flow |
getFlow()
Get the fully constructed and configured Flow object.
|
java.lang.String |
getFlowResourceString()
Returns a string describing the location of the flow resource; the logical location where the source code can be
found.
|
boolean |
hasFlowChanged()
As the underlying flow managed by this builder changed since the last build occurred?
|
void |
init(FlowBuilderContext context)
Initialize this builder.
|
public void init(FlowBuilderContext context) throws FlowBuilderException
FlowBuilderinit in interface FlowBuildercontext - the flow builder contextFlowBuilderException - an exception occurred building the flowprotected void doInit()
protected Flow createFlow()
protected FlowBuilderContext getContext()
public void buildVariables()
throws FlowBuilderException
FlowBuilderbuildVariables in interface FlowBuilderFlowBuilderException - an exception occurred building the flowpublic void buildInputMapper()
throws FlowBuilderException
FlowBuilderbuildInputMapper in interface FlowBuilderFlowBuilderException - an exception occurred building the flowpublic void buildStartActions()
throws FlowBuilderException
FlowBuilderbuildStartActions in interface FlowBuilderFlowBuilderException - an exception occurred building the flowpublic abstract void buildStates()
throws FlowBuilderException
FlowBuilderbuildStates in interface FlowBuilderFlowBuilderException - an exception occurred building the flowpublic void buildGlobalTransitions()
throws FlowBuilderException
FlowBuilderbuildGlobalTransitions in interface FlowBuilderFlowBuilderException - an exception occurred building the flowpublic void buildEndActions()
throws FlowBuilderException
FlowBuilderbuildEndActions in interface FlowBuilderFlowBuilderException - an exception occurred building the flowpublic void buildOutputMapper()
throws FlowBuilderException
FlowBuilderbuildOutputMapper in interface FlowBuilderFlowBuilderException - an exception occurred building the flowpublic void buildExceptionHandlers()
throws FlowBuilderException
FlowBuilderbuildExceptionHandlers in interface FlowBuilderFlowBuilderException - an exception occurred building this flowpublic Flow getFlow() throws FlowBuilderException
FlowBuildergetFlow in interface FlowBuilderFlowBuilderException - an exception occurred building this flowpublic void dispose()
throws FlowBuilderException
FlowBuilderFlowBuilder.init(FlowBuilderContext) method.dispose in interface FlowBuilderFlowBuilderException - an exception occurred building this flowpublic boolean hasFlowChanged()
FlowBuilderhasFlowChanged in interface FlowBuilderpublic java.lang.String getFlowResourceString()
FlowBuildergetFlowResourceString in interface FlowBuilderprotected void doDispose()