I have a route that sends to an email channel the messages received from Smarts notifications.
Smarts sends me notification for each state change, i.e NOTIFY and ARCHIVE. I'd like to filter out the message that contain:
ICEventType: NOTIFY
Should I use the "Contains Word(s)" or "Free From Expression" criteria ? What is the syntax ?
Thanks,
Paul

filtering Smarts notifications
You can use the Free Form Expression. The expressions are same as they are in RapidConnector and RapidInsight. In your example, you'd use:
ICEventType == "NOTIFY" as your filter.
Note that you also should put the name of the user that posts notifications from Smarts to the From: field to filter only the messages from Smarts.
OccurrenceCount is a
OccurrenceCount is a multiple of 10 ?
To avoid being flooded with emails when a flapping situation occurs, I'd like to send an email when the OccurrenceCount of a notification is either 1 or a multiple of 10.
What is the channel filter syntax ? Something like:
ICEventType == "NOTIFY" && ((OccurrenceCount == 1) || (OccurrenceCount _is_a_multiple_of_ 10))
Thanks for your help,
Paul
routing expressions is not
{
if(dob.OccurrenceCount.toInteger() % 10 != 1)
{
willProcess = false;
}
}
catch(Exception occurrenceCountIsNullOrNonInteger){}
if(willProcess)
{
if(dob.ICEventType == "NOTIFY" || dob.ICEventType == "CLEAR")
{
dob.FirstNotifiedAt = convertToHumanReadableFormat(dob.FirstNotifiedAt);
dob.LastNotifiedAt = convertToHumanReadableFormat(dob.LastNotifiedAt);
dob.LastClearedAt = convertToHumanReadableFormat(dob.LastClearedAt);
dob.LastChangedAt = convertToHumanReadableFormat(dob.LastChangedAt);
dob.addAttributeValue("Action[0].ActionType", "SendMessage");
dob.addAttributeValue("Action[0].Text", dob.ClassDisplayName + "::" + dob.InstanceDisplayName + " is " + dob.EventDisplayName);
dob.each(){key,value ->
if(value instanceof String)
{
dob.addAttributeValue("Action[0]." + key, value);
}
}
}
}