@Named public class MaintenanceService extends Object
| Constructor and Description |
|---|
MaintenanceService(MaintenanceDao maintenanceDao,
TableMetadataChecker tableMetadataChecker,
WorkflowDefinitionService workflowDefinitionService) |
| Modifier and Type | Method and Description |
|---|---|
MaintenanceResults |
cleanupWorkflows(MaintenanceConfiguration configuration)
Cleans up old (whose modified time is earlier than
olderThanPeriod parameter) and passive (that do not have
nextActivation) workflows. |
@Inject public MaintenanceService(MaintenanceDao maintenanceDao, TableMetadataChecker tableMetadataChecker, WorkflowDefinitionService workflowDefinitionService)
public MaintenanceResults cleanupWorkflows(MaintenanceConfiguration configuration)
olderThanPeriod parameter) and passive (that do not have
nextActivation) workflows. Copies workflow instances, actions and state variables to corresponding archive
tables and removes them from production and archive tables as requested.configuration - Cleanup actions to be executed and parameters for the actions.Copyright © 2014–2020 Nitor Creations. All rights reserved.