]> 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 H
[gpl/argeo-slc.git] / runtime / org.argeo.slc.support.castor / src / main / resources / org / argeo / slc / castor / process.xml
index be807ff0f2302987d03513af18c59a122320aab8..beede5ed208d3e108b09a7e1c2d1e1990588db42 100644 (file)
@@ -1,4 +1,22 @@
 <?xml version="1.0"?>\r
+<!--\r
+\r
+    Copyright (C) 2010 Mathieu Baudier <mbaudier@argeo.org>\r
+\r
+    Licensed under the Apache License, Version 2.0 (the "License");\r
+    you may not use this file except in compliance with the License.\r
+    You may obtain a copy of the License at\r
+\r
+            http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+    Unless required by applicable law or agreed to in writing, software\r
+    distributed under the License is distributed on an "AS IS" BASIS,\r
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+    See the License for the specific language governing permissions and\r
+    limitations under the License.\r
+\r
+-->\r
+\r
 \r
 <!DOCTYPE mapping PUBLIC "-//EXOLAB/Castor Mapping DTD Version 1.0//EN" "http://castor.org/mapping.dtd">\r
 \r
                <field name="type" />\r
                <field name="host" />\r
                <field name="user" />\r
+               <field name="realizedFlows" collection="arraylist"\r
+                       type="org.argeo.slc.process.RealizedFlow">\r
+                       <bind-xml auto-naming="deriveByClass" location="realized-flows" />\r
+               </field>\r
                <field name="steps" collection="arraylist"\r
                        type="org.argeo.slc.process.SlcExecutionStep">\r
                        <bind-xml auto-naming="deriveByClass" location="steps" />\r
                </field>\r
        </class>\r
 \r
-       <class name="org.argeo.slc.process.SlcExecutionStep">\r
+       <class name="org.argeo.slc.process.RealizedFlow">\r
                <map-to ns-uri="http://argeo.org/projects/slc/schemas"\r
                        ns-prefix="slc" />\r
-               <field name="uuid" identity="true">\r
-                       <bind-xml node="attribute" />\r
+               <field name="moduleName"/>\r
+               <field name="moduleVersion" />\r
+               <field name="flowDescriptor">\r
+                       <bind-xml auto-naming="deriveByClass" />\r
                </field>\r
-               <field name="type" />\r
-               <field name="begin" />\r
-               <field name="logLines" collection="arraylist" type="string">\r
-                       <bind-xml name="log-line" location="log-lines" />\r
+               <field name="executionSpec">\r
+                       <bind-xml auto-naming="deriveByClass" />\r
                </field>\r
        </class>\r
 \r
-       <class name="org.argeo.slc.process.SlcExecutionSpec">\r
+       <class name="org.argeo.slc.process.SlcExecutionStep">\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 name="uuid" identity="true">\r
+                       <bind-xml node="attribute" />\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
+               <field name="thread" />\r
+               <field name="timestamp" />\r
+               <field name="logLines" collection="arraylist" type="string">\r
+                       <bind-xml name="log-line" location="log-lines" />\r
+               </field>\r
        </class>\r
 \r
 </mapping>
\ No newline at end of file