In addition, when I pusblish a document, the version is 00.00 but my document version is 01.00 (because I modified it).
[EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 05/11/2007 13:46 To [email protected] cc Subject Re: [Ecm] Versioning problem Thank you very much. So I only use <schema name="uid" /> <facet name="Versionable" /> in TypeService extension (point = doctype). and a versioningrules-contrib.xml : <?xml version="1.0"?> <component name="org.nuxeo.project.samplle.versioningrules"> <!-- Default versioning rules --> <extension target="org.nuxeo.ecm.platform.versioning.service.VersioningService" point="rules"> <versioningRuleWF name="sampleWFRule" workflowStateInitial="assigned" workflowStateFinal="inprogress" action="inc_minor"> </versioningRuleWF> <versioningRuleEdit name="sampleEditRuleReview" action="query_workflow" lifecycleState="review"> </versioningRuleEdit> <versioningRuleEdit name="sampleEditRuleProject" action="ask_user" lifecycleState="project"> <option value="no_inc" default="true" /> <option value="inc_minor" /> <option value="inc_major" /> </versioningRuleEdit> <versioningRuleEdit name="sampleEditRuleAnyState" action="ask_user" lifecycleState="*"> <includeDocType>Sample</includeDocType> <option value="no_inc" default="true" /> <option value="inc_minor" /> <option value="inc_major" /> </versioningRuleEdit> <versioningRuleAuto name="sampleAutoRule" action="inc_minor" lifecycleState="*"> </versioningRuleAuto> </extension> </component> Now, I could increment the version if I modify my document. However, when I use the classic workflow, the version doesn't increment. Dragos Mihalache <[EMAIL PROTECTED]> 05/11/2007 13:41 To [EMAIL PROTECTED] cc [email protected], [EMAIL PROTECTED] Subject Re: [Ecm] Versioning problem [EMAIL PROTECTED] wrote: > > I must use another schema ? > > You may use the default uid.xsd schema instead of redefining those fields in your schema. > > Hi > > If you want to use other schema for major/minor fields you need to > specify them in versioning contrib like: > > <extension > target="org.nuxeo.ecm.platform.versioning.service.VersioningService" > point="properties"> > > <versioningProperties> > <majorVersion>guid:major_version</majorVersion> > <minorVersion>guid:minor_version</minorVersion> > <documentType>mydoc</documentType> > ... > > Though the error is thrown if the document due to checkin does not have > Versionable facet. Could you try with a new repository? > > Dragos > > [EMAIL PROTECTED] wrote: > > > > Hello, > > > > I want to make the Sample type versionable. > > > > I added this to my sample.xsd schema file : > > > > <xs:element name = “uid” type=”xs:String” /> > > <xs:element name=”major_version” type=”xs:int” /> > > <xs:element name=”minor_version” type=”xs:int” /> > > > > and this to my TypeService extension : > > > > <facet name="Versionable" /> > > > > Then, I created a versioningrules-contrib.xml in OSGI-INF folder and > > added it in the manifest : > > > > <?xml version="1.0"?> > > > > <component name="org.nuxeo.project.sample.versioningrules"> > > > > > <require>org.nuxeo.ecm.platform.versioning.service.VersioningService</require> > > > > > > > <!-- Default versioning rules --> > > <extension > > target="org.nuxeo.ecm.platform.versioning.service.VersioningService" > > point="rules"> > > > > <versioningRuleWF name="sampleWFRule" > workflowStateInitial="assigned" > > workflowStateFinal="inprogress" action="inc_minor"> > > </versioningRuleWF> > > > > <versioningRuleEdit name="sampleEditRuleReview" > > action="query_workflow" > > lifecycleState="review"> > > </versioningRuleEdit> > > > > <versioningRuleEdit name="sampleEditRuleProject" action="ask_user" > > lifecycleState="project"> > > <option value="no_inc" default="true" /> > > <option value="inc_minor" /> > > <option value="inc_major" /> > > </versioningRuleEdit> > > > > <versioningRuleEdit name="sampleEditRuleAnyState" action="ask_user" > > lifecycleState="*"> > > <includeDocType>Sample</includeDocType> > > <option value="no_inc" default="true" /> > > <option value="inc_minor" /> > > <option value="inc_major" /> > > </versioningRuleEdit> > > > > <versioningRuleAuto name="sampleAutoRule" action="inc_minor" > > lifecycleState="*"> > > </versioningRuleAuto> > > > > </extension> > > > > </component> > > > > > > When I modified a Sample document to increment the version, I had this > > error : > > > > org.nuxeo.ecm.core.api.ClientException > > > > org.nuxeo.ecm.core.api.WrappedException: Exception: > > org.nuxeo.ecm.core.api.ClientException. message: Failed to check in > > document 434c7b11-785f-4743-b66a-a3bcece3494c > > > > > org.nuxeo.ecm.platform.ui.web.shield.NuxeoErrorInterceptor.invokeAndWrapExceptions(NuxeoErrorInterceptor.java:94) > > > > > sun.reflect.GeneratedMethodAccessor189.invoke(Unknown Source) > > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > > > > > java.lang.reflect.Method.invoke(Method.java:585) > > > org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:118) > > > > > > org.jboss.seam.intercept.EJBInvocationContext.proceed(EJBInvocationContext.java:37) > > > > > > > Maybe I forgot something ? > > > > Thank you. > > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > ECM mailing list > > [email protected] > > http://lists.nuxeo.com/mailman/listinfo/ecm > > > > _______________________________________________ > ECM mailing list > [email protected] > http://lists.nuxeo.com/mailman/listinfo/ecm > _______________________________________________ ECM mailing list [email protected] http://lists.nuxeo.com/mailman/listinfo/ecm
_______________________________________________ ECM mailing list [email protected] http://lists.nuxeo.com/mailman/listinfo/ecm
