VARIANT
Applies to: CELONIS 4.2 CELONIS 4.3 CELONIS 4.4 CELONIS 4.5 CELONIS 4.6 CELONIS 4.7
Description
VARIANT
aggregates all activities of a case into a string, which represents a variant of the case. SHORTENED
can be used to shorten self-loops to a maximum number of occurrences.
Syntax
VARIANT ( activity_table.column )
activity_table.column: String column of the activity table.
SHORTENED ( VARIANT ( activity_table.column ) [, max_cycle_length ] )
activity_table.column: String column of the activity table.
max_cycle_length: More than max_cycle_length consecutive occurrences of the same activity are reduced to max_cycle_length occurrences (Since: CELONIS 4.6). Default Value is 2.
SHORTENED
Sometimes, different cases may have self-loops of the same activity but with a different number of activities. Consequently, these cases are related to different variants. However, in some applications it is not of interest how often an activity is repeated but only if there is a self-loop or not. For such cases, the VARIANT
operator can be wrapped by the SHORTENED
command which shortens self-loops to a maximum number of occurrences. In this way, it is possible to abstract from repeated activities and reduce the number of distinct variants. The limit for the length of the self-loops can be specified by an optional parameter. The default value for the maximum cycle length is 2.
Input column
The input column can be any (modified) string column of the activity table. Usually, the activity column is used, but it is also possible to create variants based on a resource column, like user name or country information. Activities can also be grouped together by mapping activity names, for example using REMAP_VALUES. VARIANT
ignores NULL values.
NULL handling
If an input value is NULL, VARIANT ignores the value.
Examples
[1] This example shows how
|
[2] If
|
[3] Here is an example in which, instead of the ACTIVITY column, another column is used as input for
|
[4] In this example, activity 'B' is ignored in
|
[5] Here all occurrences of the activities 'B' and 'C' are remapped to 'BC' using the REMAP_VALUES operator.
|