Difference between script include and BR (2024)

NameEnter a name for the business rule.TableSelect the table that the business rule runs on.

Note: The list shows only tables and database views that meet the scope protections for business rules starting with the Fuji release. Business rules defined for a database view can run only on Query. A business rule for a database view cannot run on insert, update, or delete.


ApplicationApplication that contains this business rule.Accessible fromScope protection for a global business rule.

Note: This field is visible only when the Table field is set to Global. It does not apply to rules that run on specific tables.


ActiveSelect this check box to enable the business rule.AdvancedSelect this check box to see the advanced version of the form.When to runWhen[Advanced] Select when this business rule should execute: display, before, async, or after the database operation is complete.

Note: Consider setting the Priority for async business rules as the system uses this value when creating the associated scheduled job.


Order[Advanced] Enter a number indicating the sequence in which this business rule should run. If there are multiple rules on a particular activity, the rules run in the order specified here, from lowest to highest.InsertSelect this check box to execute the business rule when a record is inserted into the database.UpdateSelect this check box to execute the business rule when a record is update.Delete[Advanced] Select this check box to execute the business rule when a record is deleted from the database.Query[Advanced] Select this check box to execute the business rule when a table is queried.Filter ConditionsUse the condition builder to determine when the business rule should run based on the field values in the selected Table. You can also use the Condition field to build a condition with a script.Role ConditionsSelect the roles that users who are modifying records in the table must have for this business rule to run.ActionsSet field valuesSet values for fields in the selected Table using the choice lists:
  • The field
  • The assignment operator:
    • To: An exact value
    • Same as: The value of another field
    • To (dynamic): A value relative to the user configuring the business rule or a user with a specific role
  • The value
Add messageSelect this check box and enter a message that appears when this business rule is runAbort actionSelect this check box to abort the current database transaction. For example, on a before insert business rule, if the conditions are met, do not insert the record into the database.If you select this option, you cannot perform additional actions on the record, such as setting field values and running scripts. You can still display a message to users by selecting the Add message check box and composing the message.AdvancedCondition[Advanced] Create a JavaScript conditional statement to specify when the business rule should run. By adding the condition statement to this field, you tell the system to evaluate the condition separately and run the business rule only if the condition is true. If you decide to include the condition statement in the Script field or if you use the condition builder, leave this field blank. To have the instance reevaluate the condition statement a second time before running an async business rule, add the system propertyglide.businessrule.async_condition_check and set the value to true.Script[Advanced] Create a script that runs when the defined condition is true. The system automatically populates this field with a function name that matches the When value.
  • onAfter
  • onAsync
  • onBefore
  • onDisplay
Note: The function name must match the When value.For more information and examples, see Scripting in Business Rules.Related list: VersionsVersionsShows all versions of the business rule. Use this list to compare versions or to revert to a previous version.
Difference between script include and BR (2024)
Top Articles
Latest Posts
Article information

Author: Dong Thiel

Last Updated:

Views: 6429

Rating: 4.9 / 5 (59 voted)

Reviews: 82% of readers found this page helpful

Author information

Name: Dong Thiel

Birthday: 2001-07-14

Address: 2865 Kasha Unions, West Corrinne, AK 05708-1071

Phone: +3512198379449

Job: Design Planner

Hobby: Graffiti, Foreign language learning, Gambling, Metalworking, Rowing, Sculling, Sewing

Introduction: My name is Dong Thiel, I am a brainy, happy, tasty, lively, splendid, talented, cooperative person who loves writing and wants to share my knowledge and understanding with you.