Field Triggers
This feature is not available in Encompass Broker Edition.
View the "Creating and Using Business Rules" Quick Reference Guide
Use the Field Triggers tool to create and manage rules that execute custom actions when the value in a field is changed. You can specify a condition for applying the rule, the field ID and criterion for triggering the rule, and the action to take when the criterion is met.
You can also export Field Trigger business rules, one at a time, from an Encompass environment, save them onto your computer and then import the business rule into another Encompass environment. All Field Trigger business rules can be exported and then imported, irrespective of their Status.
To Create a Field Trigger:
-
On the menu bar, click Encompass, and then click Settings.
-
On the left panel, click Business Rules, and then click Field Triggers.
-
On the Field Triggers screen, click the New icon.
-
Type the name of the trigger.
Select all Channels this rule applies to
-
Select the channels where the rule will be applied.
-
Select No channel selected to apply the rule to a loan where none of the channel options are selected.
Note: The channel for each loan is specified on the Borrower Summary form.
Is there a condition for this trigger
-
Select No to always apply the rule.
-
Or, select Yes to create a condition for when the rule is applied.
-
Select a category for the condition, such as Loan Purpose.
-
Select a value for the category, such as Purchase.
-
If you select Current Role for the category, you can configure the rule to only be applied when a specific role is assigned to finish a specific milestone. After selecting Current Role, click the Lookup icon (magnifying glass), and then select the specific role. Then select the specific milestone from the dropdown list.
Note: If you select the Advanced Conditions option, you can create expressions to define custom conditions. Click the Find icon to select filters for the Advanced Conditions option or, for detailed instructions on how to create your own code, refer to the "Advanced Coding for Business Rules" document.
Select Filters for the Advanced Conditions Option
-
Select Advanced Conditions as the category condition, and then click the Find icon on the right.
-
Click the New icon to add a new filter.
Note: If you have existing filters, the New icon places the new filter at the bottom of the list. Select an existing filter and then click the Insert button to insert a new filter above the selected filter.
-
On the Add/Edit Search Filter window:
-
Type a Field to add as a filter.
-
Or, click the Find icon, select a field from the list, and click OK.
-
Or, click the Find icon, type one or more characters in the Find field and then click Find. The first occurrence of the characters in any column is found. Continue clicking Find to view additional occurrences. Select a field from the list, and click OK.
-
-
Select an Operator, enter (or select) a Value, and then click OK.
-
The Operator and Value define how the field will be used. For example: Field ID= 1109 (Loan Amount), Operator = Greater than, Value = 250000.
-
-
Click OK.
-
Repeat steps 2 through 5 to add more filters.
-
To use parentheses to control the order in which multiple filters are evaluated, click Parentheses, select the filters to group, click the New icon, and click OK.
-
Use the AND/OR button to determine how search filters are used together.
-
When finished, click OK.
-
Click Add.
-
In the Activation section of the window, select the Activation Type.
-
Based on the activation type you select, you will be asked to enter additional information as described below.
If you selected Field value modified as the Activation Type
-
Enter the field ID for the field associated with the field event. Or click Find, select a form from the left, right-click to select a field, and then click Add.
-
Select the Criterion that will activate the rule, such as Any change in field value. Depending on the selection, you may be asked to enter additional information as follows:
-
When field is set to a specific value - Enter the value in the Value field.
-
When field is set in a range of values - Enter the lower and upper limits of the range in the Range fields (available for numeric fields only).
-
When field is set to an item from a list of values - Create a list of the values that will be checked against the value entered in the field. Click Add and then type the value over <New Value> on the list. Repeat the process to add more values to the list.
If you select Milestone completed as the Activation Type
-
Select the milestone that will trigger the rule when it is completed.
If you select Rate Lock actions as the Activation Type
-
Select a rate lock event from the Rate Lock Action dropdown list.
-
In the Action section of the window, select the action that will be triggered when the defined criterion is met.
Update the value of one or more fields
-
In the Action section, Click Add.
-
In the Assign To Field field, enter the field ID of the field that will be updated.
-
In the Value field, enter the value that will be assigned to the field ID.
-
If you select the Evaluate expression as a custom calculation checkbox, you can enter a calculation that will be used to determine the assigned value. For detailed information on creating custom calculations, refer to the "Loan Custom Field Calculations" document.
-
Click OK. Repeat to add additional fields to update.
Copy new value into one or more fields
-
In the Action section, click Add.
-
In the Copy To Field list, type a field ID over <Enter Field ID>. The value associated with the Trigger Field ID, will be copied to this field.
-
Repeat steps 1 and 2 to add additional fields to copy the value from the Trigger Field to.
Mark one or more tasks as complete
-
Select the tasks that will be marked as completed when the event is triggered.
Send an Email to One or More Users
-
In the Action section, click Add.
-
Enter the Subject and Body of the email. You can include loan data by specifying a field ID within square brackets.
-
Select the checkbox to include the email information in the Loan Log.
-
Click the plus (+) buttons to select the Users and Roles that will receive the message.
-
Click OK.
-
In the Advanced Code area, enter the code that will be run when the action is triggered. For detailed instructions on how to create your own code, refer to the "Advanced Coding for Business Rules" document.
-
Click OK.
-
In the Action section, select Apply loan template form the Action Type list.
-
Click the Find icon next to the Select Loan Template field, select a template to apply, and then click Select.
In the following scenarios, the business rule will be triggered as expected if the conditions of the rule are met, however, the loan template will not be applied to the loan file: 1) if the trigger field is changed by a field calculation or other logic (i.e., the trigger field is a calculated field), 2) the trigger field is changed by other components that don't rely on the user utilizing an on-screen element to change the field value (for example, an ICE Mortgage Technology Network service or the Encompass SDK), or 3) the trigger field is changed due to an imported item.
- When finished adding event details, click OK.
-
In the Notes/Comments field, type details and helpful notes about the rule as needed.
- When finished, and then click Save.