Hi,
I am trying to create a task that will be as a sort of assistance. But I don't want to allow the users that got the task to end it. It should end when a specific variable is set to true (ex. execution.setVariable('proc_finished','true') ). But I have no idea how to do this. I can't trigger the complete event of the task. I saw somewhere about signal and boundary events but I could not find any code as to how to implement them.
I am working with JavaScript inside of the bpmn file. If someone can point me in the right direction that would be perfect.
Thank you,
Irena