Execute task when parent workflows is cancelled

Discussion created by MarcoTizzoni604411 on Sep 12, 2017
Latest reply on Sep 12, 2017 by Wolfgang_Brueckler_1288
I have a workflow with a number of tasks, say 2.
It looks like this: A --> B

If any of A or B fails the parent workflow is blocked.
My goal is to have a task executed only if I the parent workflow is manually cancelled.

I tried using the Attributes -> Task Result Evaluation setting but that does not work because the task is executed immediately when A or B fails. 

I want the task to be executed only when the parent workflow is cancelled (or has failed).
Any help much appreciated.