Class BaseWorkflowContextFactory
java.lang.Object
io.axoniq.framework.workflow.dsl.base.BaseWorkflowContextFactory
- All Implemented Interfaces:
WorkflowContextFactory<BaseWorkflowContext>
public class BaseWorkflowContextFactory
extends Object
implements WorkflowContextFactory<BaseWorkflowContext>
Factory that creates
BaseWorkflowContext instances for Java DSL
workflows.- Since:
- 5.4.0
- Author:
- Simon Zambrovski
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateContext(Map<String, @Nullable Object> initialPayload, String workflowId, ProcessingContext processingContext, WorkflowConfiguration<?> workflowConfiguration) Creates a workflow context for the current workflow invocation.
-
Constructor Details
-
BaseWorkflowContextFactory
public BaseWorkflowContextFactory()
-
-
Method Details
-
createContext
public BaseWorkflowContext createContext(Map<String, @Nullable Object> initialPayload, String workflowId, ProcessingContext processingContext, WorkflowConfiguration<?> workflowConfiguration) Creates a workflow context for the current workflow invocation.- Specified by:
createContextin interfaceWorkflowContextFactory<BaseWorkflowContext>- Parameters:
initialPayload- initial workflow payloadworkflowId- unique identifier of the workflow instanceprocessingContext- processing context for the current messageworkflowConfiguration- runtime configuration for this workflow- Returns:
- workflow context passed to the Java DSL definition
-