I tried throwing the RuntimeException from afterStep of step-1 (so as to terminate the job and not to proceed with step-2). However, this exception gets handled in ItemOrientedStep and continues with the step-2.
May be throwing RuntimeException in the Writer can terminate the job (as per 4.5.3 of the doc...but i need to terminate the job from afterStep, i think)
Why does "stepExecution.setTerminateOnly()" don't work? Do i need completion policy or something?



Reply With Quote