Workflow Markup Language

Author: Michael Wechner (michael.wechner@lenya.org)
Created: 2002.01.22
Version: 2002.01.22

The workflow of each "file" is described within a corresponding "CMML-File". The various workflows are defined by the following configuration file:

workflow.xconf

<?xml version"1.0"?>
<wf>

  <states>
    <state id="authoring" comment="Authoring">
    <state id="proof-reading" comment="Proof Reading">
    <state id="ready to publish" comment="Ready to publish">
    <state id="live" comment="Live">
    <state id="archived" comment="Archived">
  </states>

 <workflows default="standard-article>
  <workflow id="standard-article">
    <state id="authoring">
      <state id="proof-reading" action="">
    </state>
    <state id="proof-reading">
      <state id="authoring" action="">
      <state id="ready-to-publish" action="">
    </state>
    <state id="ready-to-publish">
      <state id="authoring" action="">
      <state id="proof-reading" action="">
      <state id="live" action="">
    </state>
    <state id="live">
      <state id="authoring" action="">
      <state id="proof-reading" action="">
      <state id="archived" action="">
    </state>
    <state id="archived">
      <state id="authoring" action="">
      <state id="proof-reading" action="">
    </state>
  </workflow>

  <workflow id="headline">
    <state id="authoring">
      <state id="proof-reading" action="">
    </state>
    <state id="proof-reading">
      <state id="authoring" action="">
      <state id="ready-to-publish" action="">
    </state>
    <state id="ready-to-publish">
      <state id="authoring" action="">
      <state id="proof-reading" action="">
      <state id="live" action="">
    </state>
    <state id="live">
      <state id="authoring" action="">
      <state id="proof-reading" action="">
      <state id="archived" action="">
    </state>
    <state id="archived">
      <state id="authoring" action="">
      <state id="proof-reading" action="">
    </state>
  </workflow>
 </workflows>

 
  <assign-workflow>
    <match pattern="*headline*">
      <workflow id="headline"/>
    </match>
    <match pattern="*article*">
      <workflow/>
    </match>
<!--
    <match pattern="*">
      <workflow/>
    </match>
-->
  </assign-workflow>

</wf>