April 13, 2020
Estimated Post Reading Time ~

/etc/workflow/instances

I wanted to clean up workflow archives.

So, I moved /etc/workflow/instances to /tmp/foo. Created sling:Folder, /etc/workflow/instances. And Recursively Deleted /tmp/foo (through /crx Content Explorer).

Problems are:
There could be a RUNNING or STALE workflow. You really need to remove COMPLETED workflows only.
When you create new /etc/workflow/instances sling:Folder, you need jcr:mixinTypes = ["rep:AccessControllable"]
and, set sling:resourceType = cq/workflow/components/instances
There is http://dev.day.com/content/kb/home/cq5/CQ5SystemAdministration/howtopurgewf.html

But use it with caution. It can kill the instance.


By aem4beginner

No comments:

Post a Comment

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