Calling of User-defined routines ?????????????

Nine Stars

Calling of User-defined routines ?????????????

Hi,

I was casually creating few User-defined Routines and i wanted to use the routine what i created.. it so happened that i am not able to call them.. or invoke.. is there any issue from my end.. or is there somethin i am missing .

I am also attaching few screenshots of the same... So pls refer them and pls do help.. 

Thanks in advance.

Tmap_settings and Routines_View.PNGTmap settings and User-Defined Routines ViewUser_defined_Routine.PNGFibonacci series routines...

 

Highlighted
Community Manager

Re: Calling of User-defined routines ?????????????

You should be able to access this one using the following code in a tMap, tJava, tJavaFlex, etc.....

routines.Fibonacci_Series.FibSeries(1,2,3);

FYI you only need the semicolon if you are using it in a tJava, tJavaFlex or tJavaRow. everywhere else you can omit the semicolon.

Nine Stars

Re: Calling of User-defined routines ?????????????

hi @rhall_2_0,

I have a query... for calling user defined routines ...  should i compulsorily use tjava,or any other Custom Code Components.????

How do i call the same in tmap????

Because when i try calling routines in tmap.. i was able to see the initial version of the routine when i first created it...

Can you pls help me on this.

Thanks in advance

Community Manager

Re: Calling of User-defined routines ?????????????

You can call routines practically anywhere. I can't tell you about everywhere, you will need to try it out. In a tMap you can use the code I demonstrated above in a tMap variable (the box in the middle) or in an output table. I am not sure I understand your problem here. If it is that the routines "help" isn't showing you what you expect, I think you might need to work round this by manually writing out your routine as i have shown in the post above.

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Definitive Guide to Data Quality

Create systems and workflow to manage clean data ingestion and data transformation.

Download