Six Stars

Why routine does not give impact analysis even if routine is used in talend job, But some routine are giving impact analysis??

 

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:

JobCapture.PNG

Step 4:

Output:Capture.PNG

 

Step 5:

Impact analysis:

Capture.PNG

Step 6:

Analysis ReportCapture.PNG

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Fifteen Stars

Re: Why routine does not give impact analysis even if routine is used in talend job, But some routine are giving impact analysis??

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?

Rilhia Solutions
2 REPLIES
Fifteen Stars

Re: Why routine does not give impact analysis even if routine is used in talend job, But some routine are giving impact analysis??

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?

Rilhia Solutions
Six Stars

Re: Why routine does not give impact analysis even if routine is used in talend job, But some routine are giving impact analysis??

@rhall_2_0your 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