Trigger intermediate event based on dynamic value

Hi guys,

I was wondering how one would go about triggering an intermediate event based on a dynamic boolean value fetched from a db on a script task.

Any thoughts?

Why would you want to?

Surely it would be simpler to just have a gateway and execute a step (which is all an intermediate event is).

if true then execute,
if not then don’t execute…

regards

Because execution is reliant on this db value, which is updated from a different application altogether. I’ve found a way to do this. Thanks for the help