JobScript - howto create it with API and using repository

hi
is there a way to create jobscript using a Talend API and the repository objects that we define?
thanks,
7 REPLIES
Moderator

Re: JobScript - howto create it with API and using repository

Hi,
More information description will help us understand your requirement very well.
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.

Re: JobScript - howto create it with API and using repository

the jobscript looks like (is) JSON which is interpreted by the engine into a Talend Job and then as a JAVA class.
that is what i understand - let me know if i am wrong.
in a regular Talend project we collect meta-data of all sorts.
Question:
is there an API that i could use to create jobscript files using the project's metadata.
like:
<Java (ish)> .class

private JobScript myjs;
myjs.addComp( new JobScript.DBConn( "DBconnMetaDataName" , "DbConnNameInJob" );
myjs.addComp( new JobScript.DBInput( "DbConnNameInJob", "myDBinput", "MetaDataFromTbl_ABCZ" );
...
probably not - but it is a nice idea Smiley Happy (can i claim authorship?)
Moderator

Re: JobScript - howto create it with API and using repository

Hi,
There is no such an API that you could use to create jobscript files using the project's metadata, but we have the function "import connection from csv" in Talend Enterprise subscription version. Hope it will be helpful for you.
see the screenshot
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.

Re: JobScript - howto create it with API and using repository

thanks,
but i have a project which requires me to load hundreds of files with different metadata.
so i was looking for a way to apply the same pattern
read file (thisDataset) -> load into SQL table (thisDataset)
but i guess we will have to take the regular route.
thanks,
Five Stars

Re: JobScript - howto create it with API and using repository

If you get any solution please post on forum, I am also looking for the same solution but Talend is not giving any information. If we get Code-generator, reference we can generate code for schema, and jobs.

Re: JobScript - howto create it with API and using repository

yep
i guess we will have to work a solution for this!

Re: JobScript - howto create it with API and using repository

another use asking for the same feature - information at least
as this feature is built into Talend
http://www.talendforge.org/forum/viewtopic.php?pid=104251