Announcement Announcement Module
Collapse
No announcement yet.
Accessing JobExecution in Validator Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Accessing JobExecution in Validator

    Hi Guys,

    Is it possible to get the current executing instance of the JobExecution from a validator (i.e. Validator extends DefaultJobParametersValidator)? If so, can you guys help me out by citing some examples?

    I would like to access the JobExecution from the Context; so that whenever an exception is thrown during the validation process of the JobParameters. (i.e. JobParametersInvalidException), a specific exit code is returned to the scheduler (shell script).

    I am currently using a class that implements the ExitCodeMapper to define my own exit codes and status code.

    Thanks!

  • #2
    JobParameters are usually validated before the JobExecution is created. What is it you need from there?

    Comment

    Working...
    X