Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Step 1:
Routine Code
package routines; public class UnknowRoutine { private int myUnknowId; public UnknowRoutine(){} public int getMyUnknowId() { return myUnknowId; } public void setMyUnknowId(int myId) { this.myUnknowId = myId; } public String toString(){ return Integer.toString(myUnknowId); } }
Step 2:
tJava Code
UnknowRoutine unknowRoutine = new UnknowRoutine(); unknowRoutine.setMyUnknowId(1); System.out.println(unknowRoutine.toString());
Advance settings
import routines.UnknowRoutine;
Step 3:
Job
Step 4:
Output:
Step 5:
Impact analysis:
Step 6:
Analysis Report
This is a weird one. If you right click on your job (when it is not open) and go to Setup Routine Dependencies, you will either see your routine listed (in jobs which are found by the analysis tool) or not listed (in jobs which are not found by the analysis tool). You can set these manually.
I believe this might be a bug in Talend. It seems that if you export a job with routines, when you import it, the import will link the routines in the Setup Routine Dependencies option for you. However it doesn't automatically set the relationship when you first use a routine in a job. This doesn't affect usage, but it can be confusing.
I have for a while used a Talend job to analyse my job's source files to see what is used where. I therefore I haven't relied on this. Maybe @shong could investigate if this is indeed a bug?
This is a weird one. If you right click on your job (when it is not open) and go to Setup Routine Dependencies, you will either see your routine listed (in jobs which are found by the analysis tool) or not listed (in jobs which are not found by the analysis tool). You can set these manually.
I believe this might be a bug in Talend. It seems that if you export a job with routines, when you import it, the import will link the routines in the Setup Routine Dependencies option for you. However it doesn't automatically set the relationship when you first use a routine in a job. This doesn't affect usage, but it can be confusing.
I have for a while used a Talend job to analyse my job's source files to see what is used where. I therefore I haven't relied on this. Maybe @shong could investigate if this is indeed a bug?
@rhallyour right sometimes job is not listing routine in Setup Routine Dependencies automatically. When i add routine in Setup Routine Dependencies it is working fine. Thanks