Environment Specifics

Hello all,

we have started to use Camunda in our project based on Apache Tomcat server with war deployments. The processes we have call many REST services. However, we have different environments for DEV, TEST and PROD. Thus in each environment we have different base URLs and technical user credentials for REST services.

What are the best practices to configure such parameters? Currently we have created several script files which set baseURL and authentication (user/password with base64 encoding) process variables at process startup. At build time we define the target environment and select an appropriate file to be included into war file. Further the process use the variables to configure script tasks.

@alexeib here is a style for your consideration:

specifically:

Where you load in a config json file such as: https://github.com/StephenOTT/ProcessProjectTemplate/tree/master/resources/configs

All of this in our case is automated with Jenkins using the Rest API and env specific deployment files: https://github.com/StephenOTT/ProcessProjectTemplate/blob/master/deploy_dev.json which are read by the jenkins file.

Thanks, StephenOTT, we will try the recommended approach in a while.