@Component public class MaintenanceWorkflow extends CronWorkflow
CronWorkflow.State| Modifier and Type | Field and Description |
|---|---|
static String |
MAINTENANCE_WORKFLOW_TYPE |
static String |
VAR_MAINTENANCE_CONFIGURATION |
VAR_SCHEDULEallowedTransitions, failureTransitions| Modifier | Constructor and Description |
|---|---|
|
MaintenanceWorkflow()
Create maintenance workflow definition.
|
protected |
MaintenanceWorkflow(String type,
WorkflowSettings settings)
Extend maintenance workflow definition with customer workflow settings.
|
| Modifier and Type | Method and Description |
|---|---|
NextAction |
doWork(StateExecution execution,
MaintenanceConfiguration conf)
Clean up old workflow instances.
|
getNextActivationTime, handleFailure, handleFailureImpl, schedulegetStatesgetAllowedTransitions, getDescription, getErrorState, getFailureTransitions, getInitialState, getMethod, getName, getSettings, getState, getSupportedSignals, getType, isAllowedNextAction, isStartState, permit, permit, setDescription, setNameequals, hashCode, toStringpublic static final String MAINTENANCE_WORKFLOW_TYPE
public static final String VAR_MAINTENANCE_CONFIGURATION
public MaintenanceWorkflow()
protected MaintenanceWorkflow(String type, WorkflowSettings settings)
type - The type of the workflow definition.settings - The workflow settings.public NextAction doWork(StateExecution execution, MaintenanceConfiguration conf)
execution - State execution context.conf - The maintenance configuration.Copyright © 2014–2020 Nitor Creations. All rights reserved.