Using business object samples

Business object samples are provided with the connector component of the adapter. All objects must have Siebel triggers on them for polling. In some cases, you may need to customize the object in Siebel Tools. The following objects are examples of how to do these tasks:

Siebel_BCAccount

  1. Locate the following Siebel VB files:

    Siebel 6

    Account_Write.svb, Account_PreDelete.svb, Business_Address_PreDelete.sbv, and
     Business_Address_Write.svb.
     
    

    Siebel 7

    Account.sbl or Account.js
     
    

    The Siebel VB files are located in the Common/Siebel/Dependencies/Siebel_VB directory.

  2. Save the files in a temporary directory. For example, use Temp as the directory name.
  3. Give the CWCONN account the System Administrator responsibility within Siebel.
  4. In your Siebel Tools environment, check out and lock the Account and Contact projects.
  5. Add the VB script to the Account business component as follows:
    1. Right-click on the Account business component, and select Edit Basic Scripts from the menu. This launches the script editor.
    2. Import the VB code by selecting Import from the File menu, choosing the Temp directory, and picking Account_Write.svb for import into the Bus Comp object and BusComp_WriteRecord procedure.
    3. Import the second VB code by selecting Import from the File menu, choosing the Temp directory, and picking Account_PreDelete.svb for import into the Bus Comp object and BusComp_PreDeleteRecord procedure.
    4. Save changes to the object.
  6. Add the script to the Business Address business component as follows:
    1. Right-click on the Business Address business component, and select Edit Basic Scripts from the menu. This launches the script editor.
    2. Import the VB code by selecting import from the File menu, choosing the Temp directory, and picking Business_Address_Write.svb, for import into the Bus Comp object and BusComp_WriteRecord procedure.
    3. Import the second VB code by selecting import from the File menu, choosing the Temp directory, and picking Business_Address_PreDelete.svb for import into the Bus Comp object and BusComp_PreDeleteRecord procedure.
    4. Save changes to the object.
    5. In the Business Address business component for the Account Id attribute, set the Force Active field to TRUE.
      Note:
      Sometime this field does not get populated because of the view being used.
  7. You will not be able to test the object until you have saved all objects and compiled the result.

Siebel_BCQuote

  1. Locate the following Siebel VB files:

    Siebel 6

    Quote_Write.svb, Contact_PreDelete.svb
     
    

    Siebel 7

    Quote.sbl, Quote.js
     
    

    The Siebel VB files are located in the Common/Siebel/Dependencies/Siebel_VB directory.

  2. Save the file in a temporary directory. For example, use Temp as the directory name.
  3. Give the CWCONN account the System Administrator responsibility within Siebel.
  4. In your Siebel Tools environment, check out and lock the Quote project.
  5. Add the script to the Quote business component as follows:
    1. Right-click on the Quote business component, and select Edit Basic Scripts from the menu. This launches the script editor.
    2. Import the VB code by selecting Import from the File menu, choosing the Temp directory, and picking Quote_Write.svb for import into the Bus Comp object and the BusComp_WriteRecord procedure.
    3. Save changes to the object.
  6. You will not be able to test the object until you have saved all objects and compiled the result.

Siebel_BCContact

  1. Locate the following Siebel VB files:

    Siebel 6

    Contact_Write.svb, Contact_PreDelete.svb. 
     
    

    Siebel 7

    Contact.sbl, Contact.js
     
    

    The Siebel VB files are located in the Common/Siebel/Dependencies/Siebel_VB directory.

  2. Save the Siebel VB file in a temporary directory. For example, use Temp as the directory name.
  3. Give the CWCONN account the System Administrator responsibility within Siebel.
  4. In your Siebel Tools environment, check out and lock the Contact project.
  5. Add the Siebel VB script to the Contact business component as follows:
    1. Right-click on the Contact business component, and select Edit BasicScripts from the menu. This launches the script editor.
    2. Import the VB code by selecting Import from the File menu, choosing the Temp directory, and picking Contact_Write.svb for import into the Bus Comp object and BusComp_WriteRecord procedure.
    3. Import the second VB code by selecting Import from the File menu, choosing the Temp directory, and picking Contact_PreDelete.svb for import into the Bus Comp object and BusComp_PreDeleteRecord procedure.
    4. Save changes to the object.
  6. You will not be able to test the object until you have saved all objects and compiled the result.

Siebel_BCInternalProduct

  1. Locate the file InternalProduct_Write.svb. The Siebel VB files are located in the Common/Siebel/Dependencies/Siebel_VB directory.
  2. Save the file in a temporary directory. For example, use Temp as the directory name.
  3. Give the CWCONN account the System Administrator responsibility within Siebel.
  4. In your Siebel Tools environment, check out and lock the Product project.
  5. Add the Siebel VB script to the Internal Product business component.
    1. Right-click on the Internal Product business component, and select Edit Basic Scripts from the menu. This launches the script editor.
    2. Import the VB code by selecting Import from the File menu, choosing the Temp directory, and picking InternalProduct_Write.svb for import into the Bus Comp object and BusComp_WriteRecord procedure.
    3. Save changes to the object.
  6. Change the business component properties as follows:
    1. In the tool bar, select View > Property Window.
    2. Go to Business Component/Internal Product.
    3. Change the following attributes to False:
      No Insert = False 
       No Merge = False 
       No Update = False 
       
      
      Note:
      The purpose of changing the above properties is to allow Com Data Server Interface to create and update products inbound to Siebel.
  7. You will not be able to test the object until you have saved all objects and compiled the result.

Siebel_BCAsset

  1. Locate the Siebel VB file Asset_Write.svb. The Siebel VB files are located in the Common/Siebel/Dependencies/Siebel_VB directory.
  2. Save the Siebel VB file in a temporary directory. For example, use Temp as the directory name.
  3. Give the CWCONN account the System Administrator responsibility within Siebel.
  4. In your Siebel Tools environment, check out and lock the Asset Management project.
  5. Add the Siebel VB script to the Asset Mgmt - Asset business component as follows:
    1. Right-click on the Asset Mgmt - Asset business component, and select the Edit Basic Scripts from the menu. This launches the script editor.
    2. Import the Write VB code by selecting Import from the File menu, choosing the Temp directory, and picking Asset_Write.svb into Bus Comp object and BusComp_WriteRecord procedure.
    3. Save changes to the object.
  6. Change the business component properties as follows:
    1. In the tool bar, select View > Property Windows.
    2. Go to Business Component/Asset Mgmt - Asset.
    3. Go to fields.
    4. Change the field property values as follows:
      • Select Account Id and set the value for Inactive to False. (This field is required in the WebSphere business integration system object.)
      • Select Name and set the value to Not Required.
      • Select Product Id and set the value to Required.
      Note:
      WebSphere business integration components track the Products by their Product Id and not their Name.
  7. You will not be able to test the object until you have saved all objects and compiled the result.

Copyright IBM Corp. 1997, 2003