A temporary list of Accounts is created from the Source List. For each of those Accounts, we examine the inflow Supplies which
(1) link an Account on a different upstream Object, and
(2) have the indicated ReleaseType, and
(3) have the indicated Destination
In the case of SupplySlotsTo, for each of these Accounts being considered, the Supply slots of all related Supplies matching the criteria are added to the returned List. In the case of SupplySlotsTo1to1, there should be one matching Supply:
(1) If there are no Supplies matching the criteria, or more than one, then an error is generated.
(2) If there is exactly ONE Supply matching the criteria, then the Supply slot of that Supply is added to the returned List.
In this way, the list returned by SupplySlotsTo1to1 is guaranteed to contain exactly one slot for each Account in the Source List.
If the ReleaseType argument or the Destination argument is "NONE," then only Supplies having the default (unassigned) attribute of that type are considered.
If the ReleaseType argument or the Destination argument is "ALL," then that Supply attribute is ignored.
|