Timer and Spring beans

Hi,

Is it possible in timer expressions (timer definition type -> duration) use Spring beans to parse some kind of human readable expression and return according date. For example ${expr.parse(‘TODAY + 2’)}

Hi @Druvis,

This should be possible for all timer events that are not process-level timer start events. The return value of the expression must be a String with a valid timer configuration (see https://docs.camunda.org/manual/7.7/reference/bpmn20/events/timer-events/#expressions for some accompanying docs).

Cheers,
Thorben

Hi,

I tried these example, but always I got error "Cause: Cannot resolve identifier ‘expr’ ".
One note: we deploy bpmn diagrams with json web service call after deploying main application - war.

If the process deployment is not part of the process application deployment, you have to call the method ManagementService#registerProcessApplication to link the processes to the process application or else the process engine won’t know where to look for your Spring beans. This method is not exposed via REST API.

edit: This applies to a shared engine scenario. With an embedded engine, this should not be a problem.