Cancellation in a process

Hello, I have a question. I believe you showed me something about conditional events in a previous question. I want to try to make it so that if someone is either in Task D or in Task E, the Task Cancel disappears. Is this possible or is something missing in the process? I thought about using a different boundary, but I’m not sure if it will work that way. I would like to understand the events that are not supported in Camunda 8 during execution.