-
Feature Request
-
Resolution: Done
-
Trivial
-
1.0.0.Final
-
None
Hello,
My name is Dan and our company has been using Jberet for the last months to increase the performance in various jobs. The result has been very good and we will start to move many jobs in our application to the batch api as soon as possible. To be able to avoid boilerplate code in the JSL files we would really want the JSL inheritance in place but I cant get it to work.
From the GitHub site i assume that this feature isnt in place right now as is says that "Resolve inheritance of job and step and detect cyclic inheritance (deferred in spec to next release)"
Our question is if you think you will implement the JSL inheritance in a near future or is the "(deferred in spec to next release)" referring to the JSR 352 spec?
When I try to test the inheritance in Wildfly final we get the error "A concrete step must contain either a chunk or batchlet type"
These are the example Im running (Taken from https://java.net/downloads/jbatch/JSL-Inheritance-v1.pdf)
-------------------------------------------------------------------------------------
Job.parent.xml
<?xml version="1.0" encoding="UTF-8"?>
<job id="parent1">
<listeners>
<listener ref="StepAuditor"/>
</listeners>
<!-- This job runs step1, then step2 -->
<step id="step1" next="step2">
<batchlet ref="BaseBatchlet"/>
</step>
<step id="step2">
<batchlet ref="BaseBatchlet"/>
</step>
</job>
-------------------------------------------------------------------------------------
Child.parent.xml
<?xml version="1.0" encoding="UTF-8"?>
<job id="job1">
<!-- This job runs s1, then s2 -->
<step id="s1" parent="step1" jsl-name="Job.parent" next="s2"/>
<step id="s2" parent="step2" jsl-name="Job.parent" />
</job>
Thanks in advance in I hope I havent missunderstood anything.
Regards
Dan