Recently a user reported problem with running JBeret-based batch application in WildFly:
JBERET000640 - Wildfly 14 · Issue #117 · jberet/jsr352 · GitHub
The symptom is as follows, but it boils down how to get hold of JobOperator in order to perform various batch job operations:
JBERET000640: A BatchEnvironment implementation could not be found. Please ensure the SPI has been implemented and is on the class path
I think this issue has come up multiple times, and worth copying it here with a summary of solutions:
AbstractJobOperator jobOperator = (AbstractJobOperator) JobOperatorContext.getJobOperatorContext().getJobOperator();
as demonstrated in JBeret test class AbstractIT.
Hope this will help you better develop JBeret-based batch application. See the original jberet github issue #117 for complete details.