This action is used to finalize or redeem a pre-booked slot in a workflow. It ensures that the selected group, time range, and number of seats are confirmed and deducted from available inventory.
{
"actionType": "REDEEM_SLOT",
"args": {
"groupIdField": "slotbooking.group.id",
"timeRangeIdField": "slotbooking.timeRange.id",
"seatsField": "slotbooking.seats"
}
}
- Breaking Action: ✅ Recommended to be breaking since the workflow should not continue if slot redemption fails.
- Non-Breaking Action: ❌ Not usually recommended as failing to redeem a slot may leave the workflow in an inconsistent state.
-
Trigger
- This action is triggered when the application reaches the step where a booked slot needs to be confirmed or redeemed.
-
Execution
groupIdField: The field in the form that holds the Group ID selected by the user.
timeRangeIdField: The field in the form that holds the Time Range ID selected by the user.
seatsField: The field that holds the number of seats to redeem for the booking.
-
Example Usage
- User selects a group, a time slot, and number of seats in a slot booking form.
- During workflow execution, this action confirms and locks the slot in the system.
-
Dependencies
- The selected group and time range must exist and have available seats.
- Ensure field paths match the actual form structure (
slotbooking.group.id, etc.).
- Always set this action as breaking to prevent workflow continuation if redemption fails.
- Can be combined with notification actions to alert users when their slot is successfully redeemed.
- Useful in services that involve appointments, training slots, or seat reservations.