Queue Review scripts
Order Queue Review Policy
An Order Queue Review policy allows you to evaluate downstream orders that have been sent to the site for processing. When a site has an Order Queue Review Policy script, orders are queued up until processed by the script. You apply an Order Queue Review policy in the Order Review Policy field in the Sites table.
Arguments: (<Site Object> object)
Returns the current site under review. Queued orders can be found in <Site Object>.pendingorders.
You must use Global Functions to move an order out of the queue. If you do not use this global function to process an order, it will remain in the queue.
Queue Selection Rule
The Queue Selection Rule allows you to dictate which queued production lots should be processed next by a work process or work center. Lots are queued in <WorkProcess Object>.queuedlots or <WorkCenter Object>.queuedlots. You can apply a Queue Selection Rule for a work center in the Queue Selection Rule field in the Work Centers table. To apply a queue selection rule to a work process, you manually add the script in the model’s .MCD file. Contact Coupa Support for assistance. To select and move a lot for processing, call the global method Global Functions.
Arguments: (<WorkProcess Object> object OR <WorkCenter Object> object)
Returns the work process or work center under review
You must use Global Functions to move a lot out of the queue. If you do not use this this global function to process a lot, it will remain in the queue.
Last modified: Wednesday May 15, 2024