<commit_before><?xml version="1.0" encoding="UTF-8"?>

<!--
    Document   : workflow.xml
    Created on : 8. April 2003, 19:02
    Author     : andreas
    Description:
        Purpose of the document follows.
-->

<workflow xmlns="http://apache.org/cocoon/lenya/workflow/1.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://apache.org/cocoon/lenya/workflow/1.0
        ../../../resources/entities/workflow/workflow.xsd">

  <state id="authoring" initial="true"/>
  <state id="review"/>
  <state id="live"/>
  <state id="trash"/>
  <state id="archive"/>
  
  <variable name="is_live" value="false"/>
  
  <transition source="authoring" destination="review">
    <event id="submit"/>
    <condition class="org.apache.lenya.cms.workflow.RoleCondition">editor</condition>
  </transition>
        
  <transition source="review" destination="live">
    <event id="publish"/>
    <condition class="org.apache.lenya.cms.workflow.RoleCondition">reviewer</condition>
    <assign variable="is_live" value="true"/>
  </transition>
        
  <transition source="review" destination="authoring">
    <event id="reject"/>
    <condition class="org.apache.lenya.cms.workflow.RoleCondition">reviewer</condition>
  </transition>
        
  <transition source="live" destination="authoring">
    <event id="edit"/>
    <condition class="org.apache.lenya.cms.workflow.RoleCondition">editor</condition>
  </transition>
        
  <transition source="authoring" destination="authoring">
    <event id="edit"/>
    <condition class="org.apache.lenya.cms.workflow.RoleCondition">editor</condition>
  </transition>
        
  <transition source="live" destination="authoring">
    <event id="deactivate"/>
    <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"/>
  </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"/>
  </transition>        
</workflow>
<commit_msg>Since the role names have changed in other places this file needs to be changed as well.<commit_after><?xml version="1.0" encoding="UTF-8"?>

<!--
    Document   : workflow.xml
    Created on : 8. April 2003, 19:02
    Author     : andreas
    Description:
        Purpose of the document follows.
-->

<workflow xmlns="http://apache.org/cocoon/lenya/workflow/1.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://apache.org/cocoon/lenya/workflow/1.0
        ../../../resources/entities/workflow/workflow.xsd">

  <state id="authoring" initial="true"/>
  <state id="review"/>
  <state id="live"/>
  <state id="trash"/>
  <state id="archive"/>
  
  <variable name="is_live" value="false"/>
  
  <transition source="authoring" destination="review">
    <event id="submit"/>
    <condition class="org.apache.lenya.cms.workflow.RoleCondition">edit</condition>
  </transition>
        
  <transition source="review" destination="live">
    <event id="publish"/>
    <condition class="org.apache.lenya.cms.workflow.RoleCondition">review</condition>
    <assign variable="is_live" value="true"/>
  </transition>
        
  <transition source="review" destination="authoring">
    <event id="reject"/>
    <condition class="org.apache.lenya.cms.workflow.RoleCondition">review</condition>
  </transition>
        
  <transition source="live" destination="authoring">
    <event id="edit"/>
    <condition class="org.apache.lenya.cms.workflow.RoleCondition">edit</condition>
  </transition>
        
  <transition source="authoring" destination="authoring">
    <event id="edit"/>
    <condition class="org.apache.lenya.cms.workflow.RoleCondition">edit</condition>
  </transition>
        
  <transition source="live" destination="authoring">
    <event id="deactivate"/>
    <condition class="org.apache.lenya.cms.workflow.RoleCondition">review</condition>
    <assign variable="is_live" value="false"/>
  </transition>

  <transition source="authoring" destination="trash">
    <event id="delete"/>
    <condition class="org.apache.lenya.cms.workflow.RoleCondition">edit</condition>
    <assign variable="is_live" value="false"/>
  </transition>

  <transition source="authoring" destination="archive">
    <event id="archive"/>
    <condition class="org.apache.lenya.cms.workflow.RoleCondition">edit</condition>
    <assign variable="is_live" value="false"/>
  </transition>        
</workflow>

{'fraction_non_alphanumeric': 0.16864707108609547, 'fraction_numerical': 0.008755472170106316, 'mean_word_length': 3.9668737060041406, 'pattern_counts': {'":': 0, '<': 111, '<?xml version=': 2, '>': 111, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 8}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '12492', 'n_tokens_mistral': 1490, 'n_tokens_neox': 1437, 'n_words': 246}