Best practice for variables across connectors - How could they be defined
When setting up Connectors (eg. for sending an email, or connect to an Alfresco/ ldap host) in the wizard we are asked to set some variables (e.g. smtp host, username, password).
In order not to set them on every connector, what is the best practice for setting some static variables across the workflow at Bonita BPM?
Thanks in advance.
For connector parameters such as server address, credentials... (parameters that will be shared by all process instances) the recommendation is to declare them as parameters in the process definition.
To do so, you need to select the process pool, go to "Data" tab and select the "Parameters" sub tab. Then you can declare your parameter and specify their type. Once you did that you need to go in the process configuration by clicking on the "Configure" button, select "Parameters" and define the values.
Using parameters lets you declare in a single location settings for all your connectors located in a single process definition. Also if you switch to Subscription Edition of Bonita you have an additional feature that let you update the parameters value with out redeploying your process.
@antoine.mottier thank you for your response.