Open Studio for Big Data
Open Studio for Data Integration
Open Studio for ESB
You can create your own routines according to your particular factorization needs.
If you have installed the R2021-03 Studio monthly update or a later one provided by
Talend and need to create a
global user routine, right-click and select Create routine from
the contextual menu.
Note that you can create folders under the Global Routines node by right-clicking the node and selecting Create folder. The folders can help you organize global user routines.
- If you have installed the R2021-03 Studio monthly update or a later one provided by Talend and need to create an inner routine within a custom routine jar, right-click the custom routine jar under and select Create routine from the contextual menu.
If you have not installed the R2021-03 Studio monthly update or a
later one provided by Talend,
right-click in the Repository tree view and
select Create routine.
Note that you can create folders under the Routines node by right-clicking the node and selecting Create folder. The folders can help you organize user routines.
In the New routine dialog
box displayed, fill in the generic properties for the new routine, such as Name, Purpose
(optional), and Description (optional).
The information you fill in the Description field will appear as a tooltip when your mouse pointer is moved over the routine in the Repository tree view.
The newly created routine is saved in the Repository tree view. The routine editor opens to reveal a model routine which contains a function sample, by default, comprising descriptive text in blue, followed by the corresponding code.Note: We advise you to add detailed description for each function in the routine. The description should generally include the input and output parameters you would expect to use, as well as the results returned along with an example. This information tends to be useful for collaborative work and the maintenance of the routines.
Modify or replace the function sample with your own code and press
Ctrl+S to save the changes. Otherwise, the
routine is saved automatically when you close the routine editor.
Note: You can copy all or part of the code for a system routine and use it in a user routine by using the Ctrl+C and Ctrl+V commands, then adapt the code according to your needs.