Rational Programming Patterns

Calling external resources in a Business Component

In a Business Component, you can specify services associated with a Logical View. To implement a service, you must declare the Logical View containing the service request issued by the client component. Then, you must perform the access to the external resources to check data consistency and the data items that must be sent to the client component. The access must be specified in the -CS Lines tab of the Business Component.

Before you begin

A Business Component must be created in the Server or Server Dialog editor with a Business Component Dialog type.

About this task

A service requires access to several external resources. The external resources are Segments representing a table, a record, a file, and so on. These Segments must be associated with the Logical View that indicates which data must be checked. To implement the access to external resources, you must declare a Logical View and the Segments required for the execution of the service. Moreover, you must indicate the logical and physical characteristics of each Segment.

Procedure

  1. Open the -CS Lines tab of a Server or Server Dialog.
  2. Click the button that corresponds to the external resource that you want to call in the Business Component: Add Segment, Add Data Element, Add Server View call or Add Logical View call. A new empty line is added to the -CS lines in the table each time you add a call.
    Note: The possible actions with the buttons are also available in the contextual menu of the table.
  3. Enter the code of the Segment (or other resource) and its characteristics in the -CS lines - Segment call section, -CS lines - Data Element call section, -CS lines - Server call section and -CS lines - Logical View call section.

Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)