Previous Next
Opalis Integration Server > Global Settings > Variables

Variables
When building Policies you may find that there are settings that are same across different objects. When these values need to be updated, it becomes inconvenient to change each object individually. Variables enable you to specify a value in one location and then use that value anywhere else by inserting the Variable into the object.
To create a Variable:
1.
Click the Variables folder or a sub-folder of the Variables folder.
2.
Click . The New Variable dialog appears.
3.
Type a Name for the variable.
4.
Type a Description that explains what the Variable is for.
5.
Type the Value of the Variable. This value replaces the placeholder in the objects where the Variable is inserted.
To modify a Variable, double-click the Variable.
To remove a Variable, select it and press Delete.
To insert a Variable:
1.
Open an object for editing.
2.
Right-click a text field.
3.
Select Insert and then select Variable. The Select a Variable dialog appears.
4.
Select the Variable and click OK. A placeholder is placed in the text field.
When the object runs, the placeholder will be replaced with the value of the Variable.
You can group Variables into folders to organize them. To create a folder, click the Variables folder and click .
Special Variables
You can specify special formats of variables to provide dynamic information to your policies. Specify the following as the value of the variable to invoke this behavior:
NOW() - When the variable is resolved it will be set to the current date and time. You can pass arguments to this function to return specific portions of the date or time. For example, NOW(hour) will return the current hour. The following lists the valid arguments for the NOW() function:
day
dayofweek
dayofyear
month
year
hour
minute
second
millisecond
%ENVVAR% - Returns the value of the environment variable between the percent (%) symbols. The environment variable is based on the Action Server computer where the policy is running and is not case sensitive. Only system variables can be resolved, user variables will not be resolved. If the environment variable does not exist, the text specified within the Variable will be returned as-is.

Previous Next