Pluging code before saving variables

I wanted to perform some checks on process variables, just before they are committed in the database.
Is there a way to intercept the save call and perform these checks.

Hi @gumang,

with delegation code like task listeners for example, you can hook into events during the lifecycle of a task.
You could try listening for the complete event, check the variables and throw an error (e.g. a BPMN error that you can react on in your diagram).

I hope this helps!
Cheers,
Miklas

1 Like

Hi Miklas,
Definitly, it gives some alternative workaround idea. If any other solution comes to mind, let me know.

Thanks @Miklas
Cheers!!