BEA Logo BEA eLink Adapter for Siebel 1.1

  Corporate Info  |  News  |  Solutions  |  Products  |  Partners  |  Services  |  Events  |  Download  |  How To Buy

 

   eLink Adapter for Siebel Doc Home   |   BEA eLink Adapter for Siebel   |   Previous Topic   |   Next Topic   |   Contents   |   Index

Configuring eLink Adapter for Siebel

 

 


Defining the Server

Before running the eLink Adapter for Siebel, you must identify the ELINKSBLO server in the UBBCONFIG file. A sample UBBCONFIG file is provided on the installation CD-ROM. You can use this sample file as a base for creating your own UBBCONFIG file. Listing 3-1 shows the syntax for defining the ELINKSBLO server in the UBBCONFIG file.

Listing 3-1 Syntax for ELINKSBLO Server Definition in the UBBCONFIG File


*SERVERS
ELINKSBLO SRVGRP="identifier" SRVID="number'
CLOPT= " -- -C configuration_file_name "


For information about the SRVGRP, SRVID, and CLOPT parameter syntax and definitions, refer to the BEA Tuxedo Reference Manual.

CLOPT= " -- -C configuration_file_name"

specifies the eLink Adapter for Siebel configuration file.

 


Configuring the eLink Adapter for Siebel

The elsieb_env.cfg file controls the operation of the eLink Adapter for Siebel server (ELINKSBLO). Following are the sections of the configuration file and the parameters you can define for each section. A sample configuration file is provided in the Sample eLink Adapter for Siebel Configuration File section.

Note: elsieb_env.cfg is a generic filename. You can name this file anything you choose, but the filename must match the -C configuration_file_name parameter you specify in the eLink Platform UBBCONFIG file. (See Defining the Server for instructions on configuring the ELINKSBLO server in the UBBCONFIG file.)

The eLink Adapter configuration file is divided into the following sections:

Defining the SERVER Section

The syntax for the SERVER section of the eLink Adapter configuration file is as follows:

Listing 3-2 Syntax for SERVER section


*SERVER

NAME="identifier"

EXIT_CONNECT_LOSS="Y/N"

CORBAOM_HOST="host_name"

MAXMSGLVL="max_trace_level_range"

MINMSGLVL="min_trace_level_range"

LOGIN_NAME="userID"

PASSWORD="password"


Required Parameters

The following parameters must be defined in the SERVER section:

NAME

A unique identifier for this specific instance of the adapter. Alphanumeric.

CORBAOM_HOST

The host name where the Siebel Object Manager is installed and running. The eLink Adapter makes a connection to the Object Manager to instantiate the application object.

LOGIN_NAME

Login name to be used to for logging in to the Siebel server. Each Siebel user is assigned a unique login name. Each user is also assigned access to specific Siebel screens/views in applications.

PASSWORD

Password associated with the LOGIN_NAME.

Optional Parameters

The following parameters are optional in the SERVER section:

EXIT_CONNECT_LOSS

Specifies whether the eLink Adapter should exit when it detects that the connection to the Siebel server has been lost. `Y' indicates that the eLink Adapter will exit; `N' indicates that it will not exit.

MAXMSGLVL

Indicates the maximum trace level range to be used by the eLink Adapter for logging trace messages.

MINMSGLVL

Indicates the minimum trace level range to be used by the eLink Adapter for logging trace messages.

Defining the SERVICE Section

The syntax for the SERVICE section of the eLink Adapter configuration file is as follows:

Listing 3-3 Syntax for SERVICE section


*SERVICE

  NAME="service_name"

  BUSINESS_OBJECT="Siebel_business_object"

  BUSINESS_COMPONENT="Siebel_business_component_object"

  OPERATION="operation_performed"

  PARENT_BUS_COMP="Siebel_business_component_object"

  MVG_FIELD="multi-value_group_field_name"

  LINK_FIELD="key_field_name"

  FMID="field_map_identifier"


Required Parameters

The following parameters must be defined in the SERVER section:

NAME

The service name being advertised.

BUSINESS_OBJECT

The business object required to access the business component object on which the service will act.

BUSINESS_COMPONENT

The business component object on which the service will act.

OPERATION

The operation to be performed on the business component object. Valid values are NEW, UPDATE, DELETE, READ, and LINK.

PARENT_BUS_COMP

The parent business component object for the specified BUSINESS_COMPONENT. This is required if performing a LINK operation.

FMID

The field map section that lists the field names required for the operation.

Optional Parameters

The following parameters are optional in the SERVICE section:

MVG_FIELD

When a Business Component object is being linked to its parent object, this field retrieves the Business Component object in context of its parent. Multi-value fields are representative fields for Business Component objects in their parent objects.

LINK_FIELD

When a child object is created or linked to a parent object, the eLink Adapter updates this field value in the parent object.

Defining the FIELDMAP Section

The syntax for the FIELDMAP section of the eLink Adapter configuration file is as follows:

Listing 3-4 Syntax for FIELDMAP section


*FIELDMAP

   FMID="Field_map_identifier"

   <Application Field Name>:<FML32 Field Name>:
<Input/Output>:<Field Designator>


Required Parameters

The following parameters must be defined in the FIELDMAP section:

FMID

A unique identifier for the field map. This identifier is referenced by the service definition using the map. A field map may be referenced by more than one service, if applicable.

APPLICATION FIELD NAME

The exact name of the Siebel Business Component object field.

FML32 FIELD NAME

The name of the FML field associated with this application field name. This is the same field name that is used to build the FML buffer and is specified in the FML field table file.

INPUT/OUTPUT

Defines whether a field is expected as input, passed as output, or both. Valid values are I (input), O (output), and IO (both). This tag can be used to designate the field names that are returned by the service upon completion of an operation. For the "Link" operation, the output field tags can only be attached to the fields of parent Business Component objects.

FIELD DESIGNATOR

A designator for the defined field. This can be used to designate required fields, key fields, optional fields, etc. Valid values are:

R=Mandatory Field
Field names that are required as input to the service.

O=Optional Field
Field Names that may be used as input or output to the service

K=Primary Key Field
Retrieves a unique business component object for a read, update, delete, link, delink, or newlink function.

P=Primary Key Field for the Parent Object
Retrieves a parent business component object when a link operation is performed.

Following is an example of the FIELDMAP section. In this example, the application field name Middle Name maps to the FML32 field EL_SBL_MIDDLE_NAME. The field is optional (designated by "O"), and the field is an output field (designated by "O").

Listing 3-5 Example FIELDMAP section


*FIELDMAP

   FMID=Map1

   Middle Name:EL_SBL_MIDDLE_NAME:O:O

   M/M:EL_SBL_M_OR_M:I:R

   Employer ID:EL_SBL_EMPLOYER_ID:O:R

   Work Phone #:EL_SBL_WORK_PHONE_NUM:I:O


Sample eLink Adapter for Siebel Configuration File

This section contains a sample configuration file for the New Account Creation service.

Listing 3-6 Sample configuration file for New Account Creation service


*SERVER
NAME=sbloAdapter
MINMSGLEVEL=0
MAXMSGLEVEL=9
EXIT_CONNECTION_LOSS=Y
RESPONSE_BUFFER_SIZE=12000
CORBAOM_HOST=SJAIN
LOGIN_NAME=PARULG
PASSWORD=PARULG

# New Account with all Details Service

*SERVICE
NAME=NAccntAccntDWA
BUSINESS_OBJECT=Account
BUSINESS_COMPONENT=Account
OPERATION=New
FMID=NAccntAccntDWAMap

*FIELDMAP
FMID=NAccntAccntDWAMap

# MANFLD_LIST
Name:EL_SBL_NAME:I:R
Primary Contact Last Name:EL_SBL_PRI_CONTACT_LAST_NAME:I:R
Primary Contact First Name:EL_SBL_PRI_CONTACT_FIRST_NAME:I:R
# OPTFLD_LIST
SA House Num:EL_SBL_SA_HOUSE_NUM:I:O
SA Street Name:EL_SBL_SA_STREET_NAME:I:O
SA Building:EL_SBL_SA_BUILDING:I:O
SA City:EL_SBL_SA_CITY:I:O
SA State:EL_SBL_SA_STATE:I:O
SA Postal Code:EL_SBL_SA_POSTAL_CODE:I:O
SA Country:EL_SBL_SA_COUNTRY:I:O
Type:EL_SBL_TYPE:I:O
Account Status:EL_SBL_ACCOUNT_STATUS:I:O
Parent Account Name:EL_SBL_PARENT_ACCOUNT_NAME:I:O
Primary Contact Work Phone:EL_SBL_PRI_CONTACT_WORK_PHONE:I:O
Primary Contact Home Phone:EL_SBL_PRI_CONTACT_HOME_PHONE:I:O
Primary Contact Fax:EL_SBL_PRIMARY_CONTACT_FAX:I:O
Primary Contact Authorization Level:EL_SBL_PRI_CONTACT_AUTH_LVL:I:O
Primary Contact Comm Method:EL_SBL_PRI_CONTACT_COMM_METH:I:O
Primary Contact Password:EL_SBL_PRI_CONTACT_PASSWORD:I:O
Password:EL_SBL_PASSWORD:I:O
Customer Since:EL_SBL_CUSTOMER_SINCE:I:O
Language:EL_SBL_LANGUAGE:I:O
Preferred Communication Method:EL_SBL_PREF_COMM_METHOD:I:O

# OUTFLD_LIST
Id:EL_SBL_ID_ACCOUNT:O:R
Primary Contact Id:EL_SBL_PRIMARY_CONTACT_ID:O:R
Current Service Address Id:EL_SBL_CURRENT_SERVICE_ADD_ID:O:R


 


Understanding Service Invocation Requirements

Each unique business-level function that can be invoked by the eLink Adapter for Siebel is advertised as a eLink Platform service. To invoke a service, a calling application prepares an FML32 request buffer specifying the input values that are to be passed to Siebel. The calling application then invokes the corresponding eLink Platform service, passing the FML32 request buffer.

The eLink Adapter for Siebel has a generic EL_SIEBEL_OUT service that processes all of the service requests. When invoked, the service code determines the service name that was used to invoke it. The service code then calls a function that processes the request, depending on the operation requested. This function takes the service name and FML32 request buffer as input parameters and returns the FML32 response buffer and error information (if any) as output parameters. From the service operation, the function determines the Siebel interface functionality to invoke. The function then processes the FML32 request buffer, invokes the Siebel interface functionality, and then returns the response parameters in an FML32 buffer. If any errors occur, the function returns error information.

If the Siebel interface functionality was invoked successfully, a TPSUCCESS code is returned, with the tpurcode set to 0. If the invocation failed, the service code returns the error code and error message as parameters of tpreturn() call.

The eLink Adapter for Siebel uses only FML32 Field names, not Field IDs, when processing the request and response buffers. The Field names must be defined in the eLink Platform FML Field Table file. This allows the actual Field IDs to be customer-defined.

Understanding Siebel Adapter Services

The Siebel adapter service can manipulate any Siebel Business Component Object.

Services are created via the adapter configuration file for the New, Read, Update, Delete, Link, Delink, and NewLink operations on each Business Component Object. For Link, Delink, and NewLink operations, you will need to specify additional information such as parent/child Business Component Objects.

The Siebel interface function can open only one connection to the application server at a time. Every Siebel user is part of a certain Siebel group, and every group has certain permissions for the business objects views. The Siebel application can present the same business object to different users using different views. Groups can be assigned permissions to access these views. This can be handled using one of the following methods: