AutomaticPolicyNumber
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.
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.
Note: Only Dynamic fields can be used with this element.
|
||
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 where x represents '0'. For example if FORMAT is `000000' and generated sequence number is 1111, then after formatting it will become `001111' |
||
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>