blob: 027eace463d5d8a45511b0ffa83c8d6eb52292d8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
|
<?xml version="1.0"?>
<!--
This file is part of the CRISTAL-iSE kernel.
Copyright (c) 2001-2014 The CRISTAL Consortium. All rights reserved.
This library is free software; you can redistribute it and/or modify it
under the terms of the GNU Lesser General Public License as published
by the Free Software Foundation; either version 3 of the License, or (at
your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; with out even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License
along with this library; if not, write to the Free Software Foundation,
Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
http://www.fsf.org/licensing/licenses/lgpl.html
-->
<mapping>
<class name="com.c2kernel.lifecycle.instance.stateMachine.StateMachine">
<map-to xml="StateMachine" />
<field name="states" type="com.c2kernel.lifecycle.instance.stateMachine.State"
collection="arraylist" direct="false" get-method="getStates" set-method="setStates">
<bind-xml name="State" node="element" />
</field>
<field name="transitions"
type="com.c2kernel.lifecycle.instance.stateMachine.Transition"
collection="arraylist" direct="false">
<bind-xml name="Transition" node="element" />
</field>
<field name="initialStateCode" type="integer">
<bind-xml name="initialState" node="attribute" />
</field>
</class>
<class name="com.c2kernel.lifecycle.instance.stateMachine.State">
<map-to xml="State"/>
<field name="id" type="integer" direct="false">
<bind-xml name="id" node="attribute" />
</field>
<field name="name" type="string" direct="false">
<bind-xml name="name" node="attribute" />
</field>
<field name="finished" type="boolean" direct="false">
<bind-xml name="proceeds" node="attribute" />
</field>
</class>
<class name="com.c2kernel.lifecycle.instance.stateMachine.Transition">
<map-to xml="Transition"/>
<field name="id" type="integer" direct="false">
<bind-xml name="id" node="attribute" />
</field>
<field name="name" type="string" direct="false">
<bind-xml name="name" node="attribute" />
</field>
<field name="originStateId" type="integer" direct="false">
<bind-xml name="origin" node="attribute" />
</field>
<field name="targetStateId" type="integer" direct="false">
<bind-xml name="target" node="attribute" />
</field>
<field name="enabledProp" type="string" direct="false">
<bind-xml name="enablingProperty" node="attribute" />
</field>
<field name="roleOverride" type="string" direct="false">
<bind-xml name="roleOverride" node="attribute" />
</field>
<field name="reservation" type="string" direct="false">
<bind-xml name="reservation" node="attribute" />
</field>
<field name="outcome" type="com.c2kernel.lifecycle.instance.stateMachine.TransitionOutcome" direct="false">
<bind-xml name="Outcome" node="element" />
</field>
<field name="script" type="com.c2kernel.lifecycle.instance.stateMachine.TransitionScript" direct="false">
<bind-xml name="Script" node="element" />
</field>
</class>
<class name="com.c2kernel.lifecycle.instance.stateMachine.TransitionOutcome">
<map-to xml="Outcome"/>
<field name="schemaName" type="string" direct="false">
<bind-xml name="name" node="attribute" />
</field>
<field name="schemaVersion" type="string" direct="false">
<bind-xml name="version" node="attribute" />
</field>
<field name="required" type="boolean" direct="false">
<bind-xml name="required" node="attribute" />
</field>
</class>
<class name="com.c2kernel.lifecycle.instance.stateMachine.TransitionScript">
<map-to xml="Script"/>
<field name="scriptName" type="string" direct="false">
<bind-xml name="name" node="attribute" />
</field>
<field name="scriptVersion" type="string" direct="false">
<bind-xml name="version" node="attribute" />
</field>
</class>
</mapping>
|