Interface WorkflowContextFactory<T extends WorkflowContext>

Type Parameters:
T - type of the context.
All Known Implementing Classes:
BaseWorkflowContextFactory, SimpleWorkflowContextFactory
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface WorkflowContextFactory<T extends WorkflowContext>
Creates a context for workflow execution.
Since:
5.4.0
Author:
Simon Zambrovski, Stefan Dragisic
  • Method Details

    • createContext

      T createContext(Map<String,@Nullable Object> initialPayload, String workflowId, ProcessingContext processingContext, WorkflowConfiguration<?> workflowConfiguration)
      Creates a new workflow context.
      Parameters:
      initialPayload - initial payload of the workflow.
      workflowId - id of the workflow.
      processingContext - processing context.
      workflowConfiguration - workflow configuration.
      Returns:
      workflow context.