TransactionAllocationScreen Actions and Events Prototype
From Oracle Insurance Rules Palette
TransactionAllocationScreen Actions and Events Prototype
The EventsOnAllocationSupport prototype demonstrates how OIPA allows actions and events in the TransactionAllocationScreen BR.
Scenario
In a specific transaction, the TransactionAllocationScreen needs to be displayed with the EqualPercent checkbox disabled in the From section and available in the To section. Further, using specific trigger actions, the EqualPercent in From section needs to be enabled and errors/warnings displayed based on the % values or amount or no. of units entered in the various funds under From and To sections.
Prototype Configuration
- The transaction 'EventsOnAllocationSupport' under the 'Model Prototype Plan' demonstrates the action/events capabilities through the following actions and events configured in the transaction and the attached TransactionAllocationScreen BR.
- Calling an event in the TransactionAllocationScreen BR from ONCHANGE event in the activity details: A “CallExternalEvent” Check field is configured. When this check box field is 'CHECKED', the EventBasedOnActivityField event is triggered in the TransactionAllocationScreen BR by using the CALLEXTERNALEVENT.
EventBasedOnActivityField CALLEDEVENT in TransactionAllocationScreen BR: The CallTASBREvent is configured in the attached BR that performs the following:
- Check the AllocationMethod selected in From and To and if they are not the same, throw an error "Allocation Method must be same for both the FROM & TO allocations."
- Further, the EventBasedOnActivityField event is configured under the MultiField BR used in the same transaction. This is done to demonstrate the precedence when the same CALLEDEVENT occurs in more than one associated business rule of a transaction. Currently MultiFields BR and TrasnactionAllocationScreen BR allow using CALLEDEVENTs and the precedence is MultiField BR first and then the TransactionAllocationScreen BR if the same exists in both.
- In this transaction, when the MultiField event CallTASBREvent is triggered, static text "CALLEDEVENT is executed" is assigned to all the rows of the multifield for the TextField field.
- ONLOAD event in TransactionAllocationScreen: An ONLOAD event is configured in the TransactionAllocationScreen BR to disable the EqualPercent cehckbox in the From Section and set the EqualPercent checkbox to CHECKED in the To Section.
- ONSUBMIT event in TransactionAllocationScreen: This will get triggered when the transaction is submitted. In terms of precendence - the ONSUBMIT in the activity details screen will be triggered first, next would be any ONSUBMIT events from MultiFields, if any and then the ONSUMIT event in the TransactionAllocationScreen BR will be triggered.
- If the target AllocationMethod is Percent, then check if the TotalAllocationAmount is 100%. If not, throw an error "Under TO Allocation Section the Total Percentage must match to 100."
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 EventsOnAllocationSupport activity from the Activity drop down box.
- Make changes to the various fields and process the transaction as explained above to view the functionality.