Platform Explorer / Nuxeo Platform LTS 2015 7.10

Contribution org.nuxeo.ecm.user.registration.lifecycle.contrib--lifecycle

This contribution is part of XML component org.nuxeo.ecm.user.registration.lifecycle.contrib inside nuxeo-invite-7.10-HF02.jar /OSGI-INF/user-registration-lifecycle-contrib.xml

Extension point

Extension point lifecycle of component LifeCycleService.

Contributed items

  • <lifecycle defaultInitial="created" name="registrationRequest">
          <transitions>
            <transition destinationState="approved" name="approve">
              <description>Approve the registration request</description>
            </transition>
            <transition destinationState="rejected" name="reject">
              <description>Reject the registration request</description>
            </transition>
            <transition destinationState="accepted" name="accept">
              <description>Accept the registration request</description>
            </transition>
            <transition destinationState="processed" name="process">
              <description>Process the registration request</description>
            </transition>
          </transitions>
          <states>
            <state description="Default state" initial="true" name="created">
              <transitions>
                <transition>approve</transition>
                <transition>reject</transition>
              </transitions>
            </state>
            <state description="Registration has been approved" name="approved">
              <transitions>
                <transition>accept</transition>
              </transitions>
            </state>
            <state description="Registration has been rejected" name="rejected">
              <transitions/>
            </state>
            <state description="Registration has been accepted" name="accepted">
              <transitions>
                <transition>process</transition>
              </transitions>
            </state>
            <state description="Registration request has been processed" name="processed">
              <transitions/>
            </state>
          </states>
        </lifecycle>

    Process the registration request

XML source

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

    <lifecycle defaultInitial="created" name="registrationRequest">
      <transitions>
        <transition destinationState="approved" name="approve">
          <description>Approve the registration request</description>
        </transition>
        <transition destinationState="rejected" name="reject">
          <description>Reject the registration request</description>
        </transition>
        <transition destinationState="accepted" name="accept">
          <description>Accept the registration request</description>
        </transition>
        <transition destinationState="processed" name="process">
          <description>Process the registration request</description>
        </transition>
      </transitions>
      <states>
        <state description="Default state" initial="true" name="created">
          <transitions>
            <transition>approve</transition>
            <transition>reject</transition>
          </transitions>
        </state>
        <state description="Registration has been approved" name="approved">
          <transitions>
            <transition>accept</transition>
          </transitions>
        </state>
        <state description="Registration has been rejected" name="rejected">
          <transitions/>
        </state>
        <state description="Registration has been accepted" name="accepted">
          <transitions>
            <transition>process</transition>
          </transitions>
        </state>
        <state description="Registration request has been processed" name="processed">
          <transitions/>
        </state>
      </states>
    </lifecycle>
  </extension>