Package io.nflow.engine.workflow.curated
Class MaintenanceWorkflow
java.lang.Object
io.nflow.engine.model.ModelObject
io.nflow.engine.workflow.definition.WorkflowDefinition
io.nflow.engine.workflow.curated.CronWorkflow
io.nflow.engine.workflow.curated.MaintenanceWorkflow
Clean up workflow instances periodically.
-
Field Summary
FieldsFields inherited from class io.nflow.engine.workflow.curated.CronWorkflow
DISABLED, DO_WORK, FAILED, HANDLE_FAILURE, SCHEDULE, VAR_SCHEDULE, WAIT_FOR_WORK_TO_FINISHFields inherited from class io.nflow.engine.workflow.definition.WorkflowDefinition
allowedTransitions, failureTransitions -
Constructor Summary
ConstructorsModifierConstructorDescriptionCreate maintenance workflow definition.protectedMaintenanceWorkflow(String type, WorkflowSettings settings) Extend maintenance workflow definition with custom workflow settings. -
Method Summary
Modifier and TypeMethodDescriptiondoWork(StateExecution execution, MaintenanceConfiguration conf) Clean up old workflow instances.Methods inherited from class io.nflow.engine.workflow.curated.CronWorkflow
getNextActivationTime, handleFailure, handleFailureImpl, schedule, waitForWorkToFinish, waitForWorkToFinishImplMethods inherited from class io.nflow.engine.workflow.definition.WorkflowDefinition
getAllowedTransitions, getDescription, getErrorState, getFailureTransitions, getInitialState, getMethod, getMethod, getName, getSettings, getState, getStates, getSupportedSignals, getType, isAllowedNextAction, isStartState, permit, permit, registerState, setDescription, setNameMethods inherited from class io.nflow.engine.model.ModelObject
equals, hashCode, toString
-
Field Details
-
MAINTENANCE_WORKFLOW_TYPE
- See Also:
-
VAR_MAINTENANCE_CONFIGURATION
- See Also:
-
-
Constructor Details
-
MaintenanceWorkflow
public MaintenanceWorkflow()Create maintenance workflow definition. -
MaintenanceWorkflow
Extend maintenance workflow definition with custom workflow settings.- Parameters:
type- The type of the workflow definition.settings- The workflow settings.
-
-
Method Details
-
doWork
Clean up old workflow instances.- Parameters:
execution- State execution context.conf- The maintenance configuration.- Returns:
- The action to go schedule state.
-