You are here: Segment Rules > Segment

Oracle® Insurance XML Configuration Guide Release 9.4.1.0 E23637_01

# Segment

## Description

The SegmentName business rule dictates the data that is stored for each segment instance. Segment level roles and role views are defined in this rule.Configuration of the rule is similar to screen rules but allows for additional validations and calculations by invoking CalculateGeneral business rules.

## Segment Element\Attribute Table

Element/Tag | Definition | Attribute | Element/Attribute Value and Description
--- | --- | --- | ---
<Segment> | The opening and closing tag for the rule. |  |
<Fields> | Screen entry fields. Click the Fields link for configuration details. |  |
<Roles> | Optional: Opening tag for the Roles section of configuration. When absent, no roles are attached to the segment. |  |
<Role> | Required, Repeatable: Need to make available to CopyBook. |  |
<RoleCode/> | Required: Identifies role via role code. |  | Single Role Code
<Maximum/> | Optional: Defines the maximum number of roles of a specific role code on a segment. When absent, there is no limit. Note : This element correlates to <RoleCount> in the PolicyScreen. |  | Numeric value
<Minimum/> | Optional: Defines the minimum number of roles of a specific role code on a segment. If element is present without a minimum value, no minimum will be applied. |  | Numeric value
<ClientType> | Required: Section to hold one or more client type codes that may be assigned to the role. |  |
<TypeCode/> | Required, Repeatable: Defines the client type allowed that may be assigned to the role. |  | Client type code
<RolePercent> | Optional: Defines the value to which the sum of role percentages for each role must equate. |  | Integer from 0 to 100. Default is 100.
<AllowZeroPercent/> | Optional: Allows the role to accept a zero percent value. |  | Yes|No The default value is No.
<AllowPercent/> | Optional: Controls the display of the Percent box for the specified role. |  | Yes|No Yes: Percent box will display. The default value is Yes. No: Percent box will not display.
<DisableRoleFields> | Optional: Section to list the policy status that will disable the role fields. When absent or no statuses are listed, the role fields are not disabled. |  |
<DisableStatus/> | Required, Repeatable: A policy status that will disable the role fields. |  | Policy Status code
<ClientAssignment> | Optional: Identifies existing segment and segment role that may be cloned. |  |
| CLONEROLEDETAIL | Optional: Stipulates whether the common role detail is cloned (copied) to the new role. This has no affect to later editing of the new role's detail. Yes: Role detail is copied. No: Role detail is not copied. This is the default.
| EXCLUDEASSIGNED | Optional: Indicates that the list of clients generated by <ClientAssignment> is affected by prior assignments of the same role code on the same segment or of the same role code on segments of the same segment name. When the value is Yes, clients already assigned are removed from the client list. Yes: Clients already assigned are removed from the client list. No: The client list is not affected by prior assignments. This is the default value.
<SourceSegment> | Required, Repeatable: Used with ClientAssignment element to identify the segment from which the role may base client selection and possibly clone common role data. |  |
| SEGMENTNAME | Required: Identifies the source segment(s) by a segment name.
<SegmentRoleCodes> | Required: A section to identify role codes from the SourceSegment in which to base client selection and possibly clone common role data. |  |
<RoleCode/> | Required, Repeatable: Identifies the role code from a segment in which to base client selection and possibly clone common role data. |  | Valid role code from the source segment.
<Ordinal/> | Optional element; Used to place roles in a specific order. When not used, roles appear in an arbitrary order. |  |
<RoleViews> | Optional: Opening tag for role view configuration. The absence of RoleViews configuration will result in the display of a default view. |  |
<DisplayStatus> | Optional: Identifies a list of role statuses that will be available for the views. By default, roles of all statuses are available for the views. |  |
<Status/> | Required, Repeatable: Identifies a role status that may be displayed for the views. |  | Role status
<View> | Optional, Repeatable: Defines the data display for a view. The contents are available to copybooks. |  |
| NAME | Required: Each view created is named and the name listed in the View element on the Segment Role screen.
<Roles> | Required: Configuration will define the roles to be included in the view. |  |
| ALLROLES | Optional: Specifies that a view contains all roles. Cannot coexist with the <Role> element. Yes: All roles attached to the segment of the appropriate status will be listed. No: Roles with the appropriate status are defined by one or more <Role> elements. This is the default value.
<Role/> | Required, Repeatable: Defines the role(s) that are included in the view. |  | Role Code
<Table/> | Optional; Common column definition to define the columns for the view. Available groups are: Role, RoleField, Client, ClientField, Segment, and SegmentField. |  |

## XML Example

    <Segment>

    <Fields>

    <Field>

    <Name>SegmentIssueDate</Name>

    <Display>Effective Date</Display>

    <DataType>Date</DataType>

    <Calculated TYPE="SQL">SELECT AsNbCaseField.Datevalue
     FROM AsNbCaseField WHERE AsNbCaseField.CaseID='[CaseID]' AND FieldName
     = 'AppSignedDate'</Calculated>

    </Field>

    <Field>

    <Name>SegmentIssueAge</Name>

    <Display>Issue Age</Display>

    <DataType>Integer</DataType>

    <Disabled>Yes</Disabled>

    </Field>

    <Field>

    <Name>RiderPremium</Name>

    <Display>Rider Premium</Display>

    <DataType>Money</DataType>

    </Field>

    </Fields>

    <Roles>

    <Role>

    <DisableRoleFields>

    <DisableStatus>[policy status code]</DisableStatus>

    </DisableRoleFields>

    <RoleCode>[role code]</RoleCode>

    <Maximum>[integer]</Maximum>

    <ClientType>

    <TypeCode>[client type code]</TypeCode>

    </ClientType>

    <AllowZeroPercent>Yes|No</AllowZeroPercent>

    <AllowPercent>Yes|No</AllowPercent>

    <RolePercent>[integer]</RolePercent>

    <Minimum>[integer]</Minimum>

    <ClientAssignment  CLONEROLEDETAIL="Yes|No" EXCLUDEASSIGNED="Yes|No">

    <SourceSegment SEGMENTNAME="[segment name]">

    <SegmentRoleCodes>

    <RoleCode>[role code]</RoleCode>

    <RoleCode>[role code]</RoleCode>

    </SegmentRoleCodes>

    </SourceSegment>

    </ClientAssignment>

    <Ordinal>[integer]</Ordinal>

    </Role>

    </Roles>

    <Buttons>

    <Button>Save</Button>

    </Buttons>

    <RoleViews>

    <DisplayStatus>

    <Status>00</Status>

    <Status>99</Status>

    </DisplayStatus>

    <View NAME="[name of the view]">

    <Roles ALLROLES="Yes|No">

    <Role>[role code|*]</Role>

    </Roles>

    <Table>[common column definition]</Table>

    </View>

    </RoleViews>

    <Events>

    <Event TYPE="ONLOAD">

    <ActionSet ID="CheckForBaseCoverage"></ActionSet>

    <ActionSet ID="CheckForInsuredRole"></ActionSet>

    </Event>

    </Events>

    <ScreenMath>

    <Math ID="Math" GLOBAL="Yes">

    <MathVariables>

    <MathVariable VARIABLENAME="One" TYPE="VALUE"
     DATATYPE="INTEGER">1</MathVariable>

    <MathVariable VARIABLENAME="BaseSegmentCount"
     TYPE="SQL" DATATYPE="INTEGER">SELECT COUNT(*) FROM
     AsNbSegment JOIN AsSegmentName ON AsNbSegment.SegmentNameGUID = AsSegmentName.SegmentNameGUID
     WHERE AsNbSegment.CaseID = '[CaseID]' AND AsSegmentName.TypeCode = '04'</MathVariable>

    <MathVariable VARIABLENAME="InsuredCount" TYPE="SQL"
     DATATYPE="INTEGER">SELECT COUNT(*) FROM AsNbRole JOIN AsNbCaseRole
     ON AsNbCaseRole.RoleID = AsNbRole.RoleID WHERE AsNbCaseRole.CaseID = '[CaseID]'
     AND AsNbRole.RoleCode = '03' AND AsNbRole.StatusCode = '01'</MathVariable>

    </MathVariables>

    </Math>

    </ScreenMath>

    <Actions>

    <ActionSet ID="CheckForBaseCoverage">

    <Condition IF="Math:BaseSegmentCount &lt; Math:One">

    <Action ACTIONTYPE="ERROR">Base Coverage
     must be added to case before adding Waiver Of premium coverage.</Action>

    </Condition>

    </ActionSet>

    <ActionSet ID="CheckForInsuredRole">

    <Condition IF="Math:InsuredCount &lt; Math:One">

    <Action ACTIONTYPE="ERROR">Insured must
     be added to case before adding Waiver Of Premium coverage.</Action>

    </Condition>

    </ActionSet>

    </Actions>

    </Segment>

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

Open table of contents