How to read the application.properties to Camunda process

Hi. I have created a Camunda process, i would like to trigger this process from the timer event. The cycle of the timer should be read from the application.properties file instead of configuring the cron expression. Could you please let me know how to achieve this.

Hi @Narmada ,

you could set the neccessary app properties as process variables at process start. Then you would then be able to use this variable in your timer event.

If you really want to access app properties from within your process dynamically the only way I could think of would be extending the current expression manager. E.g. if you are using the spring starter you could extend the spring expression manager and configure it via a process engine plugin.
In your implementation you read the application properties and try to match those. Be careful with your implementation tho, because variables names could be ambiguent. You could also think of a prefix such as “appProperties:timerCron”.
Anyways this approach would still require you to fill in the cron expression at the timer event while being able to control the value via “application.properties”-file.

Kind regards
Adagatiya