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

  • josephbalane
    started a topic Accessing JobExecution in Validator

    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.


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

    Leave a comment: