Route input and output data
This page provides examples of what your input and output data look like in the Route function in your stream. These views help you troubleshoot and confirm that the function works as intended.
On this page, we use the example stream https://infozone.atlassian.net/wiki/spaces/DAZ/pages/7847658. You can execute this stream in UsageCloud for further learning. See https://infozone.atlassian.net/wiki/x/rMB3 for more details.
Unknown Attachment
Input data
In the Printing As A Service stream, there are two Route functions. One of them checks the daily ink level per customer, and the other checks the daily health status of the printers. The functions will trigger an ink order or maintenance request based on the configured fields.
In the example below, the function checks the inkLevel field. If the value is less than 21, the record is forwarded to the next function in the stream. If not, it’s discarded.
Unknown Attachment
Output data
The output data window displays a subset of the data sent to the function, reflecting any changes made through the function's configuration. In this example, two records have an inkLevel value below 21 and are being sent downstream. The remainder of the records have been discarded.
Unknown Attachment