July 30, 2023

tParallelize – Docs for ESB 7.x

tParallelize

Manages complex Job systems. It executes several subJobs simultaneously and
synchronizes the execution of a subJob with other subJobs within the main Job.

The tParallelize
synchronizes the execution of a subJob with the execution of other subJobs in your main
Job.

tParallelize Standard properties

These properties are used to configure tParallelize running in the Standard Job
framework.

The Standard
tParallelize component belongs to the Orchestration family.

The component in this framework is available in all subscription-based Talend products.

Basic settings

Wait For

end of first subJob: sequence the
relevant subJob to be executed at the end of the first subJob.

 

end of all subJobs: sequence the relevant
subJob to be executed at the end of all subJobs.

Sleep Duration

Set the time interval in milliseconds between
each check for subJob execution.

Die when one of parallelize subjobs
fails

Select this option to have the Job quitting execution when any
of the subJobs it executes fails.

Global Variables

Global Variables

ERROR_MESSAGE: the error message generated by the
component when an error occurs. This is an After variable and it returns a string. This
variable functions only if the Die on error check box is
cleared, if the component has this check box.

A Flow variable functions during the execution of a component while an After variable
functions after the execution of the component.

To fill up a field or expression with a variable, press Ctrl +
Space
to access the variable list and choose the variable to use from it.

For further information about variables, see
Talend Studio

User Guide.

Usage

Usage rule

This component can be used as either a start or
middle component in a main Job built of numerous subJobs. It can be connected
to preceding or following components using OnSubjobOk, Parallelize or Synchronize links. You can use as many
tParallelize
components as you want in your master Job.

Connections

Outgoing links (from this component to
another):

Trigger: Synchronize;
Parallelize.

Incoming links (from one component to this
one):

Trigger: On Subjob Ok;
On Subjob Error; Run if; On Component Ok; On Component Error.

For further information regarding connections,
see
Talend Studio
User Guide.

Parallelizing/synchronizing subJobs execution

This scenario applies only to subscription-based Talend products.

The following simple scenario creates a five-component main Job that uses one
tParallelize component with four tMsgBox single-component subJobs. The tMsgBox_1 component is the trigger subJob. The tParallelize_1 component executes tMsgBox_2 and tMsgBox_3 simultaneously,
and then synchronizes tMsgBox_4 to be executed at the
end of the simultaneous execution of the subJobs.

  • Drop four tMsgBox components from the Palette
    to the design workspace.

  • Define their dialog box display properties as desired.

For more information on defining tMsgBox properties,
see tMsgBox.

  • Drop a tParallelize component onto the design
    workspace.

  • Connect the tMsgBox_1 component to tParallelize_1 using an OnSubjobOk link, available on the right-click menu. This link
    will trigger the next subJob(s) only if the first subJob has
    completed without error.

  • Connect tParallelize_1 to tMsgBox_2 and tMsgBox_3 using a Parallelize
    link for each, available on the right-click menu.These links will simply
    parallelize the execution of the two connected subJobs.

  • Connect tParallelize_1 to tMsgBox_4 using a Synchronize link to seqeunce the execution of this fourth
    subJob.

tParallelize_1.png
  • Select the tMsgBox_4 and set its Basic settings parameters.

  • On the Basic settings panel of the tParallelize component and from the Wait For list, select either end of first
    subJob
    or end of all subJobs. This will
    sequence your fourth subJob to be executed at the end of the first subJob or at
    the end of all subJobs respectively.

  • In the Sleep Duration field, set the time
    interval in seconds between each check of a subJob execution.

tParallelize_2.png
  • Save your main Job.

  • Click the F6 key to run it.

The four message boxes are displayed according to the defined sequence.

The above was a very simple scenario of what the tParallelize
component can do for you. However, you can parallelize/synchronize far more
complex Jobs with this component whereby each of the subJobs that build the main Job can
execute any possible task processed in
Talend Studio
.


Document get from Talend https://help.talend.com
Thank you for watching.
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x