Databases Reference
In-Depth Information
<bidAmount>10.50</bidAmount>
<status>WINNING</status>
</winningbid>
<bidHistory>
<bid>
<bidId>2</bidId>
<bidderId>istone</bidderId>
<bidtime>2010-04-07T10:15:33</bidtime>
<maxAmount>10.00</maxAmount>
<bidAmount>10.00</bidAmount>
<status>OUTBID</status>
</bid>
</bidHistory>
</auctionItem>
Defining the business rule
Now that we have established our input and output facts, we are ready to create our
auction rules. Open the
composite.xml
file for the auction composite, and then from
the
Component Palette
, drag-and-drop a
Business Rule
onto the composite. This
will launch the
Create Business Rules
dialog.
For the
AuctionRules
decision service, we need to pass in two facts,
auctionItem
and
bids
, and return the single fact
auctionItem
, as shown in the following screenshot: