One Star

Problem with routine and importing jobs namespace

Hi there,
I'm facing a problem... and i don't understand why... :/
I've got a custom subroutine using a rowStruct from a job. The subroutine worked but not and I realize that I was doing the import is no longer recognized... and i don't how can i solve it.
3 REPLIES
Community Manager

Re: Problem with routine and importing jobs namespace

Hi
Right click on the routine name and select 'Edit Routine libraries' item, check that the external jar is there or not.
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: Problem with routine and importing jobs namespace

Thanks for your response.
Yes sure, but in fact, the problem is not due to an external library...
I'm trying to write a routine with a row as parameter. But the row is not recognized in the routine...
Sebastien
Community Manager

Re: Problem with routine and importing jobs namespace

Hi
I don't understand why you need a row as parameter? rowStruct is an inner class in the generated code of a job and can't be recognized out of the job. Just define the input parameters with general data type if you want to access the data of a data flow, for example:
tFileInputDelimited--row1---tJavaRow
on tJavaRow, call a routine like:
String s=MyRoutineName.methodName(input_row.c1 input_row.c2);

//c1, c2 is the column name of row1
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business