Add scripted dimensions
You can add scripted dimensions to a component by means of scripted definitions.
On the Configuration panel, click + Add dimension. The Model panel opens.
Select the object (for example, Case or Activity) in the Model panel, for which you want to create a scripted dimension.
Click
Add scripted definition. The code editor opens.
In the code editor, start typing the name of the field to be used as a dimension.
If you add a time dimension, define the dimension with its granularity as follows:
granularity(field name)
Example
MONTHS("_ARIS.Case"."Case start time")
The following operators are available for specifying the granularity: DAYS, HOURS, MINUTES, MONTHS, SECONDS, WEEKS, and YEARS.
For other dimensions, no further operation is required.
You can use variables instead of field names, granularity, or parameter values.
Examples
MONTHS("_ARIS.Case"."${variable}")
${variable}("_ARIS.Case"."Case start time")
If you use calculated fields that take parameters as input, you can pass on the parameter value with the FIELD operator.
FIELD("field name", 'parameterValue1', '${variable}') (The FIELD operator provides the values for parameters created for calculated fields.)
Click Apply.
You created a scripted dimension. The dimension is added to the Configuration panel of the component.