Package io.nflow.engine.config
Class EngineConfiguration
java.lang.Object
io.nflow.engine.config.EngineConfiguration
The main Spring configuration class for nFlow engine.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnflowExecutor(ThreadFactory nflowThreadFactory, Environment env) Creates a workflow instance executor for processing workflow instances.Creates a resource for listing workflows that are not defined as Spring beans.Creates an object mapper for serializing and deserializing workflow instance state variables to and from database.Creates a thread factory for creating instance executor threads.
-
Constructor Details
-
EngineConfiguration
public EngineConfiguration()
-
-
Method Details
-
nflowExecutor
@Bean public WorkflowInstanceExecutor nflowExecutor(ThreadFactory nflowThreadFactory, Environment env) Creates a workflow instance executor for processing workflow instances.- Parameters:
nflowThreadFactory- Thread factory to be used for creating instance executor threads.env- The Spring environment.- Returns:
- Workflow instance executor.
-
nflowThreadFactory
Creates a thread factory for creating instance executor threads.- Returns:
- Instance executor thread factory.
-
nflowObjectMapper
Creates an object mapper for serializing and deserializing workflow instance state variables to and from database.- Returns:
- Object mapper.
-
nflowNonSpringWorkflowsListing
Creates a resource for listing workflows that are not defined as Spring beans.- Parameters:
env- The Spring environment.- Returns:
- A resource representing the file that contains a list of workflow class names.
-