#1 2011-07-08 09:23:10

tAurel
Guest

Create a routine in Java

Hello everybody

I'm creating a component with Talend 4.0.2, and during the process I need to create a routine.

So my question is simple : is there a simple way to create a Talend routine in Java ?
After a lot of try, I haven't found solutions.

Thank you all !


Best regards,
Aurel

#2 2011-07-10 19:56:59

walkerca
Member
Company: Bekwam, Inc.
Registered: 2011-01-12
Posts: 261
Website

Re: Create a routine in Java

These blog posts describe creating Java routines in Talend.

http://bekwam.blogspot.com/2011/02/user … -open.html
http://bekwam.blogspot.com/2011/07/trim … -java.html

This post is the methodology and development environment setup I used for the BRules (from the Exchange) routines.  Test-driven development (TDD) is well suited for routines because routines can be called in many different ways (with nulls, empty strings, etc.) and many unit tests help make sure that all cases continue to work.

http://bekwam.blogspot.com/2011/06/test … -open.html

I do most of the development for BRules in Ecplise, but the TDD post describes a setup that is Open Studio-only.

Good luck.

-Carl

Last edited by walkerca (2011-07-10 19:57:40)


Visit bekwam.blogspot.com for Talend topics and tutorials.  Twitter @bekwaminc for updates.

Offline

#3 2011-07-12 15:48:43

tAurel
Guest

Re: Create a routine in Java

Hello, thanks for your replies !

I know how to fill my routine, but my problem is how create "physicly" the routine.
When you create a routine with "Routine > Create routine", Talend create to files, a .properties file, and a .item file.

So, I need to create those files, but how..?

#4 2011-07-31 12:59:22

melphis
Member
Registered: 2011-04-30
Posts: 12

Re: Create a routine in Java

walkerca's example are good, here are some tips on Talend and how to use java routines in Talend TOS.
http://www.robertomarchetto.com/www/tal … ation_tips
Once defined, the taled Java routines can be used in any Java expression editor, like the fields on tMap or tJavaRow.


Indipendent Business intelligence open source services
www.robertomarchetto.com

Offline

Board footer

Powered by FluxBB