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.