Sie sind auf Seite 1von 8

Ho me

Inf o rmat ica

D at a Ware Ho using

Unix- She ll Scrip t s

PL SQ L

C o nt act Us

Complete reference to Informatica

17
Sharing

Ap r 20 11

WORKING WITH TASKS Part 2


Naveen

0
Discussion Forum

Transf ormat ion

Share

Filter

Discussio n Fo rum

Expressio n
Ro uter
T IMER TASK

So rter

The Timer task allo ws us to specify the perio d o f time to wait befo re the Po wer

Rank

ETL Life Cycle

Center Server runs the next task in the wo rkflo w. The Timer task has two types o f

Transactio n Co ntro l

What Is Info rmatica

settings:

So urce Qualifier

Int roduct ion

Client Co mpo nents


Services Behind Scene
Try U R Hand's o n AdminCo nso le
Difference Between 7.1 and

Abso lut e t im e : We specify the exact date and time o r we can cho o se a
user-defined wo rkflo w variable to specify the exact time. The next task in
wo rkflo w will run as per the date and time specified.
Re lat ive t im e : We instruct the Po wer Center Server to wait fo r a specified

Sto red Pro cedure


SQL Transfo rmatio n
No rmalizer
Sequence Generato r
Aggregato r

PDFmyURL.com

Difference Between 7.1 and


8 .6

perio d o f time after the Timer task, the parent wo rkflo w, o r the to p-level

Aggregato r

wo rkflo w starts.

Unio n

Info rmatica 8 .6 Installatio n


Exam ple : Run sessio n s_m_filter_example relative to 1 min after the timer task.

Int erview Zone

St e ps f o r cre at ing wo rkf lo w:

Jo iner
Update Strategy
Lo o k Up

1. Wo rkflo w -> Create -> Give name wf_timer_task_example -> Click o k.


Info rmatica Real Time
Interview Questio ns

2. Click

Tasks

->

Create

->

Select

TIMER

fro m

list.

Give

name

TIMER_Example. Click Create and then do ne.

Info rmatica Experienced

3. Link TIMER_Example to START task.

Interview Questio ns - part1

4. Right click TIMER_Example-> EDIT -> TIMER tab.

Info rmatica Experienced

5. Select Relative Time Optio n and Give 1 min and Select Fro m start time o f

Interview Questio ns - part2

Subscribe t o Learn
Inf ormat ica
Like

157 people like this.

this task Optio n.

Info rmatica Experienced

6 . Apply -> OK.

Interview Questio ns - part3

7. Drag s_m_filter_example and link it to TIMER_Example.

Info rmatica Experienced

8 . Wo rkflo w-> Validate and Repo sito ry -> Save.

Interview Questio ns - part4

PDFmyURL.com

Interview Questio ns - part4


Data Wareho using co ncept

Enter yo ur email address:

Based Interview Questio ns

Test ing

Subscribe
Delivered by FeedBurner

Unit Testing
Integratio n Testing
UAT
Info rmatica Testing
Debugger
Co nstraint Based lo ading
Target Lo ad Plan

Perf ormanceTuning
Necessity Of
Perfo rmance-tuning

Advanced
Concept s

Identificatio n Of bo ttle
Necks
Optimizatio n o f Bo ttle

Mapping Parameter's &

necks

Variable

Perfo rmance tuning o f

Mapplets

Lo o kup

Partitio ning

Push Do wn Optimizatio n

Wo rking with links


Scheduler
Types o f Task's- 1
Types o f Task's- 2

DECISION TASK
The Decisio n task allo ws us to enter a co nditio n that determines the
executio n o f the wo rkflo w, similar to a link co nditio n.

Indirect Metho d fo r Lo ading

The

SCD - Type 1

$Decisio n_task_name.co nditio n that represents the result o f the decisio n

SCD - Type 2

co nditio n.

SCD - Type 3

The Po wer Center Server evaluates the co nditio n in the Decisio n task and

Incremental Aggregatio n

sets the pre-defined co nditio n variable to True (1) o r False (0 ).

Mapping Templates

We can specify o ne decisio n co nditio n per Decisio n task.

Grid Pro cessing

Decisio n

task

has

pre-defined

variable

called

Chat wit h Me
Chat wit h Me
Offline

Visit or's

Exam ple : Co mmand Task sho uld run o nly if either s_m_filter_example o r

Wo rk Flo w Variables
S_M_TOTAL_SAL_EXAMPLE succeeds. If any o f s_m_filter_example o r
S_M_TOTAL_SAL_EXAMPLE fails then S_m_sample_mapping_EMP sho uld run.
PDFmyURL.com

St e ps f o r cre at ing wo rkf lo w:


1. Wo rkflo w -> Create -> Give name wf_decisio n_task_example -> Click o k.
2. Drag s_m_filter_example and S_M_TOTAL_SAL_EXAMPLE to wo rkspace
and link bo th o f them to START task.
3. Click Tasks -> Create -> Select DECISION fro m list. Give name
DECISION_Example. Click Create and then do ne. Link DECISION_Example
to bo th s_m_filter_example and S_M_TOTAL_SAL_EXAMPLE.
4. Right click DECISION_Example-> EDIT -> GENERAL tab.
5. Set Treat Input Links As to OR. Default is AND. Apply and click OK.
6 . No w edit decisio n task again and go to PROPERTIES Tab. Open the
Expressio n edito r by clicking the VALUE sectio n o f Decisio n Name attribute
and enter the fo llo wing co nditio n: $S_M_FILTER_EXAMPLE.Status =
SUCCEEDED OR $S_M_TOTAL_SAL_EXAMPLE.Status = SUCCEEDED
7. Validate the co nditio n -> Click Apply -> OK.
8 . Drag co mmand task and S_m_sample_mapping_EMP task to wo rkspace
and link them to DECISION_Example task.
9 . Do uble

click

link

between

S_m_sample_mapping_EMP

&

DECISION_Example & give the co nditio n: $DECISION_Example.Co nditio n


= 0 . Validate & click OK.
10 . Do uble click link between Co mmand task and DECISION_Example and
give the co nditio n: $DECISION_Example.Co nditio n = 1. Validate and click
OK.
11. Wo rkflo w Validate and repo sito ry Save.
12. Run wo rkflo w and see the result.

PDFmyURL.com

CONT ROL TASK


We can use the Co ntro l task to sto p, abo rt, o r fail the to p-level wo rkflo w o r
the parent wo rkflo w based o n an input link co nditio n.
A parent wo rkflo w o r wo rklet is the wo rkflo w o r wo rklet that co ntains the
Co ntro l task.
We give the co nditio n to the link co nnected to Co ntro l Task.
Co nt ro l Opt io n

De script io n

Fail Me

Fails the co ntro l task.

Fail Parent

Marks the status o f the WF o r wo rklet that co ntains the


Co ntro l task as failed.

Sto p Parent

Sto ps the WF o r wo rklet that co ntains the Co ntro l task.

Abo rt Parent

Abo rts the WF o r wo rklet that co ntains the Co ntro l task.

Fail To p-Level WF

Fails the wo rkflo w that is running.

Sto p To p-Level WF

Sto ps the wo rkflo w that is running.

Abo rt To p-Level WF

Abo rts the wo rkflo w that is running.

Exam ple : Drag any 3 sessio ns and if anyo ne fails, then Abo rt the to p level
wo rkflo w.
St e ps f o r cre at ing wo rkf lo w:
1. Wo rkflo w -> Create -> Give name wf_co ntro l_task_example -> Click o k.
2. Drag any 3 sessio ns to wo rkspace and link all o f them to START task.
3. Click Tasks -> Create -> Select CONTROL fro m list. Give name cntr_task.
4. Click Create and then do ne.
5. Link all sessio ns to the co ntro l task cntr_task.
6 . Do uble

click

link

s_m_filter_example

between
and

cntr_task

and

give

any
the

sessio n

say

co nditio n:

$S_M_FILTER_EXAMPLE.Status = SUCCEEDED.
PDFmyURL.com

7. Repeat abo ve step fo r remaining 2 sessio ns also .


8 . Right click cntr_task-> EDIT -> GENERAL tab. Set Treat Input Links As to
OR. Default is AND.
9 . Go to PROPERTIES tab o f cntr_task and select the value Fail to p level
10 . Wo rkflo w fo r Co ntro l Optio n. Click Apply and OK.
11. Wo rkflo w Validate and repo sito ry Save.
12. Run wo rkflo w and see the result.

ASSIGNMENT TASK
The Assignment task allo ws us to assign a value to a user-defined
wo rkflo w variable.
See Wo rkflo w variable to pic to add user defined variables.
To use an Assignment task in the wo rkflo w, first create and add the
Assignment task to the wo rkflo w. Then co nfigure the Assignment task to
assign values o r expressio ns to user-defined variables.
We canno t assign values to pre-defined wo rkflo w.
St e ps t o cre at e Assignm e nt Task:
Share

1. Open any wo rkflo w where we want to use Assignment task.


2. Edit Wo rkflo w and add user defined variables.
3. Cho o se Tasks-Create. Select Assignment Task fo r the task type.

Twe e t

4. Enter a name fo r the Assignment task. Click Create. Then click Do ne.
5. Do uble-click the Assignment task to o pen the Edit Task dialo g bo x.
6 . On the Expressio ns tab, click Add to add an assignment.
PDFmyURL.com

7. Click the Open butto n in the User Defined Variables field.


Sub mit

8 . Select the variable fo r which yo u want to assign a value. Click OK.


9 . Click the Edit butto n in the Expressio n field to o pen the Expressio n Edito r.
10 . Enter the value o r expressio n yo u want to assign.
11. Repeat steps 7-10 to add mo re variable assignments as necessary.
12. Click OK.

Reactio ns:

G e t th i s

You can follow any responses to this entry through the RSS 2.0 feed. You can leave
a response.

0 Responses
Le ave a R e p ly

Enter your comment...

Comment as:
Publish

Preview

Links to this post


PDFmyURL.com

Create a Link

Previous Entries

Next Entries

Recent Comments
2009 - Complete reference to Informatica is proudly brought to you by Naveen

PDFmyURL.com

Das könnte Ihnen auch gefallen