Skip Headers

Oracle Fusion Middleware Data Modeling Guide for Oracle Business Intelligence Publisher (Oracle Fusion Applications Edition)
Release 11g (11.1.1)
Part Number E21074-01
Go to Table of Contents
Contents
Go to previous page
Previous
Go to next page
Next
View PDF

Adding Event Triggers

This chapter covers the following topics:

About Triggers

An event trigger checks for an event and when the event occurs, it runs the code associated with the trigger. The BI Publisher data model supports triggers that execute a PL/SQL function stored in a PL/SQL package in your Oracle Database. A trigger must explicitly return TRUE or FALSE.

The BI Publisher data model supports the following types of triggers:

Important: The return data type for a PL/SQL function inside the package must be a Boolean type.

Adding Event Triggers

  1. From the data model Properties pane, enter the Oracle DB Default Package that contains the PL/SQL function signature to execute when the trigger fires. See Setting Data Model Properties.

  2. From the task pane, click Event Triggers.

  3. From the Event Triggers pane, click the Create New icon.

  4. Enter the following for the trigger:

  5. Select the package from the Available Functions box and click the arrow to move a function to the Event Trigger box. The name will appear as PL/SQL <package name>.<function name>.

    Important: If you define a default package then you must define all parameters as a global PL/SQL variable in the PL/SQL package. You can then explicitly pass parameters to your PL/SQL function trigger or all parameters will be available as a global PL/SQL variable.

Order of Execution

If you define multiple triggers of the same type, they will fire in the order that they appear in the table (from top to bottom). To change the order of execution, use the Reorder arrows to place the triggers in the correct order.