Accessing Enterprise Variables
There are two ways to access the Enterprise Variables in your process.
Accessing using Activities
Process Designer provides activities under the Control Room category to read the values of Enterprise Variables and use them as part of your process. These activities fetch the Enterprise Variables from Control Room by their names. You can use the following Activities to read Enterprise Variables in your Processes:
Activity | Description |
---|---|
GetProperty | Use this activity to fetch enterprise variables of types other than Credential |
GetCredential | Use this activity to read Enterprise Variables of type Credential only |
Accessing using Predicates
You can access an Enterprise Variables using short-cut predicates inside Expression Editor in the following manner:
EVar.Get<type>("name")
Here, type is the type of the Enterprise Variable, and name is the name of the Enterprise Variable.
For example:
EVar.Get<String>("DBName")
NOTE: This way of accessing is allowed if you have added all the existing and new Enterprise Variables inside the Project Explorer panel of Process Designer.