Triggering a conditional event

Hey Folks,

I have a simple model i want to step through using the java API

The issue is that i want to trigger the conditional event programmatically but i can’t use the “signal” method because the execution is on the event-based gateway. So i there a way to tell the event to trigger in the same way you can trigger a message event.

Hi @Niall,

in documentation about conditional event you should find what you are looking for. The easiest way is probably to trigger it via variable api.

Is that the answer you were looking for?

Best,
Johannes

I was actually wondering how i could simple trigger the process “continue” along the that particular sequence. As if the execution had be signaled to move forward. I’d rather avoid setting specific variables if i can.

Hmm I’m not sure what you exactly want achieve. Could you maybe sketch what you are looking for by using pseudo code?

I was thinking something like this

				.getRuntimeService()
				.satisfyConditionalEvent(conditionalEvent.getId());

Meaning it could be a generic way of completing a conditional event without needing to actually change the condition itself.

If I’m not mistaken, then this should not be possible at the moment. I think you have to stick to the variable solution.

No problem - i’ll give that shot :slight_smile:
Thanks for the help

2 Likes