1 of 1 people found this helpful
The primary, standard way of sharing execution data between steps is
As the method name implies, the data will be transient and not persistenced to the job repository, nor will it be propagated to partitions of a partitioned execution.
javax.batch.runtime.context.StepContext supports both transient and persistent user data, but it's intended for step, though it's still possible to query it from other steps.
JBeret also supports various CDI scoped beans for sharing job execution data:
You can annotate your CDI bean with one of the above scope, and inject it where it's needed.
See example: jsr352/Foo.java at master · jberet/jsr352 · GitHub