Package com.yworkflow.builder
Interface WorkflowEngineBuilder
public interface WorkflowEngineBuilder
Builder interface for creating a WorkflowEngine instance. This interface provides methods to
configure the essential components required for a workflow engine.
The WorkflowEngineBuilder follows a fluent builder pattern, allowing for chained configuration of the workflow engine components. At minimum, either an instance store or instance repository must be provided.
- Since:
- 1.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionwithInstanceRepository(WorkflowInstanceRepository repository) Configures the workflow engine to use the specified instance repository.withInstanceStore(WorkflowInstanceStore workflowStore) Configures the workflow engine to use the specified instance store.
-
Method Details
-
withInstanceStore
Configures the workflow engine to use the specified instance store. The instance store is responsible for persisting workflow instances.- Parameters:
workflowStore- the instance store to use- Returns:
- a WorkflowInstanceOptionalBuilder for further configuration
-
withInstanceRepository
Configures the workflow engine to use the specified instance repository. The instance repository provides a higher-level abstraction for managing workflow instances.- Parameters:
repository- the instance repository to use- Returns:
- a WorkflowInstanceOptionalBuilder for further configuration
-