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 specified field, value, or sequence.

 

 

Value| FieldName | SequenceName

Defines the field or value to be used in generating the policy number.

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- Indicates that a value from a field will be included in the PolicyNumber. The Part element specifies the field being used. The LEFT, RIGHT, and MID attributes may be used to select parts of the field.


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.

For TYPE="SYSTEMDATE":

YY - Indicates that the last two digits of the current year should be used.

MM - Indicates that the current month number should be used.

DD - Indicates that the current day number should be used .

For TYPE=SEQUENCE:

'0xxxxx'- Indicates the number of digits to be generated in the sequence number.

LEFT

LEFT=n Selects the leftmost n digits of the field value for the part.

RIGHT

RIGHT=n Selects the rightmost n digits of the field value for the part.

MID

Mid=m,n Selects the middle characters of the field value, from position m to position n. This is a comma-separated string of two numbers specifying the starting and ending index of the characters to be selected 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.

XML Schema

<AutomaticPolicyNumber>
<Part TYPE="[VALUE|SYSTEMDATE|FIELD|SEQUENCE]" 
FORMAT="[YY|0xxxxx]" 
LEFT="[Integer]" 
MID="[Integer,Integer]"
RIGHT="[Integer]" 
SEQUENCEDATE="[SYSTEMDATE|FieldName|VariableName]">[Value|FieldName|SequenceName]</Part>
</AutomaticPolicyNumber>