CMMN interrupt task having repetition rule

Hello,
I want to repeat a task whenever a variable “repeatTask” is updated and evaluated to true.
In order to achieve that, I used repetion rule , VariableOnPArt(to detect update) and ifPartCondition’.
That worked well but I wanted also to interrupt the task when creating its repetition instance in order to avoid duplication, so I added an exit criterion with ifPartCondition =“repeatTask”.I got some exceptions ,when running this since entry and exit conditions are the same.
What do you think the best way to resolve this? Adding listeners?

Thanks

Not sure if you’ve already tried adding a listener.

I’ve been using various CMMN event listeners. Nice feature.

You could try setting up a listener that checks for a process variable, and if found and equals “something”, then continue or abort. Managing history might be a little tedious if required…

I’ll follow-up later on this - this scenario is on my horizon. But, didn’t rank it as a risk given all the options available for event management.

One interesting thing I noticed with regards to the CMMN embedded form (form SDK/AngularJS) is that the form regularly checks in on the server via rest calls. This could help communicate status between concurrent users. However… not sure if this feature yet has documented API access.