Interface WorkflowProvider
- All Known Implementing Classes:
ExternalWorkflowProvider
public interface WorkflowProvider
Support remote REST API calls to WorkflowServices
-
Method Summary
Modifier and TypeMethodDescriptionboolean
incompleteExistsByContextValue
(String contextValue, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Determine if an active workflow exists for a context valuevoid
resume
(String workflowId, Map<String, String> additionalWorkflowContext, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Request that the remote workflow service resume a paused or failed workflow executionvoid
start
(WorkflowRequest request) Request that the remote workflow service start a new workflow execution
-
Method Details
-
start
Request that the remote workflow service start a new workflow execution- Parameters:
request
- Request that the remote workflow service start a new workflow execution
-
resume
void resume(String workflowId, Map<String, String> additionalWorkflowContext, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Request that the remote workflow service resume a paused or failed workflow execution- Parameters:
workflowId
- The id of the workflow to be resumedadditionalWorkflowContext
- Additional parameters to add to the workflow's contextcontextInfo
- Context information about the multi-tenant state.
-
incompleteExistsByContextValue
boolean incompleteExistsByContextValue(String contextValue, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Determine if an active workflow exists for a context value- Parameters:
contextValue
- The context value to check for an active workflowcontextInfo
- The context information around multi-tenant state- Returns:
- True if the workflow exists, false otherwise
-