public interface FlowDefinitionRegistry extends FlowDefinitionLocator
FlowDefinitionLocator
for accessing registered Flow definitions for
execution at runtime.
Flow definition registries can be configured with a "parent" registry to provide a hook into a larger flow definition registry hierarchy.
Modifier and Type | Method and Description |
---|---|
boolean |
containsFlowDefinition(java.lang.String flowId)
Does this registry contain a flow with the given id? More specifically, is
FlowDefinitionLocator.getFlowDefinition(String)
able to obtain a flow definition instance for the given id? Will ask the parent registry if the flow cannot be
found in this instance. |
int |
getFlowDefinitionCount()
Returns the number of flow definitions registered in this registry.
|
java.lang.String[] |
getFlowDefinitionIds()
Returns the ids of the flows registered in this registry.
|
FlowDefinitionRegistry |
getParent()
Returns this registry's parent registry.
|
void |
registerFlowDefinition(FlowDefinition definition)
Register a flow definition in this registry.
|
void |
registerFlowDefinition(FlowDefinitionHolder definitionHolder)
Register a flow definition in this registry.
|
void |
setParent(FlowDefinitionRegistry parent)
Sets this registry's parent registry.
|
getFlowDefinition
int getFlowDefinitionCount()
java.lang.String[] getFlowDefinitionIds()
FlowDefinitionRegistry getParent()
boolean containsFlowDefinition(java.lang.String flowId)
FlowDefinitionLocator.getFlowDefinition(String)
able to obtain a flow definition instance for the given id? Will ask the parent registry if the flow cannot be
found in this instance.flowId
- the id of the flow to queryvoid setParent(FlowDefinitionRegistry parent)
parent
- the parent flow definition registry, may be nullvoid registerFlowDefinition(FlowDefinitionHolder definitionHolder)
definitionHolder
- a holder holding the flow definition to registervoid registerFlowDefinition(FlowDefinition definition)
definition
- the actual flow definition