public class NflowEngine extends Object implements AutoCloseable
| Modifier and Type | Class and Description |
|---|---|
protected static class |
NflowEngine.NflowEngineSpringConfig |
| Constructor and Description |
|---|
NflowEngine(DataSource dataSource,
SQLVariants sqlVariants,
Collection<AbstractWorkflowDefinition<? extends WorkflowState>> workflowDefinitions)
Starts up the NflowEngine with WorkflowDispatcher running in a thread.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Shuts down the nFlow engine gracefully and returns when the shutdown is complete.
|
HealthCheckService |
getHealthCheckService() |
MaintenanceService |
getMaintenanceService() |
StatisticsService |
getStatisticsService() |
WorkflowDefinitionService |
getWorkflowDefinitionService() |
WorkflowExecutorService |
getWorkflowExecutorService() |
WorkflowInstanceService |
getWorkflowInstanceService() |
boolean |
isPaused()
Returns true if the nFlow engine is currently paused.
|
boolean |
isRunning()
Returns true if the nFlow engine is currently running.
|
void |
pause()
Pauses a running nFlow engine.
|
void |
resume()
Resumes a paused nFlow engine.
|
void |
start()
For manually starting dispatcher thread.
|
public NflowEngine(DataSource dataSource, SQLVariants sqlVariants, Collection<AbstractWorkflowDefinition<? extends WorkflowState>> workflowDefinitions)
dataSource - sqlVariants - workflowDefinitions - public void start()
public void pause()
public void resume()
public boolean isPaused()
public boolean isRunning()
public void close()
close in interface AutoCloseablepublic MaintenanceService getMaintenanceService()
public HealthCheckService getHealthCheckService()
public StatisticsService getStatisticsService()
public WorkflowDefinitionService getWorkflowDefinitionService()
public WorkflowInstanceService getWorkflowInstanceService()
public WorkflowExecutorService getWorkflowExecutorService()
Copyright © 2014–2020 Nitor Creations. All rights reserved.