- Created by Annegret Bernhardt, last modified on Jan 02, 2024
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 of operators can be searched. To do this, enter your search phrase in the search field:
Oops, it seems that you need to place a table or a macro generating a table within the Table Filter macro.
The table is being loaded. Please wait for a bit ...
Operator | Description | Structure |
---|---|---|
OperatorAddition |
| "type": "OperatorAddition", "expression1": {}, "expression2": {} |
OperatorAttribute |
| "type": "OperatorAttribute", "expression1": {}, "expression2": {} |
OperatorDivision |
| "type": "OperatorDivision", "expression1": {}, "expression2": {} |
OperatorEquals |
| "type": "OperatorEquals", "expression1": {}, "expression2": {} |
OperatorIndex |
| "type": "OperatorIndex", "expression1": {}, "expression2": {} |
OperatorMultiplication |
| "type": "OperatorMultiplication", "expression1": {}, "expression2": {} |
OperatorProcessAttribute |
| "type": "OperatorProcessAttribute", "expression": {} |
OperatorSubtraction |
| "type": "OperatorSubtraction", "expression1": {}, "expression2": {} |
Available Expressions
The following table of expressions can be searched. To do this, enter your search phrase in the search field:
Oops, it seems that you need to place a table or a macro generating a table within the Table Filter macro.
The table is being loaded. Please wait for a bit ...
Expression | Description | Structure |
---|---|---|
FilterAttribute |
| "type": "FilterAttribute", "expression": {} |
FilterIndex |
| "type": "FilterIndex", "expression": {} |
FilterType |
| "type": "FilterType" |
LocationPath |
| "type": "LocationPath", "steps": [] |
LocationStep |
| "type": "LocationStep", "axis": <>, "nodeTest": <>, "filters": <> |
ValueBoolean |
| "type": "ValueBoolean", "value": <> |
ValueNumber |
| "type": "ValueNumber", "value": <> |
ValueString |
| "type": "ValueString", "value": <> |
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 | { "type": "OperatorSubtraction", "expression1": { "type": "OperatorAttribute", "expression1": { "type": "LocationPath", "steps": [{ "type": "LocationStep", "axis": "descendant", "nodeTest": "step2" }] }, "expression2": { "type": "ValueString", "value": "start" } }, "expression2": { "type": "OperatorAttribute", "expression1": { "type": "LocationPath", "steps": [{ "type": "LocationStep", "axis": "descendant", "nodeTest": "step1" }] }, "expression2": { "type": "ValueString", "value": "end" } } } |
Adding two Values
Use Case | You want to add CustomAttribute1 and CustomAttribute2. |
---|---|
Description |
|
Example Calculation Rule | { "type": "OperatorAddition", "expression1": { "type": "OperatorProcessAttribute", "expression": { "type": "ValueString", "value": "CustomAttribute1" } }, "expression2": { "type": "OperatorProcessAttribute", "expression": { "type": "ValueString", "value": "CustomAttribute2" } } } |
Subtracting two Values
Use Case | You want to subtract CustomAttribute2 from CustomAttribute1. |
---|---|
Description |
|
Example Calculation Rule | { "type": "OperatorSubtraction", "expression1": { "type": "OperatorProcessAttribute", "expression": { "type": "ValueString", "value": "CustomValue1" } }, "expression2": { "type": "OperatorProcessAttribute", "expression": { "type": "ValueString", "value": "CustomValue2" } } } |
- No labels