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.

The following figure shows the process flow for the Contracts Resolver business service. The steps in the workflow are as follows:
  1. 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.

Process Flow for Contracts Resolver Business Service. This image is described in surrounding text.