Rational Programming Patterns for System z

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. To do so, select a Server or Server Dialog in the Design Explorer view and double-click. Otherwise, right-click and select Open. Then you can access the -CS Lines tab by clicking directly the -CS Lines tab. The other possibility is to click More in the -CS lines section on the Overview tab.
  2. Then click the button corresponding to the external resource 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 new call.
  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 so that they show up on the -CS line, in the columns of the table.

Terms of use | Feedback

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