Platform Explorer / Nuxeo Platform 5.6

Contribution org.nuxeo.ecm.platform.forum.lifecycle--lifecycle

This contribution is part of XML component org.nuxeo.ecm.platform.forum.lifecycle inside nuxeo-platform-forum-core-5.6.jar

Extension point

Extension point lifecycle of component LifeCycleService.

Contributed items

  • <lifecycle defaultInitial="moderation_pending" name="post_moderation">
    
          <transitions>
            <transition destinationState="moderation_published" name="moderation_publish">
              <description>Approve the post</description>
            </transition>
            <transition destinationState="moderation_rejected" name="moderation_reject">
              <description>Reject the post</description>
            </transition>
          </transitions>
          <states>
            <state description="Default state" name="moderation_pending">
              <transitions>
                <transition>moderation_publish</transition>
                <transition>moderation_reject</transition>
              </transitions>
            </state>
            <state description="Post published" name="moderation_published"/>
            <state description="Post Rejected" name="moderation_rejected"/>
          </states>
    
        </lifecycle>

    Reject the post

XML source

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

    <lifecycle defaultInitial="moderation_pending" name="post_moderation">

      <transitions>
        <transition destinationState="moderation_published" name="moderation_publish">
          <description>Approve the post</description>
        </transition>
        <transition destinationState="moderation_rejected" name="moderation_reject">
          <description>Reject the post</description>
        </transition>
      </transitions>
      <states>
        <state description="Default state" name="moderation_pending">
          <transitions>
            <transition>moderation_publish</transition>
            <transition>moderation_reject</transition>
          </transitions>
        </state>
        <state description="Post published" name="moderation_published"/>
        <state description="Post Rejected" name="moderation_rejected"/>
      </states>

    </lifecycle>

  </extension>