Thank you very much Gerben.
As you said, I tried to refer the Chain level parameter using the below script
Job jc = jcsJob.getParentJob().getParentJob();
String jcparam = jc.getJobParameterByName("JOBCHAINNAME").getInValueString();
JobDefinition aJobDef = jcsSession.getJobDefinitionByName(jcparam);
Job aJob = aJobDef.prepare();
I am getting the below error. Please advise.
Caused by: java.lang.NullPointerException: while trying to invoke the method com.redwood.scheduler.api.model.Job.getParentJob() of a null object returned from com.redwood.scheduler.api.model.Job.getParentJob()
at com.redwood.scheduler.custom.CS_I73_IN_OBEXT_CHECK_FILE_EXIST_AGAIN_09execute(CS_I73_IN_OBEXT_CHECK_FILE_EXIST_AGAIN_09.java:user code 45)
at com.redwood.scheduler.custom.CS_I73_IN_OBEXT_CHECK_FILE_EXIST_AGAIN_09Stub.jcsExecute(CS_I73_IN_OBEXT_CHECK_FILE_EXIST_AGAIN_09Stub.java:24)
... 19 more
Regards,
Lohit