Results 1 to 4 of 4

Thread: Getting JobParameters

  1. #1
    Join Date
    Apr 2010
    Posts
    20

    Default Getting JobParameters

    First, I am new to SpringBatch.

    I have a requirement that at runtime; I want the ability to find the Available Jobs and the Job Parameters for the Job. I see how I can get the Available Jobs from the JobOperator and JobLocator interfaces. What I can not figure out is how do I get the List of JobParameters for a Job. This requirement is pre-JobInstance creation.

    Is this possible? Is there a way to figure out what the JobParameters are based on just a Job?

  2. #2

    Default

    Quote Originally Posted by pminearo View Post
    First, I am new to SpringBatch.

    I have a requirement that at runtime; I want the ability to find the Available Jobs and the Job Parameters for the Job. I see how I can get the Available Jobs from the JobOperator and JobLocator interfaces. What I can not figure out is how do I get the List of JobParameters for a Job. This requirement is pre-JobInstance creation.

    Is this possible? Is there a way to figure out what the JobParameters are based on just a Job?
    No, it's not. We ended up building our own job metadata with a registry where we use the name of the job as the id in the registry. Once we have that we have extended the Jobloader a bit to provide additional features. For instance, we can define the list of parameters and specify if a parameter is mandatory or its default value.

  3. #3
    Join Date
    Apr 2010
    Posts
    20

    Default

    Thanks! Sounds like this should be a feature add.

  4. #4

    Default

    Quote Originally Posted by pminearo View Post
    Thanks! Sounds like this should be a feature add.
    I think so too. Creating an issue in Jira with your request would be a first step. Please add a link to this thread in it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •