Application to access batch jobs/executions/steps including properties

112 Views Asked by At

While I have some JSR-352 based batch jobs running in Wildfly, from my frontend application I'd like to show/manage some of the batch jobs. While I am able to display the most recent executions and even their steps, I seem to be unable to access the job's or step's properties. Access to them seems only granted through @BatchProperty, which will only work if accessed from within the job.

However my UI sits outside, and I simply see no hint how that can be accomplished. What may I be missing?

1

There are 1 best solutions below

2
On BEST ANSWER

Batch API (JSR 352) exposes job and step execution data to a client program, and it does not include batch job and step definition data. The job and step properties are part of the definition data declared in job xml files and thus are not directly exposed. If the client program needs it, you can save them to other part of the application that makes them available to the UI.