It is possible to use a Joblet as a step in a procedure. You can start a Joblet, or a subJob after the execution of a Joblet, using the Trigger Input and Trigger Output components from the Palette. In this example, the created Joblet is called Transformation.
Drag the Trigger Input component from the Palette and drop it above your Joblet.
Right-click Trigger Input and select a link of the type Trigger > OnSubjobOk so that your Joblet starts after the execution of the first subJob.
Drag the Trigger Output component from the Palette and drop it below the Joblet.
Right-click the input component of the Joblet and select a link of the type Trigger > OnSubjobOk so that your third subJob starts after the execution of your Joblet, Transformation.
To use this Joblet in a Job:
Create a new Job.
From the Repository tree view, click the created Joblet (Transformation) and drop it in the Job.
Drop a tFileOutputDelimited component next to the Joblet component, drop a tWarn component above the Joblet component, and drop a tMsgBox component below the Joblet component.
Right-click the Joblet component and then select the Row > Joblet OUTPUT_1 link and click tFileOutputDelimited.
Double-click tFileOutputDelimited to display its basic settings and then define the path to the folder and file to be created in the File Name field.
Drag and drop a tWarn component from the Logs & Errors family over the Joblet component.
Right-click this component and select the link of the type Trigger > On Subjob Ok (TRIGGER_INPUT_1) and then click the Joblet component.
Double-click the component that represents the Joblet to display its basic settings view.
In the Joblet TRIGGER_INPUT_1 field, the link type defined in the Joblet is read-only.
If you use many Triggers Input components in the Joblet and corresponding launching components in the Job, verify that the right component is attached with the right launching link in the Attached node field of the Basic settings view.
From the Version list, select the Joblet version you want to use in your Job. In this example, we use the latest version of the Joblet.
Drag and drop a tMsgBox from the Misc family under the Joblet component.
Right-click the Joblet component and select the link Trigger > On Subjob Ok (TRIGGER_OUTPUT_1).
The tWarn component sends a warning massage and launches the next subJob holding the Joblet you created: Transformation. Once the second subJob is successfully executed, it launches a third subJob holding the tMsgBox component indicating at the same time that the transformation has been carried out.