on 11-17-2022 3:09 PM
Hi,
I would like to make a precondition for a system_mail_send inside a chain whether it should run or skip. The expression I would like is to check whether the data inside a spool have "Failed" word. if there is, the Error notification system mail send will run and if there is none, it will skip.
Hi,
Hardly any scripting required.
Perform a search similar to the above, you might want to change the Filename for the search.
Now, you need to specify a precondition in the chain, getJobReturnCode wants <step_name>, Job <job_number_in_step>, here first job of step named Step 2 - I set the return code to 123 above in the file search when Failed is found, here, I need to compare that it is 123 in the precondition:
=JobChainParameters.getJobReturnCode('Step 2, Job 1') == 123
Hope this helps!
Best regards,
HP
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.