Sei sulla pagina 1di 15

Oracle Data Integrator Workflow Management: The Packages

8
11-1

Objectives
In this lesson, you will:
Learn how ODI Packages are used to create a complete workflow. See how to create several different kinds of package steps. Learn how to execute a package.

11-2

What Is a Package?

Package: An organized sequence of steps that makes up a workflow. Each step performs a small task, and they are combined together to make the package.

11-3

How to Create a Package

1. 2.

Create and name a blank package Create the steps that make up the package
Drag interfaces from the Projects view onto the Diagram tab Insert ODI tools from the toolbox

3.

Arrange the steps in order


Define the first step Define the success path Set up error handling

11-4

The Package Diagram


Toolbar

Diagram

ODI tool step Toolbox for ODI tools

Interface step (selected)

Properties of selected step

11-5

Package Diagram Toolbar


Execute package Print package Page setup

Execute selected step


Edit selected step Hide/show toolbox Hide/show properties Hide/show success links Hide/show failure links

Select Next step on success Next step on failure Duplicate selection Delete selection Rearrange selection

Shows errors in the diagram

11-6

How to Create an Interface Step


1.Expand the project and folder containing the interface. Expand the Interfaces node. 2.Drag the interface to the package diagram.
The new step appears.

3.Optionally, change the Step Name in the Properties panel.

11-7

Note Interfaces Are Reusable

11-8

Note Interfaces Are Reusable

11-9

What Is an ODI Tool?

ODI tools Macros that provide useful functions to handle files, send emails, use web services, etc. Tools can be used as steps in packages.

11-10

How to Create an ODI Tool Step


1. In the Toolbox, expand the group containing the tool you want to add. Click the tool. Click the diagram.
A step named after the tool appears.

2. 3.

4. 5. 6.

Change the Step Name in the Properties panel. Set the tools Properties. Click Apply to save.

11-11

A Simple Package
First step Step on success

The first step must be defined


Right click > First Step

After each step the flow splits in two directions:


Success: ok (return code 0) Failure: ko (return code not 0)

Step on failure

This package executes two interfaces then archives some files. If one of the three steps fails, an email is sent to the administrator.

11-12

Note Error Button

11-13

Executing a Package
1. Click the Execute button in the package window

2.

Open Operator
The package is executed as a session Each package step is a step Tool steps appear with a single task Interface steps show each command as a separate task

11-14

Note Atomic Testing

11-15

Potrebbero piacerti anche