You are not logged in.
Announcement
Unanswered posts
|
Pages: 1
Hello
I create a routine and I would like to use it in tRowGenerator in the function field like the sequence,getRandomDate,replaceSpecialCharForXML routines
the probleme is the routines that I have already created is not referenced in the function routines fields in the tRowGenerator
Could some one can help me?
DN
Offline
You have to use "sequence" method header as a template for your routine. Once the method header follows the template, it will automatically be available in method list of tRowGenerator depending of the column type.
Offline

Hello
You can do this by adding the Talend formatted JavaDoc comments to your method.
Have a look at the existing System Routines for examples.
After development of your routine, you may have to restart Talend Open Studio to see it in the tRowGenerator.
Best Regards,
Michaël.
Offline
mhirt wrote:
After development of your routine, you may have to restart Talend Open Studio to see it in the tRowGenerator.
Having to restart is a bug that should have been corrected, see [Bugtracker, bug 605, fixed] [tRowGenerator] live refresh on user routine
Offline
All
Hello
Here my routines and is still doesn't work event I restart Talend
can you help me to make it work
*********************************************************
package routines;
import java.io.DataInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;
import java.io.FileNotFoundException;
public class ChangeFile{
public static String filebyte(String message)
{
File file = new File(message);
FileInputStream fileInput;
try
{
fileInput = new FileInputStream(file);
InputStream input = new DataInputStream(fileInput);
// int byt;
//while ((byt = input.read()) != -1) {
// System.out.println(byt);
//}
return input.toString();
// System.out.println(input);
}
catch (FileNotFoundException e)
{
// TODO Auto-generated catch block
e.printStackTrace();
return e.toString();
}
//catch (Exception exp){
//
// }
}
}
**************************************************
Offline
Pages: 1