Class WorkflowContextAdoptingExecutionFactory<C extends WorkflowContext>
java.lang.Object
io.axoniq.framework.workflow.runtime.execution.WorkflowContextAdoptingExecutionFactory<C>
- Type Parameters:
C- type of the implementation.
- All Implemented Interfaces:
WorkflowExecutionFactory
public class WorkflowContextAdoptingExecutionFactory<C extends WorkflowContext>
extends Object
implements WorkflowExecutionFactory
Workflow execution factory adopting an author-facing context implementing
AbstractWorkflowContext.- Since:
- 5.4.0
- Author:
- Simon Zambrovski
-
Constructor Summary
ConstructorsConstructorDescriptionWorkflowContextAdoptingExecutionFactory(Class<C> workflowContextType) Creates a new factory. -
Method Summary
Modifier and TypeMethodDescriptioncreate(WorkflowContext workflowContext) Creates workflow execution for a given workflow context.
-
Constructor Details
-
WorkflowContextAdoptingExecutionFactory
Creates a new factory.- Parameters:
workflowContextType- type of the workflow context.
-
-
Method Details
-
create
Description copied from interface:WorkflowExecutionFactoryCreates workflow execution for a given workflow context.- Specified by:
createin interfaceWorkflowExecutionFactory- Parameters:
workflowContext- author-facing context to create the workflow execution for- Returns:
- workflow execution.
-