AnsweredAssumed Answered

cancel workflow when content deleted

Question asked by darionis on Jul 1, 2014
Latest reply on Jul 10, 2014 by darionis
I have a "customFolder" type based on cm:folder and a custom jbpm workflow that operates on customFolder (customFolder is in workflow's package).

If I delete customFolder, I also want to cancel workflow instance. Now, workflow instance remains after customFolder deletion and users see tasks that are related to nonexistent content.

I tried with onDelete policy combined with "cacncelWorkflow" call but it didn't really work and produced various errors including message about ALF-12358.

My question is: what is the best way to cancel workflow when content is deleted?

Thanks!

Outcomes