Class FlowBuilderImpl
public class FlowBuilderImpl extends FlowBuilder
-
Constructor Summary
Constructors Constructor Description FlowBuilderImpl(FacesContext context) -
Method Summary
Modifier and Type Method Description FlowImpl_getFlow()FlowBuilderfinalizer(jakarta.el.MethodExpression methodExpression)A MethodExpression that will be invoked when the flow is exited.FlowBuilderfinalizer(String methodExpression)A MethodExpression that will be invoked when the flow is exited.FlowCallBuilderflowCallNode(String flowCallNodeId)Define a flow call node.FlowgetFlow()Called as the last step in flow definition, this method must perform any implementation specific initialization and return the builtFlow.FlowBuilderid(String definingDocumentId, String flowId)Set the defining document id and flow id of this flow.FlowBuilderinboundParameter(String name, jakarta.el.ValueExpression value)A parameter that will be populated with the value from a correspondingly named outbound parameter from another flow when this flow is entered from that flow.FlowBuilderinboundParameter(String name, String value)A parameter that will be populated with the value from a correspondingly named outbound parameter from another flow when this flow is entered from that flow.FlowBuilderinitializer(jakarta.el.MethodExpression methodExpression)A MethodExpression that will be invoked when the flow is entered.FlowBuilderinitializer(String methodExpression)A MethodExpression that will be invoked when the flow is entered.MethodCallBuildermethodCallNode(String methodCallNodeId)Define a method call node.NavigationCaseBuildernavigationCase()Define a particular combination of conditions that must match for this case to be executed, and the view id of the component tree that should be selected next.ReturnBuilderreturnNode(String returnNodeId)Define a return node.SwitchBuilderswitchNode(String switchNodeId)Define a particular list of cases that will be inspected in the order they are defined to determine where to go next in the flow graph.ViewBuilderviewNode(String viewNodeId, String vdlDocumentId)Define a view node in a flow graph.
-
Constructor Details
-
Method Details
-
navigationCase
Description copied from class:FlowBuilderDefine a particular combination of conditions that must match for this case to be executed, and the view id of the component tree that should be selected next.
- Specified by:
navigationCasein classFlowBuilder- Returns:
- the builder instance
-
viewNode
Description copied from class:FlowBuilderDefine a view node in a flow graph.
- Specified by:
viewNodein classFlowBuilder- Parameters:
viewNodeId- Within the flow graph, the id of this view node. Must be unique among all nodes in this flow graph.vdlDocumentId- The fully qualified path to the view node within this flow.- Returns:
- the builder instance
-
switchNode
Description copied from class:FlowBuilderDefine a particular list of cases that will be inspected in the order they are defined to determine where to go next in the flow graph. If none of the cases match, the outcome from the default case is chosen.
- Specified by:
switchNodein classFlowBuilder- Parameters:
switchNodeId- Within the flow graph, the id of this switch node. Must be unique among all nodes in this flow graph.- Returns:
- the builder instance
-
returnNode
Description copied from class:FlowBuilderDefine a return node. This node will cause the specified outcome to be returned to the calling flow.
- Specified by:
returnNodein classFlowBuilder- Parameters:
returnNodeId- Within the flow graph, the id of this return node. Must be unique among all nodes in this flow graph.- Returns:
- the builder instance
-
methodCallNode
Description copied from class:FlowBuilderDefine a method call node. This node will cause the specified method to be invoked, passing parameters if necessary. The return from the method is used as the outcome for where to go next in the flow. If the method is a void method, the default outcome is used.
- Specified by:
methodCallNodein classFlowBuilder- Parameters:
methodCallNodeId- Within the flow graph, the id of this method call node. Must be unique among all nodes in this flow graph.- Returns:
- the builder instance
-
flowCallNode
Description copied from class:FlowBuilderDefine a flow call node. This node will cause the specified flow to be called, passing parameters if necessary.
- Specified by:
flowCallNodein classFlowBuilder- Parameters:
flowCallNodeId- Within the flow graph, the id of this return node. Must be unique among all nodes in this flow graph.- Returns:
- the builder instance
-
id
Description copied from class:FlowBuilderSet the defining document id and flow id of this flow.
- Specified by:
idin classFlowBuilder- Parameters:
definingDocumentId- The defining document id of this flow, or the empty string if this flow does not need a defining document id.flowId- the id of the flow- Returns:
- the builder instance
-
initializer
Description copied from class:FlowBuilderA MethodExpression that will be invoked when the flow is entered.
- Specified by:
initializerin classFlowBuilder- Parameters:
methodExpression- the expression to invoke, must reference a zero-argument method.- Returns:
- the builder instance
-
initializer
Description copied from class:FlowBuilderA MethodExpression that will be invoked when the flow is entered.
- Specified by:
initializerin classFlowBuilder- Parameters:
methodExpression- the expression to invoke, must reference a zero-argument method.- Returns:
- the builder instance
-
finalizer
Description copied from class:FlowBuilderA MethodExpression that will be invoked when the flow is exited.
- Specified by:
finalizerin classFlowBuilder- Parameters:
methodExpression- the expression to invoke, must reference a zero-argument method.- Returns:
- the builder instance
-
finalizer
Description copied from class:FlowBuilderA MethodExpression that will be invoked when the flow is exited.
- Specified by:
finalizerin classFlowBuilder- Parameters:
methodExpression- the expression to invoke, must reference a zero-argument method.- Returns:
- the builder instance
-
inboundParameter
Description copied from class:FlowBuilderA parameter that will be populated with the value from a correspondingly named outbound parameter from another flow when this flow is entered from that flow.
- Specified by:
inboundParameterin classFlowBuilder- Parameters:
name- the parameter namevalue- theValueExpressionto populate with the inbound value when the flow is called.- Returns:
- the builder instance
-
inboundParameter
Description copied from class:FlowBuilderA parameter that will be populated with the value from a correspondingly named outbound parameter from another flow when this flow is entered from that flow.
- Specified by:
inboundParameterin classFlowBuilder- Parameters:
name- the parameter namevalue- theValueExpressionString to populate with the inbound value when the flow is called.- Returns:
- the builder instance
-
getFlow
Description copied from class:FlowBuilderCalled as the last step in flow definition, this method must perform any implementation specific initialization and return the built
Flow. If called more than one time during a given flow building process, the second and subsequent invocations must take no action and return the built flow.- Specified by:
getFlowin classFlowBuilder- Returns:
- the completely built
Flow
-
_getFlow
-