Class SimpleWorkflowContextFactory
java.lang.Object
io.axoniq.framework.workflow.dsl.simple.SimpleWorkflowContextFactory
- All Implemented Interfaces:
WorkflowContextFactory<SimpleWorkflowContext>
public class SimpleWorkflowContextFactory
extends Object
implements WorkflowContextFactory<SimpleWorkflowContext>
Factory that creates
SimpleWorkflowContext instances for the
convenience Java DSL.- 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
-
SimpleWorkflowContextFactory
public SimpleWorkflowContextFactory()
-
-
Method Details
-
createContext
public SimpleWorkflowContext 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<SimpleWorkflowContext>- 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 simple Java DSL definition
-