April 22, 2020
Estimated Post Reading Time ~

How to perform workflow maintenance in Ain AEM

Statement: Workflow maintenance through JMX
Solution:
Go to this path http://localhost:4502/system/console/jmx/com.adobe.granite.workflow%3Atype%3DMaintenance
Click on PurgeCompleted() method and key in how many old days workflow to be purged(30)
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


By aem4beginner

No comments:

Post a Comment

If you have any doubts or questions, please let us know.