Databases Reference
In-Depth Information
Rule to process a losing bid
The rules to handle other potential outcomes for the next bid, namely, where it's
our first bid and thus by default a winning bid or a losing bid, are straightforward.
However, there is an exception. The rule for the scenario where the next bid is a
losing bid is shown in the following screenshot:
If we look at the first action that sets the bid amount of the winning bid equal to the
maximum amount of the losing bid plus the next bid increment, there is a possibility
that this could cause the bid amount to exceed the maximum amount specified.
For example, if the maximum bid was $10, with the current winning amount being
$5, then, it would be valid for the next bid to be $10. This bid would fail but the new
winning amount according to the above would be $10.50.
Capping the winning bid amount
To prevent this from happening, we need to write another rule to test if the winning
amount of the bid is greater than its maximum amount, and if it is, then set the
winning amount equal to the maximum amount. The rule for this is as shown in
the following screenshot:
 
Search WWH ::




Custom Search