Siebel Public Sector Guide > Administering Siebel Public Sector > Adding New Serialization Rules >

Example 2 of Configuring Serialization


Your organization might want to serialize incident attachments by adding a Serial Number button to the Attachments view in the Incident List view of the Incidents screen. For more information about adding such a button to the user interface, see Adding Serial Number Buttons to the User Interface.

Before users can successfully use this button however, administrators must perform some configuration. Perform the instructions in the following procedures to allow serialization of incident attachments.

To allow serialization of incident attachments by an Incident Attachment Rule, perform the following tasks:

  1. Configuring Incident Attachment Serialization in Siebel Tools
  2. Adding an Incident Attachment Serialization Rule

Configuring Incident Attachment Serialization in Siebel Tools

Perform the following procedure to allow serialization on the PUB Incident Attachment business component.

NOTE:  If you add new columns to a table (or make other such schema changes to the Siebel database), then make sure that such changes are reflected in the Siebel database. For more information, see Using Siebel Tools.

You must configure the incident attachment table and business component.

To configure the incident attachment table and business component

  1. Log in to Siebel Tools as an administrator.
  2. Navigate to Object Explorer, then Table, and query for the S_INCIDENT_ATT table.
  3. Create a new column record called SERIAL_NUM.

    To get the correct values for this new column, refer to the values in the SERIAL_NUM column of the S_CASE table.

  4. Navigate to Object Explorer, then Business Component, and query for the PUB Incident Attachment business component.
  5. Navigate to Business Component, then Field, and create two new field records called Serial Number and Incident Attachment Number.

    To get the correct values for these two fields, refer to the values in the Serial Number field and the Case Num field of the HLS Case business component. In the Calculated Value column of the Incident Attachment Number field, enter RowIdToRowIdNum([Id]).

  6. Select the Force Active check box for the Incident Id field.
  7. Navigate to Business Component, the Business Component User Prop, and create six new user property records with the following values and expressions.
    Name
    Value

    Named Method 1

    "GenerateSerialNumber", "INVOKE", "PUB Incident Attachment", "WriteRecord"

    Named Method 2

    "GenerateSerialNumber", "INVOKESVC", "PUB Incident Attachment", "PUB Case Serialization Service", "SetSerialNumber", "Operation", "Generate", "BO Name", "PUB HLS Incident", "BC Name", "PUB Incident Attachment", "Id", "[Id]", "Parent BC Name", "PUB HLS Incident", "Parent Id", "ParentFieldValue('Id')"

    Named Method 3

    "GenerateSerialNumber", "INVOKE", "PUB Incident Attachment", "RefreshRecord"

    Named Method 4

    "ReGenerateSerialNumber", "INVOKE", "PUB Incident Attachment", "WriteRecord"

    Named Method 5

    "ReGenerateSerialNumber", "INVOKESVC", "PUB Incident Attachment", "PUB Case Serialization Service", "SetSerialNumber", "Operation", "ReGenerate", "BO Name", "PUB HLS Incident", "BC Name", "PUB Incident Attachment", "Id", "[Id]", "Parent BC Name", "PUB HLS Incident", "Parent Id", "ParentFieldValue('Id')"

    Named Method 6

    "ReGenerateSerialNumber", "INVOKE", "PUB Incident Attachment", "RefreshRecord"

  8. Compile the edited projects and replace the Siebel Repository File.

Adding an Incident Attachment Serialization Rule

Perform the following procedure to add a new serialization rule to determine the format for the incident attachment serial numbers. For more information, see Creating Serialization Rule Records.

To add a rule for incident attachment serialization

  1. Navigate to the Administration - Case screen, then the Serialization Rules view.
  2. In the Serialization Rules list, create a new record with the following values.
    Field
    Value

    Name

    Incident Attachment Rule

    Business Object

    PUB HLS Incident

    Business Component

    PUB Incident Attachment

  3. Scroll down to the Attributes list, and create new records with the following values.
    Record
    Field
    Value

    Record 1

    Sequence

    1

    Type

    Parent Serial Number

    Record 2

    Sequence

    2

    Type

    Constant

    Constant Value

    -

    Record 3

    Sequence

    3

    Type

    Field

    Field Name

    Incident Attachment Number

Siebel Public Sector Guide Copyright © 2015, Oracle and/or its affiliates. All rights reserved. Legal Notices.