How to perform workflow maintenance in Ain AEM

Statement: Workflow maintenance through JMX

Solution :



  • How to purge active workflows

  • List of maintenance task to be performed on workflows:

Operations
Return Type
Name
int
countStaleWorkflows(java.lang.String model [optional])
returns the count of stale workflows in the system
javax.management.openmbean.TabularData
terminateFailedInstances(boolean restart the instance, boolean dry run, java.lang.String model [optional])
Terminate Failed Instances, with optional restart of instance
javax.management.openmbean.TabularData
retryFailedWorkItems(boolean dry run, java.lang.String model [optional])
Retry Failed WorkItems
javax.management.openmbean.TabularData
listCompletedWorkflowsPerModel()
count the number of completed workflows
javax.management.openmbean.TabularData
returnSystemJobInfo()
retrieve overall workflow and system job queue information
javax.management.openmbean.TabularData
restartStaleWorkflows(java.lang.String model [optional], java.lang.Boolean dry run)
restarts stale workflows in the system
javax.management.openmbean.TabularData
returnWorkflowQueueInfo()
retrieve workflow queue information
javax.management.openmbean.TabularData
returnWorkflowJobTopicInfo()
retrieve workflow job topic information
javax.management.openmbean.TabularData
listRunningWorkflowsPerModel()
count the number of running workflows
int
countCompletedWorkflows(java.lang.String model [optional])
count the number of completed workflows
int
returnFailedWorkflowCount(java.lang.String model [optional])
count number of failed workflows
int
countRunningWorkflows(java.lang.String model [optional])
count the number of running workflows
javax.management.openmbean.TabularData
purgeCompleted(java.lang.String model [optional], java.lang.Integer number of days since workflow has been completed, java.lang.Boolean dry run)
Purge Completed Workflows
javax.management.openmbean.TabularData
purgeActive(java.lang.String model [optional], java.lang.Integer number of days since workflow started, java.lang.Boolean dry run)
Purge Active Workflows
javax.management.openmbean.TabularData
fetchModelList()
get workflow model list
javax.management.openmbean.TabularData
returnFailedWorkflowCountPerModel()
count number of failed workflows per model

1 comment:

  1. Thank you so much for sharing this worth able content with us. The concept taken here will be useful for my future programs and i will surely implement them in my study. Keep blogging article like this.
    Business Management Software

    ReplyDelete