root/org.nuxeo.ecm.core/trunk/nuxeo-core/src/main/resources/OSGI-INF/LifeCycleCoreExtensions.xml

Revision 29782, 3.0 kB (checked in by atchertchian, 2 years ago)

NXP-2001 + NXP-1999 + NXP-1778 : fix life cycle state vs versioning issues (fwd from r29686 + r29687)

  • Property svn:eol-style set to native
Line 
1 <?xml version="1.0"?>
2
3 <component name="org.nuxeo.ecm.core.LifecycleCoreExtensions">
4
5   <documentation>
6     Nuxeo core life cycle contributions.
7
8     @version 1.0
9     @author <a href="mailto:ja@nuxeo.com">Julien Anguenot</a>
10   </documentation>
11
12   <require>
13     org.nuxeo.ecm.core.repository.jcr.lifecycle.JCRLifeCycleManager
14   </require>
15
16   <extension target="org.nuxeo.ecm.core.lifecycle.LifeCycleService"
17     point="lifecycle">
18
19     <documentation>
20
21       Nuxeo core default life cycle definition.
22
23     </documentation>
24
25     <lifecycle name="default" lifecyclemanager="jcrlifecyclemanager"
26       initial="project">
27       <transitions>
28         <transition name="approve" destinationState="approved">
29           <description>Approve the content</description>
30         </transition>
31         <transition name="obsolete" destinationState="obsolete">
32           <description>Content becomes obsolete</description>
33         </transition>
34         <transition name="delete" destinationState="deleted">
35           <description>Move document to trash (temporary delete)</description>
36         </transition>
37         <transition name="undelete" destinationState="project">
38           <description>Recover the document from trash</description>
39         </transition>
40         <transition name="backToProject" destinationState="project">
41           <description>Recover the document from trash</description>
42         </transition>
43       </transitions>
44       <states>
45         <state name="project" description="Default state">
46           <transitions>
47             <transition>approve</transition>
48             <transition>obsolete</transition>
49             <transition>delete</transition>
50           </transitions>
51         </state>
52         <state name="approved" description="Content has been validated">
53           <transitions>
54             <transition>delete</transition>
55             <transition>backToProject</transition>
56           </transitions>
57         </state>
58         <state name="obsolete" description="Content is obsolete">
59           <transitions>
60             <transition>delete</transition>
61             <transition>backToProject</transition>
62           </transitions>
63         </state>
64         <state name="deleted" description="Document is deleted">
65           <transitions>
66             <transition>undelete</transition>
67           </transitions>
68         </state>
69       </states>
70     </lifecycle>
71   </extension>
72
73   <extension target="org.nuxeo.ecm.core.lifecycle.LifeCycleService"
74     point="types">
75
76     <documentation>
77
78       Nuxeo core default document types to life cycles mapping
79
80     </documentation>
81
82     <types>
83       <type name="File">default</type>
84       <type name="Note">default</type>
85       <type name="Calendar">default</type>
86       <type name="Folder">default</type>
87       <type name="Workspace">default</type>
88       <type name="Domain">default</type>
89       <type name="Root">default</type>
90       <type name="Section">default</type>
91       <type name="WorkspaceRoot">default</type>
92       <type name="SectionRoot">default</type>
93       <type name="TemplateRoot">default</type>
94     </types>
95   </extension>
96
97 </component>
Note: See TracBrowser for help on using the browser.