Platform Explorer / CMF 1.8

Contribution org.nuxeo.cm.lifecycle--lifecycle

This contribution is part of XML component org.nuxeo.cm.lifecycle inside nuxeo-case-management-core-1.8.jar

Extension Point

Extension point lifecycle of component LifeCycleService.

Contributed Items

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

    Archive the case

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

    Recover the document from trash

XML Source

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

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

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

  </extension>