Beta Industrial App Store Wiki

Programmable mapping rule examples

For example, to convert an EventType “Alarm_RTN” to RTN you could use the following code:

var type = Convert.ToString([[EventTypeName]]);
if(type.Equals("Alarm_RTN"))
{
      return "RTN";
}
else {
      return type;
};

To assign a priority order, you could use something like this:

var priority = "P" + [[Priority]]; return priority;