Execute Method
The Execute method can be specified on the EAI Siebel Adapter to perform combinations of various operations on components in an integration object instance. This method uses the following operations:
query
querypage (same as query when used as children operation)
sync (the same method as Synchronize and is the default operation)
upsert
update
updatesync
insert
insertsync
delete
skipnode
skiptree
none
These operations perform the same tasks as the related methods. For example, the delete operation makes the EAI Siebel Adapter delete the business component record matched to the particular integration component instance. However, what will be done to the children depends on the combination of the parent operation and the child operation. For information, see About Execute Method Operations.
An XML document sent to a Siebel application can include operations that describe whether a particular data element must be inserted, updated, deleted, synchronized, and so on. These operations can be specified as an attribute at the component level. They cannot be specified for any other element.
The following XML example demonstrates using the upsert and delete operation to delete a particular child record without updating the parent:
<SiebelMessage MessageId="" MessageType="Integration Object" IntObjectName="Sample
Account">
<ListofSampleAccount>
<Account operation="upsert">
<Name>A. K. Parker Distribution</Name>
<Location>HQ-Distribution</Location>
<Organization>North American Organization</ Organization>
<Division/>
<CurrencyCode>USD</CurrencyCode>
<Description>This is the key account in the AK Parker Family</
Description>
<HomePage>www.parker.com</HomePage>
<LineofBusiness>Manufacturing</LineofBusiness>
<ListOfContact>
<Contact operation="delete">
<FirstName>Stan</FirstName>
<JobTitle>Senior Mgr of MIS</JobTitle>
<LastName>Graner</LastName>
<MiddleName>A</MiddleName>
<PersonalContact>N</PersonalContact>
<Account>A. K. Parker Distribution</Account>
<AccountLocation>HQ-Distribution</AccountLocation>
</Contact>
</ListOfContact>
</Account>
</ListofSampleAccount>
</SiebelMessage>