-
Task
-
Resolution: Done
-
Major
-
1.3.0.Beta7
-
None
For xml batch job definition file, there is xml schema:
http://xmlns.jcp.org/xml/ns/javaee/jobXML_1_0.xsd
JSON format of batch job definition should be documented similarly, to define the expected structure of such JSON object. An example of a simple JSON job defition:
{ "job": { "id": "simple", "listeners": { "listener": [ { "ref": "L1", "properties": { "property": { "name": "listener-prop", "value": "listener-prop" } } }, { "ref": "L2" } ] }, "step": [ { "id": "simple.step1", "chunk": { "reader": { "ref": "arrayItemReader", "properties": { "merge": "true", "property": [ { "name": "resource", "value": "[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]" }, { "name": "beanType", "value": "java.lang.Integer" } ] } }, "writer": { "ref": "mockItemWriter" } } }, { "id": "step2", "chunk": { "reader": { "ref": "arrayItemReader" }, "writer": { "ref": "mockItemWriter" } } } ], "decision": { "id": "decision1", "ref": "decider2", "next": { "on": "next", "to": "step3" } } } }
- is related to
-
JBERET-396 Support submitting job definition as JSON
- Resolved