Multifield Value in Math and ScreenMath Prototype
The MultifieldEvents prototype demonstrates how OIPA allows picking up the values of Multifield values from specific instances inmath variables in the ScreenMath and Math sections in transactions. In addition to the UI Screen, the multifield data can also be updated via transactions.
Prototype Requirements
- In a specific transaction, the multifield value entered in the second instance of the Multifield is required to be used for validation in screen math and display in the verification screen. The value will need to be picked up in math variables in ScreenMath and Math to perform the same.
- User should have multifields saved on the screen in order to view the copied value from transaction on to the respective screen like Policy, Role etc.
- User should be able to add the transaction 'MultifieldEnhancement' on the policy.
Changes to Existing Items
- RoleScreen present at 'FucntionalPrototypePlan' level is altered by adding the 'Multifield-PrototypeRoleScreen' multifield business rule for the insured role.
- Existing Multifield-PrototypePolicyScreen is altered by adding the Name attribute into it.
New Items
- A new business rule Multifield-PrototypeRoleScreen is added to showcase this feature.
- A new transaction called "MultifieldEnhancement" is added at the "Functional Prototype Plan" level.
Transaction name: MultifieldEnhancement
Company name: Prototype Individual Child Company
Product Name: Individual Prototype Product
Plan Name: Functional Prototype Plan
Attached BusinessRules: CopyToPolicy, CopyToRole, CreatePolicy.
Scenario
In a specific transaction, the multifield value entered in the second instance of the Multifield is required to be used for validation in screen math and display in the verification screen. The value will need to be picked up in math variables in ScreenMath and Math to perform the same.
Prototype Configuration
- The existing transaction ‘MultifieldEvents’ in the Functional Prototype Plan is used for demonstrating the functionality associated with this feature. The following features are configured to demonstrate the same functionality.
A math variable “TextTestMV” of type MultiField is added in the Math section of the transaction which fetches the value from the associated Multifield rule “Multifield-MultifieldEvents” from Multifield “TextTestMF” at index 1. This can be viewed in the Math Variables section after processing the activity.
- A VerificationScreen BRis attached to this transaction where the above created math variable “TextTestMV” is accessed as a field. This can be viewed during Verify.
A ValidateExpression BR is also attached to this transaction which will perform validation based on the math variable “TestTextMV” and display errors as appropriate while processing the transaction.
- A transaction is given an option to select 'CopyToPolicyFields', 'CopyToRoleFields' and 'CreatePolicy' BR. Depending on the selection the respective business rules will be invoked. The transaction will have a collection of multifield index and a value attached to it. This collection will be copied to the respective screens.
- CopyToPolicyFields: When the user selects 'CopyToPolicyFields' option from the 'SelectOperation' field in the transaction, the transaction copies the collection value to 'PolicyScreen' via CopyToPolicyFields business rule.
- CopyToRoleFields: When the user selects 'CopyToRoleFields' option from the 'SelectOperation' field in the transaction, the transaction copies the collection value to 'RoleScreen' for the Insured Role since the multifields are present for Insured role in the ‘RoleScreen.’
- CreatePolicy: When the user selects 'CreatePolicy' option from the 'SelectOperation' field in the transaction, the transaction copies the collection value to 'PolicyScreen' via CreatePolicy business rule along with the details which is required for creating a policy. Policy will be created at the Functional Prototype Plan Level.
View Prototype in OIPA
- Log in OIPA using the Prototype Company user ID and password.
- Click Policy | New from the Main menu.
- Add a shell policy to test the prototype.
- Click Add Activity on the Secondary menu.
- Select the MultifieldEvents activity from the Activity drop down box.
- Make changes to the various fields and press verify. The verification screen will display the value entered in the multifield TextTestMF at index 1. Enter any text other than 'New Text' in TextTestMF at index 1 and an error message will also be displayed on the verification screen.
- Enter value 'New Text' in TextTestMF at index 1 and process the transaction. Click on the activity results and go to the Math tab to see the multifield value from TextTestMF at index 1 being available in the math variable TextTestMV.