You are here: Business Rules > System Rules > AutomaticPolicyNumber

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.

 

 

<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.
 
'0xxxxx'
- Used to indicate the number of places that the sequence number should be generated to.


114BXML 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