title: How to get Job Parameter?
body: <p>I am using Spring Batch version 2.1.8. The job context shown as below:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;job id="job1" restartable="true"  &gt;
      &lt;step id="step1"&gt;
          &lt;tasklet&gt;
              &lt;chunk reader="reader" writer="writter" processor="processor"
                  commit-interval="1" /&gt;
          &lt;/tasklet&gt;
      &lt;/step&gt;
      &lt;validator ref="jobParameterValidator"&gt;&lt;/validator&gt; 
  &lt;/job&gt;
  </code></pre>
  
  <p>The <code>jobParamterValidator</code> is to get the file name and do some validation on filename.</p>
  
  <p>So my question is how can I get the <code>fileName</code> at <code>processor="processor"</code>, because want to validate filename with data? Thanks.</p>