Siebel Application Integration for Oracle Fusion Middleware Guide > Working with Siebel RESTful Services >
Example of Using Code to Access Data from the Siebel File System
This topic provides one example of how you can use code to access data from the Siebel File System. You might use code to access data differently, depending on your business model. If your deployment must include attachment data for any business component, then you must define an integration object that allows you to retrieve the attachment data from the Siebel File System. You use Siebel Tools to create an integration object that includes the required configuration. In this example, you access attachments for the Account business component. To access data from the Siebel File System
- Log in to Siebel Tools.
- From the View menu, choose the Options menu item, and then click the Object Explorer tab.
- In the Object Explorer Hierarchy window, make sure the Integration Object tree check box is selected, and then click OK.
- In the Object Explorer, click Integration Object, and then create a new record in the Integration Objects list using the values from the following table.
|
|
Name |
Account Attach IO |
Base Object Type |
Siebel Business Object |
Business Object |
Account |
Project |
Any project that is locked |
- In the Object Explorer, expand the Integration Object tree, and then click Integration Component.
- In the Integration Components list, create a new record using the values from the following table.
|
|
External Name Context |
Account |
Name |
Account |
Parent Integration Component |
Leave this blank |
External Name |
Account |
External Sequence |
1 |
Cardinality |
Zero or More |
- In the Object Explorer, expand the Integration Components tree, and then click Integration Component Field.
- In the Integration Component Fields list, add four new records using the values from the following table.
|
|
|
Integration Id |
DTYPE_TEXT |
30 |
Location |
DTYPE_TEXT |
50 |
Name |
DTYPE_TEXT |
100 |
Primary Organization |
DTYPE_TEXT |
100 |
NOTE: You can add any other fields from the Account business component. For brevity, only a small subset are included in this example.
- To create a new Account Attachment integration object, repeat Step 6. Use the values from the following table.
|
|
External Name Context |
Account Attachment |
Name |
Account Attachment |
Parent Integration Component |
Account |
External Name |
Account Attachment |
External Sequence |
2 |
Cardinality |
Zero or More |
- Repeat Step 8 and Step 9, but this time add the integration component fields to the Account Attachment integration component.
Include all the fields that you require that are defined in the Account Attachment business component. For the Data Type and Length properties, use the same values that are defined for each business component field.
NOTE: Add only the integration component fields that your require. Make sure that the Account Attachment integration component is last in sequence. For more information on creating attachment integration objects, see Integration Platform Technologies: Siebel Enterprise Application Integration.
- Activate the new integration objects.
For more information about activating integration objects, see Integration Platform Technologies: Siebel Enterprise Application Integration.
You can now access data that resides in the Siebel File System for the Account Attachment business component. Related Topics
Example of Using Code to Insert Data into the Siebel File System
|