...
Hint engine rules works similarly to Pre-Processing Functions ✔️, it allows you to fine-tune PackOS automatic data analysis for your needs. By defining a set of functions, you can teach PackOS how to spot interesting patterns in observed data and send you and your crew notifications about them.
To enter the editor, select “Hint rules” in the “Advanced” section:
...
And select “+” to create a new function, or select one of the functions from the list to open the editor:
...
Each function defines:
Name
Trigger - when the function will be executed, you can select an explicit time period like ‘end of hour’ or ‘end of day’. Or run the function when an order or shift ends. The list of currently available triggers (can be extended in the future):
Every 10 minutes
End of hour
After order
After shift
At midnight - (defined by factory timezone)
At end of day - (hour defined by factory setup and timezone)
At the end of week - (end of day, before the configured ‘start of week’)
At the end of month - (end of day, last day of month)
Script - the body of your hint function, allowed statements and examples are described below
Test execution box - allows you to execute the script and inspect the result without generating actual hints.
Store parameters - when selected, all parameters generated by the script will be persisted in the database
Add parameter - let’s you inject/overwrite custom parameters, just for this run
...