Search code examples
jobstalendschedule

How to schedule a job in talend


I've got a Talend's project, in the main job some jobs are called, I want to call one of them only if the system time is 14:00. Any idea about how can I do it?

Thanks in advance!


Solution

  • Hay Migua You Can Use RunIf Trigger In Your Job. to execute Your Job Based on Time You Have to

    1. Take One tJava Component in which you have to set current time in globalMap -> globalMap.put("TIME", new Date().getHours());

    2. draw a runif trigger from tJava Component to Your Subjob and write condition in runif -> Integer.parseInt(globalMap.get("TIME").toString())==16 (or whatever You want) tJava --->IF---->Your Subjob or Your Component

    Hope this will help :)