on 08-10-2018 2:14 PM
Hello Experts,
I want to pull out all the details of job chain. I have the redwood script but it pull out the details up to step 1 only .
Can someone review the attached script and let me suggest what changes I have to make to get all the details for all the steps of job chain.
Your help will be much appreciated !!
Hi Narayan,
Code seems to be fine for the most part.
On line 21 you initialize List chains to null
List chains;
Then on line 180, you test if list contains a value.
if (!chains.contains(ja.getJobDefinition().getPartition().getName() + "." + ja.getJobDefinition().getName()))
This will trigger a null pointer exception, as soon as a step contains a sub chain.
Instead remove line 6 and 21
And declare the List inside your showChain method, like so
List chains = new ArrayList();
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Bas !!
I have made the changes as you said and its working as expected now.
Thanks Again 🙂
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.