Monday, July 11, 2011


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:
  1. There could be RUNNING or STALE workflow. You really need to remove COMPLETED workflows only.
  2. When you create new /etc/workflow/instances sling:Folder, you need jcr:mixinTypes = ["rep:AccessControllable"]
  3. and, set sling:resourceType = cq/workflow/components/instances

There is

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

1 comment:

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

    Do you mean it kills the process requiring a restart, or kills the repository requiring a restore-from-backup?