Making tasks visible or hidden as required after initial rendering

Is there a way to make a set of tasks visible or hidden based on certain actions not just on initial rendering, i.e, I want some tasks to appear if some criteria are met and then disappear later when other criteria are met. I am using only a BPMN viewer and the user cannot directly interact with the BPMN diagram. Is this possible?

What do you mean by “hidden”? Do you want to just visually hide them or completely remove from the diagram?

Visually hidden, I do not want them removed. I just want them visually hidden at some point and visible later.

If you know task id upfront, you can use this solution: bpmn-js Toggle Task visibility - CodeSandbox

1 Like

This work perfectly! Thank you very much barmac!

1 Like