Calculated metrics allow you to create calculations based on the attributes of process steps or custom attributes. Various operators and expressions are available to create a calculation rule for a metric.
-
You can calculate the duration between two steps.
-
You can calculate with custom attributes (addition, subtraction).
Currently it is only possible to offset numbers against each other.
If you need further help with the implementation of your calculations, do not hesitate to contact your Scheer PAS consultant.
Available Operators
The following table shows the available operators:
|
Operator |
Description |
Structure |
|---|---|---|
|
OperatorAddition |
Allows the addition of expression2 and expression1. |
|
|
OperatorAttribute |
|
|
|
OperatorDivision |
Allows to divide expression1 by expression2. |
|
|
OperatorEquals |
Allows the comparison of expression1 and expression2. |
|
|
OperatorIndex |
Allows to extract the process node at a given index (second operand) from a set of process nodes. This set of process nodes is itself the result of an expression (first operand). |
|
|
OperatorMultiplication |
Allows to multiplicate expression1 and expression2. |
|
|
OperatorProcessAttribute |
Allows to extract custom attributes from the given process. |
|
|
OperatorSubtraction |
Allows to subtract expression2 from expression1. |
|
Available Expressions
The following table shows the available expressions:
|
Expression |
Description |
Structure |
|---|---|---|
|
FilterAttribute |
|
|
|
FilterIndex |
|
|
|
FilterType |
|
|
|
LocationPath |
A LocationPath is a set of LocationSteps to be applied on the evaluation context. |
|
|
LocationStep |
|
|
|
ValueBoolean |
Represents a boolean value or operand for operating expressions. |
|
|
ValueNumber |
Represents a number value or operand for operating expressions. |
|
|
ValueString |
Represents a string value or operand for operating expressions. |
|
Calculation Rule Examples
Currently it is only possible to offset numbers against each other.
Calculating the Duration Between two Steps
|
Use Case |
You want to calculate the duration between step1 and step2. Each step is passed only once. |
|---|---|
|
Description |
|
|
Example Calculation Rule |
|
Adding two Values
|
Use Case |
You want to add CustomAttribute1 and CustomAttribute2. |
|---|---|
|
Description |
|
|
Example Calculation Rule |
|
Subtracting two Values
|
Use Case |
You want to subtract CustomAttribute2 from CustomAttribute1. |
|---|---|
|
Description |
|
|
Example Calculation Rule |
|