Bookshelf Home | Contents | Index | PDF |
Integration Platform Technologies: Siebel Enterprise Application Integration > Creating and Maintaining Integration Objects > Creating Integration Object Instances ProgrammaticallyBecause integration objects adhere to a set of structural conventions, they can be traversed and transformed programmatically, using Siebel eScript objects, methods, and functions, or transformed declaratively using the Siebel Data Mapper. This topic outlines the steps required to create an integration object instance programmatically, using the EAI Account integration object as an example. To create the correct integration object instance programmatically, follow these rules:
The following hierarchy demonstrates the rules: Figure 18 shows some of the integration components in the hierarchy of the EAI Account integration object. Based on its hierarchy, the integration object instance will have the following property set hierarchy: ListOfAccount_Business Address The following Siebel eScript example creates an instance of the hierarchy shown in Figure 18: // Local variable creation, error handling, and object destruction are omitted for clarity. psConAltPhone.SetType("Contact_Alternate Phone"); psConAltPhone.SetProperty("Alternate Phone #", "555-5555"); psListOfConAltPhone.SetType("ListOfContact_Alternate Phone"); psListOfConAltPhone.AddChild(psConAltPhone); psContact.SetProperty("First Name", "John"); psContact.SetProperty("Last Name", "Smith"); psContact.AddChild(psListOfConAltPhone); psListOfContact.SetType("ListOfContact"); psListOfContact.AddChild(psContact); psAccBusAdd.SetType("Account_Business Address"); psAccBusAdd.SetProperty("Email Address", "john.smith@email.com"); psListOfAccBusAdd.SetType("ListOfAccount_Business Address"); psListOfAccBusAdd.AddChild(psAccBusAdd); psAccount.SetProperty("Name", "MyAccount"); // Add the children to the Account IC. psAccount.AddChild(psListOfAccBusAdd); psAccount.AddChild(psListOfContact); psListOfEAIAccount.SetType("ListOfEAI Account"); |
Integration Platform Technologies: Siebel Enterprise Application Integration | Copyright © 2016, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |