O'Reilly logo

Talend Open Studio Cookbook by Rick Barton

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Returning codes from a child job without tDie

In this recipe we will show how return codes can be set in a child job and used in a parent, without having to kill the child process.

Getting ready

Open the job jo_cook_ch11_0060_childReturnCodesNoDie. This job is the end state of the previous recipe.

How to do it…

The first thing we need to do is add the return code value to a buffer for the parent job to pick up.

Buffering the return code

  1. Open task_1 and replace the tDie component with a tFixedFlowInput component.
  2. Add an Integer column to the tFixedFlowInput component called returnCode.
  3. Set the value to 4.
  4. Add a tBufferOutput component and add a flow from the tFixedFlowInput component to it.

    Capturing and storing the return code in the parent

  5. Return to the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required