• Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » [resolved] Ending Execution or modifying execution path based on a criteria

#1 2011-06-20 09:50:19

RaviKamalendiran
New member
Registered: 2011-06-20
Posts: 3

[resolved] Ending Execution or modifying execution path based on a criteria

Hi All

In the attached emage, i am executing jobs within a job. Is there any way where i can end the execution based on a criteria or alter the path of execution based on a criteria?

Thanks
Ravi


Uploaded Images

Offline

#2 2011-06-20 11:27:23

shong
Talend team
Registered: 2007-08-29
Posts: 10310
Website

Re: [resolved] Ending Execution or modifying execution path based on a criteria

Hi
What's the data action on tOracleOutput? The global variables like ((Integer)globalMap.get("tOracleOutput_1_NB_LINE_INSERTED")) which counts the number of inserted lines. You can fires other sub jobs depends on its values. For exmaple:
...retrieve studio to data process...
    |
onsujobok
    |
tOracleRow
    |
onsubjobok
   |
tJava--runIf--tRunJob

on tJava:
if(((Integer)globalMap.get("tOracleOutput_1_NB_LINE_INSERTED"))>1){
globalMap.put("isContinue",true);
}else{
globalMap.put("isContinue",false);
}

set the condition of runIf:
(Boolean)globalMap.get("isContinue")

Best regards
Shong


Email:shong@talend.com
Choose Talend, Enjoy Talend!
New & Event: Talend Help Center
Talend-->the leader of open source data management and application integration solutions!

Offline

#3 2011-06-20 12:26:00

RaviKamalendiran
New member
Registered: 2011-06-20
Posts: 3

Re: [resolved] Ending Execution or modifying execution path based on a criteria

Hi Shong,

I am still not an advance user of Talend. Would there be a webcast of this or some thing in more detail that i could go through?
Advance Thanks for this Shong.

Thanks
Ravi

Offline

#4 2011-06-20 16:00:03

RaviKamalendiran
New member
Registered: 2011-06-20
Posts: 3

Re: [resolved] Ending Execution or modifying execution path based on a criteria

Hi Shong

Finally I have understood what you were saying. Thanks for that as it works fine

Thanks,
Ravi

Offline

  • Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » [resolved] Ending Execution or modifying execution path based on a criteria

Board footer

Powered by FluxBB