Load postgres params from tomcat properties into flowable code


I run successfully the flowable example with postgresql which is configured in a file named flowable-ui-app.properties into /opt/tomcat/lib
Do you know how to load this parameters from /opt/tomcat/lib into the java code instead of the following :

ProcessEngineConfiguration cfg = new StandaloneProcessEngineConfiguration()


You’d need to read those properties (using default Java property reading/Spring property support/etc) and then pass them into the configuration. The Flowable engine expects either a flowable.cfg.xml file or programmatically (as above). In fact, the flowable-ui-app.properties are read and then used internally to programmatically create the engine.

Ok, i am not using spring.
Maybe your comment should be added into the flowable documentation
Thank you for your answer