]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - runtime/org.argeo.slc.support.castor/src/main/resources/org/argeo/slc/castor/process.xml
Introduce SlcExecutionSpec
[gpl/argeo-slc.git] / runtime / org.argeo.slc.support.castor / src / main / resources / org / argeo / slc / castor / process.xml
index 5cb7ccd5815306c4c2bb46f8ac4ad1cfcdf9f0fb..be807ff0f2302987d03513af18c59a122320aab8 100644 (file)
@@ -22,8 +22,8 @@
                <field name="attributes" collection="map">\r
                        <bind-xml name="attribute" location="attributes">\r
                                <class name="org.exolab.castor.mapping.MapItem">\r
-                                       <map-to\r
-                                               ns-uri="http://argeo.org/projects/slc/schemas" ns-prefix="slc" />\r
+                                       <map-to ns-uri="http://argeo.org/projects/slc/schemas"\r
+                                               ns-prefix="slc" />\r
                                        <field name="key" type="string">\r
                                                <bind-xml name="name" node="attribute" />\r
                                        </field>\r
                        <bind-xml name="log-line" location="log-lines" />\r
                </field>\r
        </class>\r
-       \r
+\r
+       <class name="org.argeo.slc.process.SlcExecutionSpec">\r
+               <map-to ns-uri="http://argeo.org/projects/slc/schemas"\r
+                       ns-prefix="slc" />\r
+               <field name="executionSpecFields" collection="map">\r
+                       <bind-xml name="execution-spec-field" location="execution-spec-fields">\r
+                               <class name="org.exolab.castor.mapping.MapItem">\r
+                                       <map-to ns-uri="http://argeo.org/projects/slc/schemas"\r
+                                               ns-prefix="slc" />\r
+                                       <field name="key" type="string">\r
+                                               <bind-xml name="name" node="attribute" />\r
+                                       </field>\r
+                                       <field name="value" type="org.argeo.slc.process.SlcExecutionSpecField">\r
+                                               <bind-xml auto-naming="deriveByClass" />\r
+                                       </field>\r
+                               </class>\r
+                       </bind-xml>\r
+               </field>\r
+       </class>\r
+\r
+       <class name="org.argeo.slc.process.SlcExecutionSpecField">\r
+               <map-to ns-uri="http://argeo.org/projects/slc/schemas"\r
+                       ns-prefix="slc" />\r
+               <field name="label" />\r
+               <field name="type" />\r
+               <field name="defaultValue" />\r
+               <field name="listValues" />\r
+       </class>\r
+\r
 </mapping>
\ No newline at end of file