Extend HandleBorrowerSkippedLoanTransit for 3-legged transactions
Description
To properly support 3-legged transactions, the HandleBorrowerSkippedLoanTransit transition needs to be updated with a conditional check in the isApplicableFor method.
New Condition to Add:
The transition should be triggered when all of the following conditions are met:
The active workflow is RET-PUA.
The possible source status is either PICKUP_TRANSIT or READY_FOR_PICKUP.
The pickup item status is one of the following:
ITEM_TRANSIT
ITEM_MISSING
ITEM_AVAILABLE
The pickup request status is HOLD_MISSING.
When these conditions are met, the HandleBorrowerSkippedLoanTransit transition should be triggered to update the patron request status to RETURN_TRANSIT.
To properly support 3-legged transactions, the
HandleBorrowerSkippedLoanTransit
transition needs to be updated with a conditional check in theisApplicableFor
method.New Condition to Add:
The transition should be triggered when all of the following conditions are met:
The active workflow is
RET-PUA
.The possible source status is either
PICKUP_TRANSIT
orREADY_FOR_PICKUP
.The pickup item status is one of the following:
ITEM_TRANSIT
ITEM_MISSING
ITEM_AVAILABLE
The pickup request status is
HOLD_MISSING
.When these conditions are met, the
HandleBorrowerSkippedLoanTransit
transition should be triggered to update the patron request status toRETURN_TRANSIT
.