You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by gr...@apache.org on 2004/01/14 01:12:00 UTC

cvs commit: cocoon-lenya/src/webapp/lenya/pubs/default/config/workflow workflow.xml

gregor      2004/01/13 16:12:00

  Modified:    src/webapp/lenya/pubs/default/config/ac usecase-policies.xml
               src/webapp/lenya/pubs/default/config/workflow workflow.xml
  Log:
  enable archive and delete for default publication.
  
  thanks to doug chestnut
  
  Revision  Changes    Path
  1.2       +6 -0      cocoon-lenya/src/webapp/lenya/pubs/default/config/ac/usecase-policies.xml
  
  Index: usecase-policies.xml
  ===================================================================
  RCS file: /home/cvs/cocoon-lenya/src/webapp/lenya/pubs/default/config/ac/usecase-policies.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- usecase-policies.xml	23 Jul 2003 19:26:11 -0000	1.1
  +++ usecase-policies.xml	14 Jan 2004 00:12:00 -0000	1.2
  @@ -3,4 +3,10 @@
   	<usecase id="create">
   		<role id="editor"/>
   	</usecase>
  +    <usecase id="archive">
  +        <role id="editor"/>
  +    </usecase>
  +    <usecase id="delete">
  +        <role id="editor"/>
  +    </usecase>
   </usecases>
  
  
  
  1.7       +16 -1     cocoon-lenya/src/webapp/lenya/pubs/default/config/workflow/workflow.xml
  
  Index: workflow.xml
  ===================================================================
  RCS file: /home/cvs/cocoon-lenya/src/webapp/lenya/pubs/default/config/workflow/workflow.xml,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- workflow.xml	23 Oct 2003 13:10:07 -0000	1.6
  +++ workflow.xml	14 Jan 2004 00:12:00 -0000	1.7
  @@ -16,6 +16,8 @@
     <state id="authoring" initial="true"/>
     <state id="review"/>
     <state id="live"/>
  +  <state id="trash"/>
  +  <state id="archive"/>
     
     <variable name="is_live" value="false"/>
     
  @@ -53,5 +55,18 @@
       <condition class="org.apache.lenya.cms.workflow.RoleCondition">reviewer</condition>
       <assign variable="is_live" value="false"/>
     </transition>
  -        
  +
  +  <transition source="authoring" destination="trash">
  +    <event id="delete"/>
  +    <condition class="org.apache.lenya.cms.workflow.RoleCondition">editor</condition>
  +    <assign variable="is_live" value="false"/>
  +    <action id="delete"/>
  +  </transition>
  +
  +  <transition source="authoring" destination="archive">
  +    <event id="archive"/>
  +    <condition class="org.apache.lenya.cms.workflow.RoleCondition">editor</condition>
  +    <assign variable="is_live" value="false"/>
  +    <action id="archive"/>
  +  </transition>        
   </workflow>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-cvs-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-cvs-help@cocoon.apache.org