on 07-10-2022 6:18 PM
Hello Blob,
I want to map V_KeyDate parameter for all the jobs from Step2 to the parent Job chain.
Not sure what about argument JobDefinitionParameter newSourceJobDefinitionParameter.Is there any other method do I have to use in order to map the parameter.
Can you please provide the pointer.
JobChainCallInReferenceParameter jccirp = jccall.createJobChainCallInReferenceParameter();
jccirp.setSourceJobDefinitionParameter(JobDefinitionParameter newSourceJobDefinitionParameter)
Hello,
In the source jobdefinitionparameter you pass in the V_KeyDate parameter that is on the chain. You will also need to set the LocalJobDefinitionParameter, that is the parameter you map to on the call, which you can get dynamically via jccirp.getJobDefinition().getJobDefinitionParameterByName('local parameter name')
Regards Gerben
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Gerben,
Thank you for the pointer. Now it's working as expected. putting sample code here so people can refer.
JobChainCallInReferenceParameter jccirp = jccall.createJobChainCallInReferenceParameter();
jccirp.setSourceJobDefinitionParameter(jd.getJobDefinitionParameterByName("V_KeyDate"));
jccirp.setLocalJobDefinitionParameter(jccall.getJobDefinition().getJobDefinitionParameterByName("V_KeyDate"));
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.