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">
90 <!-- Transitions TO the "project" state -->
91 <transition name="unreplicate" destinationState="project">
92 <description>Unreplicate the document back to project state.</description>
94 <transition name="undelete" destinationState="project">
95 <description>Undelete the document to the project state.</description>
98 <!-- Transitions FROM "project" state TO the "replicated" and the "deleted" states -->
99 <transition name="replicate" destinationState="replicated">
100 <description>Replicate a document from the project state</description>
102 <transition name="delete" destinationState="deleted">
103 <description>Soft-delete the document from the project state</description>
107 Notice the convention used in the transition names below. {transition-verb)_{lifecycle-state} -e.g., delete_replicated, replicate_deleted
108 This convention is critical to the code here: org.collectionspace.services.client.AuthorityClient.AuthorityItemDocumentModelHandler
111 <!-- Transitions TO "replicated_deleted" state -->
112 <transition name="delete_replicated" destinationState="replicated_deleted">
113 <description>Delete the replicated document from the "replicated" state</description>
115 <transition name="replicate_deleted" destinationState="replicated_deleted">
116 <description>Replicate the deleted document from the "deleted" state.</description>
119 <!-- Transitions FROM "replicated_deleted" state -->
120 <transition name="undelete_replicated" destinationState="replicated">
121 <description>Undelete the replicated document from replicated_deleted state</description>
123 <transition name="unreplicate_deleted" destinationState="deleted">
124 <description>Unreplicate the deleted document.</description>
130 <state name="project" description="Default state" initial="true">
132 <transition>delete</transition>
133 <!-- To "deleted" state -->
134 <transition>replicate</transition>
135 <!-- To "replicated" state -->
138 <state name="replicated" description="Replicated state">
139 <transition>unreplicate</transition>
140 <!-- To "project" state -->
141 <transition>delete_replicated</transition>
142 <!-- To "replicated_deleted" state -->
144 <state name="deleted" description="Document is deleted">
146 <transition>undelete</transition>
147 <!-- To "project" state -->
148 <transition>replicate_deleted</transition>
149 <!-- To "replicated_deleted" state -->
152 <state name="replicated_deleted" description="Document is replicated and deleted">
154 <transition>unreplicate_deleted</transition>
155 <!-- To "deleted" state -->
156 <transition>undelete_replicated</transition>
157 <!-- To "replicated" state -->