public interface WorkflowInstanceRemover
| Modifier and Type | Field and Description |
|---|---|
static String |
MODEL_ID |
static String |
WORKFLOW_INSTANCES_PATH
Deprecated.
please use the multi-value WORKFLOW_INSTANCES_PATHS instead.
|
static String[] |
WORKFLOW_INSTANCES_PATHS |
| Modifier and Type | Method and Description |
|---|---|
void |
forceQuit()
Forces an interruption of the Workflow removal process.
|
WorkflowRemovalStatus |
getStatus()
Gets the Workflow Remover's status.
|
int |
removeWorkflowInstances(org.apache.sling.api.resource.ResourceResolver resourceResolver,
Collection<String> modelIds,
Collection<String> statuses,
Collection<Pattern> payloads,
Calendar olderThan)
Removes workflow instances that match the parameter criteria.
|
int |
removeWorkflowInstances(org.apache.sling.api.resource.ResourceResolver resourceResolver,
Collection<String> modelIds,
Collection<String> statuses,
Collection<Pattern> payloads,
Calendar olderThan,
int batchSize)
Removes workflow instances that match the parameter criteria.
|
int |
removeWorkflowInstances(org.apache.sling.api.resource.ResourceResolver resourceResolver,
Collection<String> modelIds,
Collection<String> statuses,
Collection<Pattern> payloads,
Calendar olderThan,
int batchSize,
int maxDurationInMins)
Removes workflow instances that match the parameter criteria.
|
@Deprecated static final String WORKFLOW_INSTANCES_PATH
static final String[] WORKFLOW_INSTANCES_PATHS
static final String MODEL_ID
int removeWorkflowInstances(org.apache.sling.api.resource.ResourceResolver resourceResolver,
Collection<String> modelIds,
Collection<String> statuses,
Collection<Pattern> payloads,
Calendar olderThan)
throws org.apache.sling.api.resource.PersistenceException,
WorkflowRemovalException,
InterruptedException,
WorkflowRemovalForceQuitException
resourceResolver - the resource resolver; must have access to read/delete workflow instancesmodelIds - WF Models to removestatuses - WF Statuses to removepayloads - Regexes; WF Payloads to removeolderThan - UTC time in milliseconds; only delete WF's started after this timeorg.apache.sling.api.resource.PersistenceExceptionWorkflowRemovalExceptionInterruptedExceptionWorkflowRemovalForceQuitExceptionint removeWorkflowInstances(org.apache.sling.api.resource.ResourceResolver resourceResolver,
Collection<String> modelIds,
Collection<String> statuses,
Collection<Pattern> payloads,
Calendar olderThan,
int batchSize)
throws org.apache.sling.api.resource.PersistenceException,
WorkflowRemovalException,
InterruptedException,
WorkflowRemovalForceQuitException
resourceResolver - the resource resolver; must have access to read/delete workflow instancesmodelIds - WF Models to removestatuses - WF Statuses to removepayloads - Regexes; WF Payloads to removeolderThan - UTC time in milliseconds; only delete WF's started after this timebatchSize - number of workflow instances to delete per JCR saveorg.apache.sling.api.resource.PersistenceExceptionWorkflowRemovalExceptionInterruptedExceptionWorkflowRemovalForceQuitExceptionint removeWorkflowInstances(org.apache.sling.api.resource.ResourceResolver resourceResolver,
Collection<String> modelIds,
Collection<String> statuses,
Collection<Pattern> payloads,
Calendar olderThan,
int batchSize,
int maxDurationInMins)
throws org.apache.sling.api.resource.PersistenceException,
WorkflowRemovalException,
InterruptedException,
WorkflowRemovalForceQuitException
resourceResolver - the resource resolver; must have access to read/delete workflow instancesmodelIds - WF Models to removestatuses - WF Statuses to removepayloads - Regexes; WF Payloads to removeolderThan - UTC time in milliseconds; only delete WF's started after this timebatchSize - number of workflow instances to delete per JCR savemaxDurationInMins - max number of mins the workflow removal process is allowed to runorg.apache.sling.api.resource.PersistenceExceptionWorkflowRemovalExceptionInterruptedExceptionWorkflowRemovalForceQuitExceptionWorkflowRemovalStatus getStatus()
void forceQuit()
Copyright © 2013–2020 Adobe. All rights reserved.