Skip to main content

Get help for ARIS Process Mining functions and services

Rework activity operators
Example 150.

The examples mentioned below are based on the following process and activities:

1. Goods shipped

2. Send invoice

3. Invoice rejected

4. Send corrected invoice

5. Invoice rejected

6. Send corrected invoice

7. Invoice approved



Repetition index

Counts how often a specified field value or expression result occurs in the case, including the current activity. Increments with each ooccurence of the same value or expression result.

Syntax

REPETITION_INDEX(field?: Field | Calculation)

Returns a value of the Number type (integer).

Examples

Example 151.

REPETITION_INDEX()

If no activity name is provided in the expression, the expression corresponds to REPETITION_INDEX("_ARIS.Activity"."Activity Name").

REPETITION_INDEX(REMAP("_ARIS.Activity"."Activity Name", ['Send invoice', 'Send corrected invoice']))

Send invoice -> 1 (Example I), 1 (Example II)

Send corrected invoice -> 1 (Example I), 2 (Example II)

Send corrected invoice -> 2 (Example I), 3 (Example II)

Goods shipped -> 1 (Example I), 1 (Example II)



Repetiton distance

Returns the distance to the next activity instance with the same field value or expression result (defaults to returning the distance to the next activity with the same name).

Syntax

REPETITION_DISTANCE(expression?: Calculation | Field)

Returns a value of the Number type (integer).

Examples

REPETITION_DISTANCE()

If no activity name is provided in the expression, the expression corresponds to REPETITION_DISTANCE("_ARIS.Activity"."Activity Name").

Example 152.

REPETITION_DISTANCE(REMAP("_ARIS.Activity"."Activity Name", ['Send invoice', 'Send corrected invoice']))

Send invoice -> null (Example I), 1 (Example II)

Send corrected invoice -> 1 (Example I), 1 (Example II)

Send corrected invoice -> 2 (Example I), 2 (Example II)

Goods shipped -> null (Example I), null (Example II)

Send corrected invoice -> null (Example I), null (Example II)



Immediate loop

Counts how often a specified field value or expression result has occurred in the case in a sequence so far, including the current activity. If no expression is provided, the activity name is used.

Syntax

IMMEDIATE_LOOP(expression?: Calculation | Field)

Returns a value of the Boolean or Number type.

Examples

Example 153.

IMMEDIATE_LOOP()

If no activity name is provided in the expression, the expression corresponds to IMMEDIATE_LOOP("_ARIS.Activity"."Activity Name").

IMMEDIATE_LOOP(REMAP("_ARIS.Activity"."Activity Name", ['Send invoice', 'Send corrected invoice']))

Send invoice -> 1 (Example I), 1 (Example II)

Send corrected invoice -> 1 (Example I), 2 (Example II)

Send corrected invoice -> 2 (Example I), 3 (Example II)

Goods shipped -> 1 (Example I), 1 (Example II)

Send corrected invoice -> (1 Example I), 1 (Example II)



Find next occurence

Returns the result of the expression for the next activity in the case that matches the optional comparison. If no comparison is provided, the next activity with the same name is matched.

An expression is required for the 'NEXT_OCCURRENCE' operator. Specify it either as the first argument or as an argument with the name 'expression:'.

Syntax

NEXT_OCCURRENCE(expression: Calculation | Field, comparison?: Calculation | Field, fallback?: Calculation)

Returns one of the fields.

Examples

Example 154.

NEXT_OCCURENCE("_ARIS.Activity"."Activity Index")

If no activity name is provided in the expression, the expression corresponds to NEXT_OCCURENCE("_ARIS.Activity"."Activity Index", "_ARIS.Activity"."Activity Name").

IMMEDIATE_LOOP("_ARIS.Activity"."Activity Index", REMAP("_ARIS.Activity"."Activity Name", ['Send invoice', 'Send corrected invoice']))

Send invoice -> null (Example I), 2 (Example II)

Send corrected invoice -> 3 (Example I), 3 (Example II)

Send corrected invoice -> 5 (Example I), 5 (Example II)

Goods shipped -> null (Example I), null (Example II)

Send corrected invoice -> null (Example I), null (Example II)