Skip to main content Skip to complementary content

Creating a child Job to get a value from a parent Job

Procedure

  1. Create a Standard Job called ChildJob.
  2. Open the Context view to define two context variables, name and scope.

    These variables are used to pass a value from the parent Job to the child Job.

  3. Add a tJava component from the Palette to the Job editor and double-click the component to open its Basic settings.
  4. In the Code area, type in the following Java code.
    String message="Hello "+context.name+", you get "+context.scope+" points in this exam!";
    System.out.println(message);
  5. Press Ctrl+S to save your Job.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!