Hitachi Vantara Pentaho Community Forums
Results 1 to 3 of 3

Thread: Can you set return code for child job to pass back to parent job

  1. #1
    Join Date
    Aug 2011
    Posts
    236

    Question Can you set return code for child job to pass back to parent job

    Hi,

    I have a parent/child job setup.

    I want to set a return code in the child job (based on a certain condition from polling for successfuly execution of a command) so that the parent job will recognise a failure and take the necessary path.

    See picture for issue.Name:  pdi_120711.jpg
Views: 65
Size:  14.0 KBName:  pdi_120711.jpg
Views: 65
Size:  14.0 KB

    I am using PID 4.1

    Thanks,

  2. #2
    Join Date
    Sep 2009
    Posts
    810

    Default

    Hey there,

    you could set a variable and check for it in the parent job, but the more direct approach would be to use the abort step to fail the job, no? The parent would then simply use a green/red arrow to handle each case.

    Cheers
    Slawo

  3. #3
    Join Date
    Aug 2011
    Posts
    236

    Default

    Slawo,

    Thanks - that should work.

    Appreciate your help.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.