Announcement Announcement Module
Collapse
No announcement yet.
Configure the ItemProcessListener based on job parameters Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Configure the ItemProcessListener based on job parameters

    Hi All,
    I have simple job with reader, processor and writer. While lauching the job we will set the job parameter called OnlineDay with value 0 or 1. If the OnlineDay=1, we need to add the ItemProcessListener for validate the each Item. If the OnlineDay=0, no need for the business validation.

    Note: This job will process more than a million of records.

    Question:
    Can we add the ItemProcessorListener based on the job parameters?

    Thanks for your reply in advance.

  • #2
    Hi,

    Instead of enabling or disabling the ItemProcessor , set the OnlineDay value as property to the ItemProcessor. Based on the Onlineday value in the ItemProcessor either validate or not validate. I think this is simple approach.

    Thanks

    Comment

    Working...
    X