Platform Explorer / CMF 1.8

Component org.nuxeo.cm.lifecycle

Contributions

XML Source

<?xml version="1.0"?>

<component name="org.nuxeo.cm.lifecycle">

  <extension target="org.nuxeo.ecm.core.lifecycle.LifeCycleService"
    point="lifecycle">

    <lifecycle name="case" defaultInitial="draft">
      <transitions>
        <transition name="open" destinationState="opened">
          <description>open the case</description>
        </transition>
        <transition name="process" destinationState="processed">
          <description>Process the case</description>
        </transition>
        <transition name="archive" destinationState="archived">
          <description>Archive the case</description>
        </transition>
      </transitions>
      <states>
        <state name="draft" description="Default state" initial="true">
          <transitions>
            <transition>open</transition>
          </transitions>
        </state>
        <state name="opened" description="Case has been opened">
          <transitions>
            <transition>process</transition>
          </transitions>
        </state>
        <state name="processed" description="Case is processed">
          <transitions>
            <transition>archive</transition>
          </transitions>
        </state>
        <state name="archived" description="Case is archived">
        </state>
      </states>
    </lifecycle>

    <lifecycle name="caselink" defaultInitial="draft">
      <transitions>
        <transition name="toProject" destinationState="project">
          <description>the model is project</description>
        </transition>
        <transition name="toToDo" destinationState="todo">
          <description>the element is on Todo state</description>
        </transition>
        <transition name="toDone" destinationState="done">
          <description>the element finishes</description>
        </transition>
        <transition name="toDelete" destinationState="deleted">
          <description>the element is deleted</description>
        </transition>
        <transition name="toDelete" destinationState="deleted">
          <description>the element is deleted</description>
        </transition>
        <transition name="backToProject" destinationState="project">
          <description>Recover the document from trash</description>
        </transition>
      </transitions>
      <states>
        <state name="draft" description="Default state" initial="true">
          <transitions>
            <transition>toProject</transition>
            <transition>toToDo</transition>
          </transitions>
        </state>
        <state name="project" description="Default projet state">
          <transitions>
            <transition>toDelete</transition>
          </transitions>
        </state>
        <state name="todo" description="ToDo state" initial="true">
          <transitions>
            <transition>toDone</transition>
          </transitions>
        </state>
        <state name="done" description="The element is done">
          <transitions>
            <transition>toDelete</transition>
          </transitions>
        </state>
        <state name="deleted" description="Document is deleted">
          <transitions>
            <transition>backToProject</transition>
          </transitions>
        </state>
      </states>
    </lifecycle>

  </extension>

  <extension target="org.nuxeo.ecm.core.lifecycle.LifeCycleService"
    point="types">
    <types>
      <type name="MailboxRoot">default</type>
      <type name="Mailbox">default</type>
      <type name="CaseRoot">default</type>
      <type name="Case">case</type>
      <type name="CaseLink">caselink</type>
      <type name="CaseItem">default</type>
      <type name="DistributionTask">documentRouteElement</type>
      <type name="GenericDistributionTask">documentRouteElement</type>
      <type name="PersonalDistributionTask">documentRouteElement</type>
      <type name="DistributionStep">documentRouteElement</type>
    </types>
  </extension>

</component>