Interface FlowUrlHandler
- All Known Implementing Classes:
DefaultFlowUrlHandler,FilenameFlowUrlHandler,WebFlow1FlowUrlHandler
public interface FlowUrlHandler
A interface for parsing and generating flow URLs. Encapsulates a specific flow URL format.
- Author:
- Keith Donald
-
Method Summary
Modifier and TypeMethodDescriptioncreateFlowDefinitionUrl(String flowId, AttributeMap<?> input, jakarta.servlet.http.HttpServletRequest request) Create a URL that when addressed will launch a new execution of a flow.createFlowExecutionUrl(String flowId, String flowExecutionKey, jakarta.servlet.http.HttpServletRequest request) Create a URL that when addressed will resume an existing execution of a flow.getFlowExecutionKey(jakarta.servlet.http.HttpServletRequest request) Extract the flow execution from the request.getFlowId(jakarta.servlet.http.HttpServletRequest request) Extract the flow id from the request.
-
Method Details
-
getFlowExecutionKey
Extract the flow execution from the request.- Parameters:
request- the request- Returns:
- the flow execution key, or null if no flow execution key is present
-
getFlowId
Extract the flow id from the request.- Parameters:
request- the request- Returns:
- the flow id, or null if no flow id is present
-
createFlowDefinitionUrl
String createFlowDefinitionUrl(String flowId, AttributeMap<?> input, jakarta.servlet.http.HttpServletRequest request) Create a URL that when addressed will launch a new execution of a flow.- Parameters:
flowId- the id of the flow definitioninput- the input to pass the new flow executionrequest- the current request- Returns:
- the flow definition url
-
createFlowExecutionUrl
String createFlowExecutionUrl(String flowId, String flowExecutionKey, jakarta.servlet.http.HttpServletRequest request) Create a URL that when addressed will resume an existing execution of a flow.- Parameters:
flowExecutionKey- the flow execution key that is paused and waiting to be resumedrequest- the current request- Returns:
- the flow execution url
-