]> git.argeo.org Git - gpl/argeo-slc.git/blob - runtime/org.argeo.slc.support.castor/src/main/resources/org/argeo/slc/castor/process.xml
a8568e0b9ccb5bf26170103f620b813ba2a11a6a
[gpl/argeo-slc.git] / runtime / org.argeo.slc.support.castor / src / main / resources / org / argeo / slc / castor / process.xml
1 <?xml version="1.0"?>
2 <!--
3
4 Copyright (C) 2010 Mathieu Baudier <mbaudier@argeo.org>
5
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
9
10 http://www.apache.org/licenses/LICENSE-2.0
11
12 Unless required by applicable law or agreed to in writing, software
13 distributed under the License is distributed on an "AS IS" BASIS,
14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 See the License for the specific language governing permissions and
16 limitations under the License.
17
18 -->
19
20
21 <!DOCTYPE mapping PUBLIC "-//EXOLAB/Castor Mapping DTD Version 1.0//EN" "http://castor.org/mapping.dtd">
22
23 <mapping>
24 <description>Process objects XML mapping</description>
25
26 <class name="org.argeo.slc.process.SlcExecution">
27 <map-to ns-uri="http://argeo.org/projects/slc/schemas"
28 ns-prefix="slc" />
29 <field name="uuid" identity="true">
30 <bind-xml node="attribute" />
31 </field>
32 <field name="status" />
33 <field name="type" />
34 <field name="host" />
35 <field name="user" />
36 <field name="realizedFlows" collection="arraylist"
37 type="org.argeo.slc.process.RealizedFlow">
38 <bind-xml auto-naming="deriveByClass" location="realized-flows" />
39 </field>
40 <field name="steps" collection="arraylist"
41 type="org.argeo.slc.process.SlcExecutionStep">
42 <bind-xml auto-naming="deriveByClass" location="steps" />
43 </field>
44 <field name="attributes" collection="map">
45 <bind-xml name="attribute" location="attributes">
46 <class name="org.exolab.castor.mapping.MapItem">
47 <map-to ns-uri="http://argeo.org/projects/slc/schemas"
48 ns-prefix="slc" />
49 <field name="key" type="string">
50 <bind-xml name="name" node="attribute" />
51 </field>
52 <field name="value" type="string">
53 <bind-xml node="text" />
54 </field>
55 </class>
56 </bind-xml>
57 </field>
58 </class>
59
60 <class name="org.argeo.slc.process.RealizedFlow">
61 <map-to ns-uri="http://argeo.org/projects/slc/schemas"
62 ns-prefix="slc" />
63 <field name="moduleName"/>
64 <field name="moduleVersion" />
65 <field name="flowDescriptor">
66 <bind-xml auto-naming="deriveByClass" />
67 </field>
68 <field name="executionSpec">
69 <bind-xml auto-naming="deriveByClass" />
70 </field>
71 </class>
72
73 <class name="org.argeo.slc.process.SlcExecutionStep">
74 <map-to ns-uri="http://argeo.org/projects/slc/schemas"
75 ns-prefix="slc" />
76 <field name="uuid" identity="true">
77 <bind-xml node="attribute" />
78 </field>
79 <field name="type" />
80 <field name="begin" />
81 <field name="logLines" collection="arraylist" type="string">
82 <bind-xml name="log-line" location="log-lines" />
83 </field>
84 </class>
85
86 </mapping>