Can we use properties defined in application.yml or application.properties directly in the camunda model

Hi,
I want to use properties defined in application.yml or application.properties directly in the camunda model
e.g.
If I have a Time based start event in my process the Cycle/Duration value for the event should be taken from the property defined in applilcation.yml

In the image the ${dmn.in-hours.cycle} property is defined in application.yml file, but the process engine is not able to find it

Can we achieve this in camunda ?

image

That’s a nice idea, but it doesn’t exist as a feature as of now. What you can do is create a Spring Bean into which you inject the properties, and then invoke this bean from the process.

Cheers,
Thorben

1 Like

@vikramugwekar the below posts might be helpful.

https://groups.google.com/forum/#!msg/camunda-bpm-users/3oDUtmurBI4/-UoqOVy4dS4J