function captureOutput


captureOutput

captureOutput (triggerExpression, processingFunction)

captureOutput creates a temporary rule to capture the next occurrence of a message. When a message matching the trigger expression is received, the processing function is called and the temporary rule is removed and discarded. This function is intended to be used with the sendPopupTable-function function to allow an operator to submit a command and see the results in a tabular format. See the sample rules showJobs below and the processing function formatJobOutput it calls which is shown in sendPopupTable-function

Parameters:

triggerExpression

An RDL2 boolean expression used for the triggering expression.

processingFunction

An RDL2 function name for processing the message.

Returns:

true if the rule was generated successfully, false otherwise.

Example

function showJobs()

//Set up the triggering expression to capture the IEE114I message,
//which is the response to the "D J,LIST" console command
captureOutput("message.MSGID== \"IEE114I\"", "formatJobOutput")
//Send a D J,LIST command to the console.
sendCommand("D J,LIST")
return true

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*