ScheduleFulfilmentCreationForDeliverAfter
Changed on:
8 Aug 2025
Overview
The rule schedules an event based on the Shipment’s Delivery From date (fulfilment choice’s`deliverAfter` date).| Plugin Name | Order Reference Module |
|---|---|
| Namespace | [[account.id]].order |
UI Description
Schedules event "eventName" based on the fulfilment choice’s deliverAfter date. If the fc.order.sourcing.reservation.time setting has not been created or if the fulfilment choice’s deliverAfter minus reservation time is less than the current processing time, then send the event without scheduling.
Accepts
- FULFILMENT_CHOICE
Actions
- This rule schedules event with proper event name based on the fulfilment choice’s deliverAfter date.
Rule parameters
| Parameter | Description |
| eventName | The name of the event to be triggered. |
Event attributes
| Parameter | Description | Data Type | Required? |
| fulfilmentChoiceRef | The reference of the `fulfilmentChoice`. | String | Required |
Exceptions
Configuration example
1{
2 "name":"<ACCOUNTID>.order.ScheduleFulfilmentCreationForDeliverAfter",
3 "props": {
4 "eventName": "anEvent"
5 }
6}Detailed Technical Description
- Get
`reservationTimeValue`from this event. - If
`reservationTimeValue`does exist- Get a
`fulfilmentChoice`by its ref. - If the
`fulfilmentChoice`does exist, as well as its`deliverAfter`field’s value:
- Get a
`deliverAfter` of the `fulfilmentChoice`ii. Calculate
`wakeupTime: deliverAfter - reservationTimeValue`iii. If
`currentTime` is before `wakeupTime` - send the `scheduledEvent`3. Proceed with the event processing.