ScheduleFulfilmentExpiryNow
Changed on:
29 Nov 2023
Overview
The rule sets an expiry time for the incoming fulfilment based on the location’s
`Pick&PackTimeLimit`
Plugin Name | Order Reference Module |
---|---|
Namespace | [[account.id]].order |
The Order Reference Module is the foundation for order-related implementations. It provides reference workflows for click & collect, home delivery and mixed baskets and those needed to build your own. Extensible by design, use this Module as a base to build a solution to your customers' needs.
UI Description
Sets an expiry time for the incoming fulfilment depending on the "PICK_N_PACK_TIME_LIMIT" set at the location and schedules a "FulfilmentExpiry" event. </br> The status of the fulfilment is not considered while setting the expiry.
Accepts
- FULFILMENT
Actions
- This rule sets a fulfilment expiry against the fulfilment and creates a scheduled FulfilmentExpiry event.
Rule parameters
This rule does not identify any input parameters.
Event attributes
This rule does not directly identify any event attributes.
Exceptions
This rule will throw an RubixException: 400 in case of an error.
Configuration example
1{
2 "name":"<ACCOUNTID>.order.ScheduleFulfilmentExpiryNow",
3 "props": {}
4}
Language: json
Detailed Technical Description
- Get from the incoming event (
`fulfilmentId`
).`entityId`
- Get fulfilment by Id via GQL query.
- If there is address data:
- Get from
`locationRef`
of fulfilment.`PrimaryAddress`
- Get for the location.
`locationId`
- Get for the location.
`timeZone`
- Get for this location.
`pickPackLimitValue`
- If the location has a set:
`Pick&Pack Time Limit`
- Get
i. Compute the
`expiryTime`
ii. Update the fulfilment with
`expiryTime`
iii. Send the event
`FulfilmentExpiry`
Version History
v1.0.0
refers to plugin