Hi All,
I wanted to pass the multiple attributes from one step to another in a job.
I am able to pass a single variable or multiple attributes by adding code snippet in tasklet
ExecutionContext executionContext = stepExecution.getExecutionContext();
executionContext.put("someKey", "someValue");
executionContext.put("someKey1", "someValue1");
<bean id="promotionListener" class="org.springframework.batch.core.listener.Exe cutionContextPromotionListener" >
<property name="keys" value="someValue"/> // for single value
</bean>
<property name="keys" value="someValue,someValue1"/> // for mutliple values
Is there any way i can pass the excution context key values in the xml at the run time.
Thanks for your help.
Srikanth
I wanted to pass the multiple attributes from one step to another in a job.
I am able to pass a single variable or multiple attributes by adding code snippet in tasklet
ExecutionContext executionContext = stepExecution.getExecutionContext();
executionContext.put("someKey", "someValue");
executionContext.put("someKey1", "someValue1");
<bean id="promotionListener" class="org.springframework.batch.core.listener.Exe cutionContextPromotionListener" >
<property name="keys" value="someValue"/> // for single value
</bean>
<property name="keys" value="someValue,someValue1"/> // for mutliple values
Is there any way i can pass the excution context key values in the xml at the run time.
Thanks for your help.
Srikanth
Comment