You are here: Business Rules > System Rules > AutomaticPolicyNumber

Oracle® Insurance XML Configuration Guide Release 9.4.0.0 E18894_01

# AutomaticPolicyNumber

## Description

This business rule generates the PolicyNumber when a new policy is stored. In order for this functionality to be invoked the <AutomaticPolicyNumber> tag should be set to Yes or Optional in the PolicyScreen business rule.

AutomaticPolicyNumber Element/Attribute Table
Element/Tag | Definition | Attribute | Element/Attribute Value and Description
--- | --- | --- | ---
<AutomaticPolicyNumber> | The opening and closing tag for the rule. |  |
<Part> | Indicates the value of the field parts to define and format the PolicyNumber. | TYPE | VALUE - Defines a set value and what the value will be for the PolicyNumber. The tag must contain a value. SYSTEMDATE- Indicates that a portion of the current date will be used in the creation of the PolicyNumber. Used in conjunction with the FORMAT attribute. FIELD- Defines that a value from a field will be used in the PolicyNumber. The value of the Part tag is the field being referenced. SEQUENCE- Indicates the value is in AsSequence table. The value of the table is inserted according to the number of digits specified in the FORMAT attribute. The value of the Part tag is the SequenceName.
| FORMAT | Indicates the formatting to be performed on the type attributes. YY - Used to indicate that the last two digits of the current year should be used. MM - Used to indicate that the current month number should be used. DD - Used to indicate that the current day number should be used . '0xxxxx'- Used to indicate the number of places that the sequence number should be generated to.
| LEFT | LEFT=n Formats field value to left most n digit.
| RIGHT | RIGHT=n Formats field value to the right n digits.
| MID | Mid=m,n Formats field value to middle digits m,n. It's a comma separated string of two numbers specifying the starting and ending index of the characters to be picked up for the part.

## XML Example

    <AutomaticPolicyNumber>

    <Part TYPE="VALUE">AVA</Part>

    <Part TYPE="SYSTEMDATE" FORMAT="YY"></Part>

    <Part TYPE="FIELD">StatutoryCompany</Part>

    <Part TYPE="SEQUENCE" FORMAT="000000">PolicyNumber</Part>

    </AutomaticPolicyNumber>

Builds a policy number similar to this format AVA043000001.

## Schema Example

In the PolicyScreen Business Rule

    <PolicyScreen>

    <AutomaticPolicyNumber>Yes</AutomaticPolicyNumber>

    </PolicyScreen>

In the AutomaticPolicyNumber Business Rule

    <AutomaticPolicyNumber>

    <Part TYPE="VALUE">XYZ</Part>

    <Part TYPE="SYSTEMDATE" FORMAT="YY"></Part>

    <Part TYPE="FIELD" LEFT="1">Carrier</Part>

    <Part TYPE="SEQUENCE" FORMAT="000000">SubmissionNumber</Part>

    </AutomaticPolicyNumber>

Copyright © 2009, 2011, Oracle and/or its affiliates. All rights reserved. Legal Notices

Open table of contents