Platform Explorer / Nuxeo Platform 5.6

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

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

Extension point

Extension point lifecycle of component LifeCycleService.

Contributed items

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

    Reject the comment

XML source

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

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

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

    </lifecycle>

  </extension>