Databases Reference
In-Depth Information
Conversely, if the underlying database record is updated outside our process
(for example, by the AuctionItem process), then the next time we reference the
content of the entity variable, we will receive the updated variable.
Binding to the Listing entity
The Auction Process is another example of how we typically want to interact with an
SDO via an entity variable.
In this scenario, we want to retrieve details of the Listing against which the auction is
being held. As bids are placed, we record details of them against the listing as well as
update the listing itself with details of the winning bid.
As with the ListItem composite, we need to define an ADF-BC External Service
in the AuctionItem composite for the ListingSDO , and within the AuctionItem
process, define a corresponding entity variable.
Again, as with the ListItem , before we can perform any operations on the entity
variable, we must first bind it to an SDO. Previously, we did this using the Create
Entity activity, but as the SDO in question already exists, we need to use the Bind
Entity activity.
To do this, drag a Bind Entity activity from the Component Palette on to your BPEL
process. Double-click on it; this will open the Bind Entity activity window, as shown
in the following screenshot:
We specify the Name and Entity Variable as we did for the Create Entity activity.
The final value we need to specify is the unique key for the Entity object that we wish
to bind to.
 
Search WWH ::




Custom Search