Hello,
I am modeling a system that creates events to an external service. Sometimes when a new task is fired, I want to inform the external process that the previous task needs to be canceled.
Imagine I fired task A and after some time that task expires and Task B must be done instead. When my External Task worker gets the event for task B, The worker most check if Task A must be canceled before staring task B.
My question is How can I model something like that? I am trying to use the Output of task A to provide the instance Id of itself, so when the worker gets the task B event, it will be able to check if the tasks that need to be canceled, and process accordingly.
The problem I have is that I don’t know how to pass the task instance id in the Output variable. Is that possible, I have tried several ways with no success.
Is there any other way to get the desired behavior?
Thank you
Elkin