@Component public class WorkflowDefinitionService extends Object
| Constructor and Description |
|---|
WorkflowDefinitionService(WorkflowDefinitionDao workflowDefinitionDao,
Environment env) |
| Modifier and Type | Method and Description |
|---|---|
void |
addWorkflowDefinition(AbstractWorkflowDefinition<? extends WorkflowState> wd)
Add given workflow definition to managed definitions.
|
AbstractWorkflowDefinition<?> |
getWorkflowDefinition(String type)
Return the workflow definition that matches the give workflow type name.
|
List<AbstractWorkflowDefinition<? extends WorkflowState>> |
getWorkflowDefinitions()
Return all managed workflow definitions.
|
void |
postProcessWorkflowDefinitions()
Persist all loaded workflow definitions if nflow.autoinit is false and nflow.definition.persist is true.
|
@Inject public WorkflowDefinitionService(WorkflowDefinitionDao workflowDefinitionDao, Environment env)
public AbstractWorkflowDefinition<?> getWorkflowDefinition(String type)
type - Workflow definition type.public List<AbstractWorkflowDefinition<? extends WorkflowState>> getWorkflowDefinitions()
public void postProcessWorkflowDefinitions()
public void addWorkflowDefinition(AbstractWorkflowDefinition<? extends WorkflowState> wd)
wd - The workflow definition to be added.IllegalStateException - When a definition with the same type has already been added.Copyright © 2014–2020 Nitor Creations. All rights reserved.