2 <component name="org.collectionspace.ecm.platform.default.LifeCycleManagerExtensions">
4 <extension target="org.nuxeo.ecm.core.lifecycle.LifeCycleService" point="types">
6 <type name="CollectionSpaceDocument">default</type>
10 <!-- The definition of the CollectionSpace default lifecycle name "cs_default" -->
11 <extension target="org.nuxeo.ecm.core.lifecycle.LifeCycleService" point="lifecycle">
12 <documentation>CollectionSpace core default life cycle definition.</documentation>
13 <lifecycle name="cs_default" defaultInitial="project">
15 <transition name="delete" destinationState="deleted">
16 <description>Move document to trash (temporary delete)</description>
18 <transition name="undelete" destinationState="project">
19 <description>Undelete the document.</description>
23 <state name="project" description="Default state" initial="true">
25 <transition>delete</transition>
28 <state name="deleted" description="Document is deleted">
30 <transition>undelete</transition>
37 <!-- The definition of the CollectionSpace locking lifecycle name "cs_locking" -->
38 <extension target="org.nuxeo.ecm.core.lifecycle.LifeCycleService" point="lifecycle">
39 <documentation>CollectionSpace "locking" life cycle definition.</documentation>
40 <lifecycle name="cs_locking" defaultInitial="project">
42 <transition name="lock" destinationState="locked">
43 <description>Lock document</description>
45 <transition name="delete" destinationState="deleted">
46 <description>Move document to trash (temporary delete)</description>
48 <transition name="undelete" destinationState="project">
49 <description>Undelete the document.</description>
53 <state name="project" description="Default state" initial="true">
55 <transition>delete</transition>
56 <transition>lock</transition>
59 <state name="locked" description="Locked state">
60 <!-- No transitions allowed from locked state. -->
62 <state name="deleted" description="Document is deleted">
64 <transition>undelete</transition>
72 The definition of the CollectionSpace "Replication" lifecycle named "cs_replicating" for synchronized resources
74 We have 4 states: "project", "replicated", "deleted", and "replicated_deleted".
75 We have 8 transition verbs: "", "", "", "", "", "", "", ""
77 Example state changes:
78 - We can move from state "project" -> (via transition "replicate") to state -> "replicated"
79 - We can move from state "project" -> (via transitions "replicate", "delete_replicated") to state -> "replicated_deleted"
80 - We can move from state "project" -> (via transitions "delete", "replicate_deleted") to state -> "replicated_deleted"
81 - We can move from state "project" -> (via transitions "delete") to state -> "deleted"
83 For more information see this wiki page: https://wiki.collectionspace.org/pages/viewpage.action?pageId=162496564
86 <extension target="org.nuxeo.ecm.core.lifecycle.LifeCycleService" point="lifecycle">
87 <documentation>CollectionSpace "cs_replicating" life cycle definition.</documentation>
88 <lifecycle name="cs_replicating" defaultInitial="project">
91 <!-- State: Project -->
93 <!-- Transitions TO the "project" state -->
94 <transition name="unreplicate" destinationState="project">
95 <description>Unreplicate the document back to project state.</description>
97 <transition name="undeprecate" destinationState="project">
98 <description>Undeprecate the document to the project state.</description>
100 <transition name="undelete" destinationState="project">
101 <description>Undelete the document to the project state.</description>
105 <!-- Transitions FROM "project" state -->
106 <transition name="replicate" destinationState="replicated">
107 <description>Replicate a document from the project state</description>
109 <transition name="deprecate" destinationState="deprecated">
110 <description>Soft-delete the document from the project state</description>
112 <transition name="delete" destinationState="deleted">
113 <description>Soft-delete the document from the project state</description>
117 Notice the convention used in the transition names below. {transition-verb)_{lifecycle-state} -e.g., delete_replicated, replicate_deleted
118 This convention is critical to the code here: org.collectionspace.services.client.AuthorityClient.AuthorityItemDocumentModelHandler
121 <!-- State: replicated_deleted -->
123 <!-- Transitions TO "replicated_deleted" state -->
124 <transition name="replicate_deleted" destinationState="replicated_deleted">
125 <description>Replicate the deleted document from the "deleted" state.</description>
127 <transition name="delete_replicated" destinationState="replicated_deleted">
128 <description>Delete the replicated document from the "replicated" state</description>
131 <!-- Transitions FROM "replicated_deleted" state -->
132 <transition name="unreplicate_deleted" destinationState="deleted">
133 <description>Unreplicate the deleted document.</description>
135 <transition name="undelete_replicated" destinationState="replicated">
136 <description>Undelete the replicated document from replicated_deleted state</description>
139 <!-- State: replicated_deprecated -->
141 <!-- Transitions TO "replicated_deprecated" state -->
142 <transition name="replicate_deprecated" destinationState="replicated_deprecated">
143 <description>Replicate the deprecated document from the "deprecated" state.</description>
145 <transition name="deprecate_replicated" destinationState="replicated_deprecated">
146 <description>Deprecate the replicated document from the "replicated" state</description>
149 <!-- Transitions FROM "replicated_deprecated" state -->
150 <transition name="unreplicate_deprecated" destinationState="deprecated">
151 <description>Unreplicate the deprecated document.</description>
153 <transition name="undeprecate_replicated" destinationState="replicated">
154 <description>Undelete the replicated document from replicated_deleted state</description>
157 <!-- State: deprecated_deleted -->
159 <!-- Transitions TO "deprecated_deleted" state -->
160 <transition name="deprecate_deleted" destinationState="deprecated_deleted">
161 <description>Deprecate the deleted document from the "deleted" state</description>
163 <transition name="delete_deprecated" destinationState="deprecated_deleted">
164 <description>Delete the deprecated document from the "deprecated" state.</description>
167 <!-- Transitions FROM "deprecated_deleted" state -->
168 <transition name="undeprecate_deleted" destinationState="deleted">
169 <description>Undelete the replicated document from deprecated_deleted state</description>
171 <transition name="undelete_deprecated" destinationState="deprecated">
172 <description>Undelete the deprecated document.</description>
175 <!-- State: replicated_deprecated_deleted -->
177 <!-- Transitions TO "replicated_deprecated_deleted" state -->
178 <transition name="replicate_deprecated_deleted" destinationState="replicated_deprecated_deleted">
179 <description>Delete the deprecated document from the "deprecated" state.</description>
181 <transition name="deprecate_replicated_deleted" destinationState="replicated_deprecated_deleted">
182 <description>Deprecate the deleted document from the "deleted" state</description>
184 <transition name="delete_replicated_deprecated" destinationState="replicated_deprecated_deleted">
185 <description>Delete the deprecated document from the "deprecated" state.</description>
188 <!-- Transitions FROM "replicated_deprecated_deleted" state -->
189 <transition name="unreplicate_deprecated_deleted" destinationState="deprecated_deleted">
190 <description>Undelete the deprecated document.</description>
192 <transition name="undeprecate_replicated_deleted" destinationState="replicated_deleted">
193 <description>Undelete the replicated document from deprecated_deleted state</description>
195 <transition name="undelete_replicated_deprecated" destinationState="replicated_deprecated">
196 <description>Undelete the deprecated document.</description>
201 <state name="project" description="Default state" initial="true">
203 <transition>replicate</transition> <!-- To "replicated" state -->
204 <transition>deprecate</transition> <!-- To "deprecated" state -->
205 <transition>delete</transition> <!-- To "deleted" state -->
208 <state name="deleted" description="Document is deleted">
210 <transition>replicate_deleted</transition> <!-- To "replicated_deleted" state -->
211 <transition>deprecate_deleted</transition> <!-- To "deprecated_deleted" state -->
212 <transition>undelete</transition> <!-- To "project" state -->
215 <state name="replicated" description="Replicated state">
217 <transition>unreplicate</transition> <!-- To "project" state -->
218 <transition>deprecate_replicated</transition> <!-- To "replicated_deprecated" state -->
219 <transition>delete_replicated</transition> <!-- To "replicated_deleted" state -->
222 <state name="replicated_deleted" description="Document is replicated and deleted">
224 <transition>unreplicate_deleted</transition> <!-- To "deleted" state -->
225 <transition>deprecate_replicated_deleted</transition> <!-- To "replicated_deprecated_deleted state -->
226 <transition>undelete_replicated</transition> <!-- To "replicated" state -->
229 <state name="replicated_deprecated" description="Document is replicated and deprecated">
231 <transition>unreplicate_deprecated</transition> <!-- To "deprecated" state -->
232 <transition>undeprecate_replicated</transition> <!-- To "replicated" state -->
233 <transition>delete_replicated_deprecated</transition> <!-- To "replicated_deprecated_deleted state -->
236 <state name="replicated_deprecated_deleted" description="Document is replicated, deprecated, and deleted">
238 <transition>unreplicate_deprecated_deleted</transition> <!-- To "deprecated_deleted" state -->
239 <transition>undeprecate_replicated_deleted</transition> <!-- To "replicated_deleted" state -->
240 <transition>undelete_replicated_deprecated</transition> <!-- To "replicated_deprecated" state -->
243 <state name="deprecated" description="Document is deprecated">
245 <transition>replicate_deprecated</transition> <!-- To "replicated_deprecated" state -->
246 <transition>undeprecate</transition> <!-- To "project" state -->
247 <transition>delete_deprecated</transition> <!-- To "deprecated_deleted" state -->
250 <state name="deprecated_deleted" description="Document is deprecated and deleted">
252 <transition>replicate_deprecated_deleted</transition> <!-- To "replicated_deprecated_deleted state -->
253 <transition>undeprecate_deleted</transition> <!-- To "deleted" state -->
254 <transition>undelete_deprecated</transition> <!-- To "deprecated" state -->