How to Send Custom Process Messages to various Users on Air Data Source Project via Script
The Air Data Source exposes special functions functionality to send custom process messages via script, either via graphic form script or script spider. This helps in scenarios where a process message must be send out besides on the default value change of an Adroit tag value.
NB: Some C# scripting knowledge is required to understand how to do this.
Two special function calls are called on the Air Data Source in the following graphic form examples:.
GetProjectUsers()
: to get all users associated to a project which we can fill a ListView with.
SendProcessDataMessageToUsers(List<string> userIDs, string message, string title, int priority)
::which sends out the process data message to all specific users. The parameters for this special function call are as follows:
-
List<string> userIDs
, is a string list of user id’s to send the process message too. -
String message
, is “title” by default. We leave this as “title” as we use the title to show the process message instead of the message parameter as per design. -
String title
, is the process message you wish to send. -
Int priority
, is the priority of the message which is default at 0
I have linked the following graphic forms below to show how to do this via:
Graphic Form scripting:
Air Data Source - Send Messages With GF Scripting (20.8 KB)
Script Spider scripting:
Air Data Source - Send Messages With Spider Scripting (33.0 KB)