Choosing the Right Knowledge Modules Importing and Replacing Knowledge Modules

9-10 Oracle Fusion Middleware Developers Guide for Oracle Data Integrator 10 Working with Packages 10-1 10 Working with Packages This chapter gives an introduction to Packages and Steps. It also passes through the creating process of a Package and provides additional information about handling steps within a Package. This chapter includes the following sections: ■ Section 10.1, Introduction to Packages ■ Section 10.2, Creating a new Package ■ Section 10.3, Working with Steps ■ Section 10.4, Defining the Sequence of Steps ■ Section 10.5, Running the Package

10.1 Introduction to Packages

The Package is the largest unit of execution in Oracle Data Integrator. A Package is made up of a sequence of steps organized into an execution diagram. Each step can either succeed or fail its execution. Depending on the execution result success or failure, a step can branch to another step.

10.1.1 Introduction to Steps

Table 10–1 lists the different types of steps. References are made to sections that provide additional details Table 10–1 Step Types Type Description See Section Flow Interface Executes an Interface. Section 10.3.1.1, Executing an Interface Procedure Executes a Procedure. Section 10.3.1.2, Executing a Procedure Variable Declares, sets, refreshes or evaluates the value of a variable. Section 10.3.1.3, Variable Steps Oracle Data Integrator Tools These tools, available in the Toolbox, enable to access all Oracle Data Integrator API commands, or perform operating system calls Section 10.3.1.4, Adding Oracle Data Integrator Tool Steps 10-2 Oracle Fusion Middleware Developers Guide for Oracle Data Integrator Figure 10–1 Sample Package For example, the Load Customers and Invoice Package example shown in Figure 10–1 performs the following actions:

1. Execute procedure System Backup that runs some backup operations.

2. Execute interface Customer Group that loads the customer group datastore.

3. Execute interface Customer that loads the customer datastore.

4. Execute interface Product that loads the product datastore.

5. Refresh variable Last Invoice ID step to set the value of this variable for use later

in the Package.

6. Execute interface Invoice Header that load the invoice header datastore.

7. Execute interface Invoice Lines that load the invoices datastore. 8. If any of the steps above fails, then the Package runs the Send Alert step that sends an email to the administrator using an Oracle Data Integrator tool. Models, Sub-models, and Datastores Performs journalizing, static check or reverse-engineering operations on these objects Section 10.3.1.5, Model, Sub-Models and Datastore Related Steps Table 10–1 Cont. Step Types Type Description See Section