cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic Boundary Events

ncoonghe
Champ in-the-making
Champ in-the-making
Hi

Currently, from what I have understood from the users guide, boundary events are not dynamic. The need to be configured as part of the process and deployed. Is there a way to disable the boundary event that is defined on a task programmatically and enable it again when required.

The use case is, since the event needs to be configured prior, and say it is a timer based boundary event, the event gets fired when the timeline is reached. I want the event not to be fired, unless it is enabled. I can let it fire and do nothing, but then the process instance diagram would show the activity(event) to have executed giving the impression that the event has fired. I want to dynamically enable and disable the event when required based on some custom configuration define din my application. Is this possible and if so how ?

Any help and ideas is appreciated.

Regards
Nirmal
3 REPLIES 3

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi Nirmal,

I would suspend the process instance org.activiti.engine.RuntimeService#suspendProcessInstanceById.

Regards
Martin

ncoonghe
Champ in-the-making
Champ in-the-making
Hi Martin,

I do not think you got by problem right or maybe I was not cleared. The process instance need to be still active (and not suspended) but the boundary timer event on the task need to be disabled and enabled as needed. Meaning when disabled the event should not fire.

Regards
Nirmal

jbarrez
Star Contributor
Star Contributor
That's not an out of the box feature, sorry.