isRepeatingSituation
A Workflow Engine function that examines the last 100 Similar Situations which are at least “similarity” % similar to the trigger Situation, starting with the most recent Similar Situation and working backwards. If there are more than repeatCount
Similar Situations in the last timePeriod
days the action will return true. If the repeatCount
threshold is not exceeded, then the action will return false.
Typically this action would modify a Situation attribute, allowing identification of repeating problems. To identify an identical repeating problem, use a higher similarity threshold.
Note
The
timePeriod
is measured in number of days, and will include both live and historic Similar Situations.The comparison is limited to the last 100 similar situations.
To use this action you will need to configure the “Similar Situation” configuration in the Additional Configuration Workflow integration tile.
This function is available as a feature of the Add-ons v2.6 download and later.
This function is available for Situation workflows only.
Back to Workflow Engine Functions Reference.
Arguments
Workflow Engine function isRepeatingSituation
takes the following arguments:
Name | Required | Type | Description |
---|---|---|---|
| yes | number | The number of times a similar Situation has to be seen to be considered “repeating”. |
| yes | number (50-100) | The similarity % threshold for a Similar Situation to be considered. |
| yes | number | The number of days to consider the repeating count over. |
Example
The following example demonstrates typical use of Workflow Engine function isRepeatingSituation
.
To mark a Situation as repeating using a minimum similarity of 90% with a frequency of 10 times per day:
repeatCoun
t: 10similarity
: 90timePeriod
: 1
{"repeatCount":10,"similarity":90,"timePeriod":1}