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.

1 answer

This one is the BEST answer!

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.


Submitted by mtsiak_1358773 on Tue, 01/16/2018 - 11:36

I think parameters can be viewed by **all ** users of the organization.
When I login to http://localhost:8080/bonita/, from the menu BPM->Processes->Select the procces-> more (button)->parameters menu.
Apologies if i am wrong.

Submitted by antoine.mottier on Tue, 01/16/2018 - 13:31

Actually the "BPM" menu is only available in "Administrator" view and so only available to users that have the "Administrator" profile.

In Bonita test organization (ACME) the "Administrator" profile is mapped to all users of the organization to ease the testing. But in real life configuration only appropriate users would be mapped to "Administrator" profile and so can access the "Administrator" view and view the parameters values.

Submitted by mtsiak_1358773 on Tue, 01/16/2018 - 13:33

@antoine.mottier thank you for your response.