Databases Reference
In-Depth Information
Against this, we need to apply one or more bids. This is contained within the fact
bids , which contains one or more bid elements of type tBid .
As part of the auction process, as each bid is submitted to the BPEL
process, it will assign a unique id to the bid (within the context of
the auction), set the bidtime to the current time, and set the status
of the bid to NEW , before submitting it to the auction ruleset.
So for example, if we submitted the following set of bids against the last item:
<bids>
<bid>
<bidId>1</bidId>
<bidderId>jcooper</bidderId>
<bidtime>2010-04-06T12:27:14</bidtime>
<maxAmount>12.00</maxAmount>
<bidAmount>0.00</bidAmount>
<status>NEW</status>
</bid>
<bid>
<bidId>2</bidId>
<bidderId>istone</bidderId>
<bidtime>2010-04-07T10:15:33</bidtime>
<maxAmount>10.00</maxAmount>
<bidAmount>0.00</bidAmount>
<status>NEW</status>
</bid>
</bids>
We would want the rule engine to return as an updated auctionItem fact that
looked like the following code snippet:
<auctionItem>
<auctionType>STD</auctionType>
<startTime>2010-04-01T15:45:48</startTime>
<endTime>2010-04-08T15:45:48</endTime>
<startingPrice>1.00</startingPrice>
<reservePrice>5.00</reservePrice>
<winningPrice>10.50</winningPrice>
<winningbid>
<bidId>1</bidId>
<bidderId>jcooper</bidderId>
<bidtime>2010-04-06T12:27:14</bidtime>
<maxAmount>12.00</maxAmount>
 
Search WWH ::




Custom Search