8 Copyright © 2009, Oracle. All rights reserved. Using Process Flows.

30
8 Copyright © 2009, Oracle. All rights reserved. Using Process Flows

Transcript of 8 Copyright © 2009, Oracle. All rights reserved. Using Process Flows.

8Copyright © 2009, Oracle. All rights reserved.

Using Process Flows

Copyright © 2009, Oracle. All rights reserved.8 - 2

Objectives

After completing this lesson, you should be able to do the following:

• Navigate the Process Flow Editor

• Create process flow definitions

Copyright © 2009, Oracle. All rights reserved.8 - 3

Lesson Agenda

• Process flow concepts– Create process flow module, process flow package, and

process flow

• Activities– Types– Fork activity, Mapping activity, And activity, and End activity

• Create transitions

• Some more activities:– Manual, SQL*Plus, and Email

• Validate and generate

Copyright © 2009, Oracle. All rights reserved.8 - 4

Data Warehouse Implementation: Typical Steps

Part 1

Part 2

1. Define the source metadata.

2. Define staging area metadata.

3. Define a relational dimensional model.

4. Create process flows.

5. Deploy the mappings.

6. Execute or run the mappings.

7. View the data.

Copyright © 2009, Oracle. All rights reserved.8 - 5

Process Flow Concepts

PROCESS_FLOW_MODULE

Process_Flow_Package1

Process flow 1

Process flow 2

Process flow 3

Process_Flow_Package2

Copyright © 2009, Oracle. All rights reserved.8 - 6

Creating a Process Flow Module

Copyright © 2009, Oracle. All rights reserved.8 - 7

Creating an Oracle Workflow Location

You use an Oracle Workflow location to deploy process flows. This location corresponds to the Oracle Workflow schema.

Copyright © 2009, Oracle. All rights reserved.8 - 8

Creating a Process Flow Package

Copyright © 2009, Oracle. All rights reserved.8 - 9

Creating a Process Flow

Component Palette containing the process flow activities.

Here you design the process flow. The START1 and END_SUCCESS activities are added automatically.

Property Inspector shows the properties of the current activity.

You can drag existing mappings directly on the canvas.

Structure panel provides the current activity's parameters. You can generally set its values in the

Property Inspector panel. 

Copyright © 2009, Oracle. All rights reserved.8 - 10

Creating a Process Flow

Component Palette containing the process flow activities.

Here you design the process flow. The START1 and END_SUCCESS activities are added automatically

Property Inspector shows the properties of the current activity

You can drag existing mappings directly on the canvas.

Copyright © 2009, Oracle. All rights reserved.8 - 11

Lesson Agenda

• Process flow concepts– Create process flow module, process flow package, and

process flow

• Activities– Types– Fork activity, Mapping activity, And activity, and End activity

• Create transitions

• Some more activities:– Manual, SQL*Plus, and Email

• Validate and generate

Copyright © 2009, Oracle. All rights reserved.8 - 12

Types of Activities

Copyright © 2009, Oracle. All rights reserved.8 - 14

Adding a Fork Activity

Launches two or more activities after completing an activity

Copyright © 2009, Oracle. All rights reserved.8 - 15

Adding a Mapping Activity

Shape of the cursor when you drag the mapping from the Projects Navigator

Copyright © 2009, Oracle. All rights reserved.8 - 16

Adding an And Activity

Copyright © 2009, Oracle. All rights reserved.8 - 17

Adding End Activities

Copyright © 2009, Oracle. All rights reserved.8 - 18

Lesson Agenda

• Process flow concepts– Create process flow module, process flow package, and

process flow

• Activities– Types– Fork activity, Mapping activity, And activity, and End activity

• Create transitions

• Some more activities:– Manual, SQL*Plus, and Email

• Validate and generate

Copyright © 2009, Oracle. All rights reserved.8 - 19

Creating Transitions Between Activities

Copyright © 2009, Oracle. All rights reserved.8 - 20

Transition Conditions

Copyright © 2009, Oracle. All rights reserved.8 - 21

Lesson Agenda

• Process flow concepts– Create process flow module, process flow package, and

process flow

• Activities– Types– Fork activity, Mapping activity, And activity, and End activity

• Create transitions

• Some more activities:– Manual, SQL*Plus, and Email

• Validate and generate

Copyright © 2009, Oracle. All rights reserved.8 - 22

Manual Activity

• The manual activity indicates that the process flow would be halted until a manual response is performed by a person.

• The user can respond to the manual activity in the Control Center or in the Repository browser, and define the result (SUCCESS, WARNING, or ERROR).

• The process flow continues accordingly.

Copyright © 2009, Oracle. All rights reserved.8 - 23

SQLPLUS Activity

With the SQLPLUS activity, you can run any (parameterized) SQL*Plus script from within a process flow.

Parameter_List: In the Value property, enter @ followed by the full path of the location of the file containing the script.

Script: Alternatively, enter or paste the script in the Value property.

Copyright © 2009, Oracle. All rights reserved.8 - 24

Email Activity

You can send email notifications after the completion of an activity in a process flow.

Copyright © 2009, Oracle. All rights reserved.8 - 25

Some More Activities

• File Exists: Used to verify the existence of a file before running the next activity

• FTP: Used to transfer files from one file location to another based on a script of FTP commands that you provide.

• Sub-Process: Used to start a previously created process flow. From one process flow, you can start any other process flow that is contained within the same or any other process flow package.

Copyright © 2009, Oracle. All rights reserved.8 - 26

Lesson Agenda

• Process flow concepts– Create process flow module, process flow package, and

process flow

• Activities– Types– Fork activity, Mapping activity, And activity, and End activity

• Create transitions

• Some more activities:– Manual, SQL*Plus, and Email

• Validate and generate

Copyright © 2009, Oracle. All rights reserved.8 - 27

Validating the Process Flow

Copyright © 2009, Oracle. All rights reserved.8 - 28

Generating the Process Flow Package

XPDL Code is generated

Copyright © 2009, Oracle. All rights reserved.8 - 29

Quiz

From the following, what is the smallest unit of deployment:

a. Individual process flows

b. Process flow package

c. Process flow module

Copyright © 2009, Oracle. All rights reserved.8 - 30

Summary

In this lesson, you should have learned how to:

• Navigate the process flow editor

• Create process flow definitions

Copyright © 2009, Oracle. All rights reserved.8 - 31

Practice 8-1 Overview: Creating a Simple Process Flow

This practice covers creating a simple process flow to run the mappings you created so far.