Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
In the prejob I wanted to check if the last record has reached. If reached do a soft exit. I do not want to error out. How to achieve this?
In the prejob, read a file which has last processed record id. If the last record record id is the maximum id of that table, create a done file and do a soft exit.
For this I have a if condition which check for equality of last record id and maximum id and it is true call tFileTouch.
From tFileTouch --> OnComponentOk ---> tDie component.
But this tDie exists the job only when the priority is Error.
I wanted a soft exit.
Please assist.
In Die , did you select advance setting "Exit JVM Immediately" ?
if you need exit error code as 1 , add a tPostJob in your job and do not select above setting.
tPostJob -- > tjava
if you need exit error code as 0 , in tDie , set exit code 0.
if you need exit error code as 0 in all the case , add a tPostJob in your job then tjava(as last component of Job) and use expression System.exit(0)
let me know if works