Contracts Resolver Business Service
The Contracts Resolver business service is used in workflows to resolve issues associated with managing an allowance or pool when the amount to decrement is more than the remaining allowance or pool. This business service includes the Resolve Transaction Amount method.
Is Count Method = Increment?
- If Yes, Is Current Amount + Requested Transaction less than Amount?
If No, Return Valid Transaction = Amount – Current Amount. Remaining Transaction Amount = Current Amount + Requested Transaction Amount – Amount, Exhausted Flag = TRUE.
If Yes, Return Valid Transaction Amount = Current Amount Remaining Transaction Amount = 0, Exhausted Flag = FALSE.
If No, Is Current Amount – Requested Transaction Amount greater than 0?
If No, Retrun Valid Transaction Amount = Current Amount, Remaining Transaction Amount = Requested Transaction Amount – Current Amount, Exhausted Flag = TRUE.
If Yes, Return Valid Transaction Amount = Requested Transaction Amount, Remaining Transaction Amount = 0, Exhausted Flag = FALSE.
