Class MaintenanceWorkflow


@Component public class MaintenanceWorkflow extends CronWorkflow
Clean up workflow instances periodically.
  • Field Details

  • Constructor Details

    • MaintenanceWorkflow

      public MaintenanceWorkflow()
      Create maintenance workflow definition.
    • MaintenanceWorkflow

      protected MaintenanceWorkflow(String type, WorkflowSettings settings)
      Extend maintenance workflow definition with custom workflow settings.
      Parameters:
      type - The type of the workflow definition.
      settings - The workflow settings.
  • Method Details

    • doWork

      public NextAction doWork(StateExecution execution, MaintenanceConfiguration conf)
      Clean up old workflow instances.
      Parameters:
      execution - State execution context.
      conf - The maintenance configuration.
      Returns:
      The action to go schedule state.