Announcement Announcement Module
Collapse
No announcement yet.
acces input parameter from Itemreader, ItemProcessor etc... Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • acces input parameter from Itemreader, ItemProcessor etc...

    Hi,

    Can someone give an example of how to access input parameters from ItemReader, ItemProcessor, or ItemWriter?

    Thank you.

  • #2
    You can do something like the following in your reader, processor, or writer.

    Code:
        @BeforeStep
        public void beforeStep(StepExecution stepExecution)
        {
            String params = (String) stepExecution.getJobExecution().getExecutionContext().get("param1");
        }

    Comment


    • #3
      Thank you.

      Comment

      Working...
      X