MathLoop

The MathLoop math variable provides a method of executing a set of instructions that are to be repeated. Each type of repetition is called an iteration. There are four types of Loops currently supported in OIPA: FOR, SEGMENT, OBJECT and VALUATION.

The FORLoop allows the system to repeat instructions to loop for a specified number of iterations. The number of iterations can be specified by using a hard-coded integer value or a defined math variable. If a math variable is used the math variable can hold a calculated integer value.

The SEGMENT Loop allows the system to loop through segments listed on/for a specific policy/certificate. By default, the SEGMENTLOOP will loop through all segments, inactive as well as active, unless the math variable Condition is specified. The Condition attribute/property is typically used to instruct the system to only loop through active segments based on the value of a specified segment field (e.g. CONDITION=”FieldName = 'SegmentActiveCode' And TextValue = '01'”).

The OBJECT Loop provides a method to loop through any OIPA database table. OBJECTand OBJECTFIELD math variables are used inside the OBJECTLOOP to set up the table to be looped through and then retrieve the values from the table.

The VALUATION Loop provides a method to loop through the values of Valuation records held in memory as the activity processes but before it is written to the database tables.

Note: The Valuation looping method is only available to the PostAssignmentValidateExpressions rule and is not expressed as an option inside the Math pane of the Rules Palette.

Math Loop Math Variable in the Rules Palette

MathLoop Math Variable in Palette

Note: For a comprehensive explanation of the characteristics of this math variable, refer to the XML Configuration Guide in the Help menu.

Define the MathLoop Math Variable

Drag and drop the MathLoop math variable from the Palette window onto the Math Pane. Enter the following information for the math variable.

Math Loop with Activity and ActivityArray:In order to populate the array with more than one Activity math object, a standard loop can be used (optional).

Note: The ActivityArray variable must be instantiated outside of the loop and the Activity object math object inside the loop.

Check-in the transaction to save the information to the database.

     
Copyright © 2017, Oracle and/or its affiliates. All rights reserved. About Oracle Insurance | Contact Us