Expand my Community achievements bar.

SOLVED

Workflow Purge CRON exporession is missing in AEM 6.1

Avatar

Level 3

Hi,

In AEM 6.1 , in the OOTB Workflow Purge Configuration , there is no option to provide cron expression. I configured to purge all the running workflows for more than one day and it is not purging.

I have no idea when it will be triggered to purge all the completed workflows.

Note : In AEM 5.6.1 cron expression is provided in the OOTB  Workflow Purge Configuration.

Need your valuable inputs here,

Thanks,

Selva

1 Accepted Solution

Avatar

Correct answer by
Level 9

You can follow below recommendation proposed by Adobe.

4.3. Workflow purge
Each time a workflow is launched in AEM, a workflow instance is created. Once the workflow is
completed, the instance is archived. This applies to all workflows, including the DAM Update
Asset workflow. As the number of archived instances increases, the repository will become
bloated and queries that search through the workflow hierarchy will begin to suffer from performance
degradation.
In order to prevent repository growth and slow queries related to workflows, it is recommended
to run a workflow purge regularly. Workflow purge maintenance task is by default added to
weekly maintenance window. In order to be effective, purge configuration must be created in
OSGi configuration console
http://<HOST>:<PORT>/system/console/configMgr
In the page locate section “Adobe Granite Workflow Purge Configuration” and press ‘+’ button.
In popup dialog you can enter values for following properties:
              • Job Name – descriptive name

              • Workflow Status – denotes the status of the workflow that is considered to be deleted;
                by default and in most cases, it should be COMPLETED

             • Models To Purge – list of all workflow models for which their corresponding instances
             should be deleted; if the list is empty, all modes are considered

            • Workflow Age – how old workflows should be before they are purged

Thanks,

Kishore

View solution in original post

4 Replies

Avatar

Correct answer by
Level 9

You can follow below recommendation proposed by Adobe.

4.3. Workflow purge
Each time a workflow is launched in AEM, a workflow instance is created. Once the workflow is
completed, the instance is archived. This applies to all workflows, including the DAM Update
Asset workflow. As the number of archived instances increases, the repository will become
bloated and queries that search through the workflow hierarchy will begin to suffer from performance
degradation.
In order to prevent repository growth and slow queries related to workflows, it is recommended
to run a workflow purge regularly. Workflow purge maintenance task is by default added to
weekly maintenance window. In order to be effective, purge configuration must be created in
OSGi configuration console
http://<HOST>:<PORT>/system/console/configMgr
In the page locate section “Adobe Granite Workflow Purge Configuration” and press ‘+’ button.
In popup dialog you can enter values for following properties:
              • Job Name – descriptive name

              • Workflow Status – denotes the status of the workflow that is considered to be deleted;
                by default and in most cases, it should be COMPLETED

             • Models To Purge – list of all workflow models for which their corresponding instances
             should be deleted; if the list is empty, all modes are considered

            • Workflow Age – how old workflows should be before they are purged

Thanks,

Kishore

Avatar

Level 3

Hi Kishore,

Thanks for your reply.

At what time the workflows (as per the configuration) will be purged daily. Since cron expression is missing in AEM 6.1

Thanks,

Selva

Avatar

Level 9

By default it runs weekly(From The starting of the CQ installation),to see the same please follow below steps.

In Touch UI Console

Step 1:Go to Tools->Operations->Dashboard->Maintenance-

Step 2 :There will be two options  Daily Maintenance Window and Weekly Maintenance Window in the right pan

Step 3:Click on Weekly Maintenance Window

Step 4:You will Workflow Purge Option

Avatar

Level 9

@Selva123,

There isn't any cron expression to configure. All you need to configure is days. And, I guess, forming cron expression is done by workflow.

      
Workflow Agescheduledpurge.daysold

The age of the workflow instances to purge, in days.

-----

Jitendra