Platform Explorer / Nuxeo Platform 5.6

Contribution org.nuxeo.ecm.platform.routing.actions--actions

This contribution is part of XML component org.nuxeo.ecm.platform.routing.actions inside nuxeo-platform-document-routing-web-5.6.jar

Extension point

Extension point actions of component ActionService.

Contributed items

  • <action id="TAB_CONTENT">
          <filter-id>isNotRoute</filter-id>
        </action>
  • <action icon="/icons/file.gif" id="TAB_DOCUMENT_ROUTE_CONTENT" label="action.view.content" link="/incl/tabs/document_route_content.xhtml" order="10">
          <category>TAB_MANAGE_sub_tab</category>
          <filter-id>isRoute</filter-id>
        </action>
  • <action icon="/icons/file.gif" id="TAB_DOCUMENT_ROUTE_ELEMENTS" label="action.view.document.routing.elements" link="/incl/tabs/document_route_content_elements.xhtml" order="10">
          <category>VIEW_ACTION_LIST</category>
          <filter-id>isRoute</filter-id>
        </action>
  • <action icon="/icons/pdf.png" id="route_to_pdf" label="action.pdf.route" link="#{routeToPdfActionBean.doRenderView('view_pdf_route.faces')}" order="20">
          <category>DOCUMENT_UPPER_ACTION</category>
          <filter-id>isRoute</filter-id>
        </action>
  • <action icon="/icons/pdf.png" id="related_route_to_pdf" label="action.pdf.route" link="#{routeToPdfActionBean.doRenderView('view_pdf_related_route.faces')}" order="20">
          <category>DOCUMENT_UPPER_ACTION</category>
          <filter-id>isRoutable</filter-id>
          <filter-id>hasRelatedRouteStarted</filter-id>
        </action>
  • <action id="CANCEL_RELATED_ROUTE" label="label.document.routing.cancel.route" link="#{routingActions.cancelRoute()}" order="10">
          <category>ATTACHED_ROUTE_LIST</category>
          <filter-id>hasRelatedRouteStarted</filter-id>
          <filter-id>isEditableRoute</filter-id>
        </action>
  • <action id="SAVE_ATTACHED_ROUTE_AS_NEW_INSTANCE" label="label.document.routing.saveAsNew" link="#{routingActions.saveRouteAsNewInstance()}" order="10">
          <category>ATTACHED_ROUTE_LIST</category>
          <filter-id>hasRelatedRouteStarted</filter-id>
        </action>
  • <action id="SAVE_SELECTED_ROUTE_AS_NEW_INSTANCE" label="label.document.routing.saveAsNew" link="#{routingActions.saveSelectedRouteAsNewInstance()}" order="50">
          <category>CURRENT_SELECTION_LIST</category>
          <filter id="canDuplicateRouteInstance">
            <rule grant="true">
              <condition>#{routingActions.getCanDuplicateRouteInstance()}
              </condition>
            </rule>
          </filter>
        </action>
  • <action id="SAVE_ROUTE_AS_NEW_INSTANCE" label="label.document.routing.saveAsNew" link="#{routingActions.saveRouteAsNewInstance()}" order="20">
          <category>SUBVIEW_UPPER_LIST</category>
          <category>ROUTE_LIST</category>
          <filter-id>isRoute</filter-id>
        </action>
  • <action id="VALIDATE_ROUTE" label="action.validate.document.routing.model" link="#{routingActions.validateRouteModel()}" order="10">
          <category>ROUTE_LIST</category>
          <filter-id>isDraftRouteModel</filter-id>
          <filter id="canValidateRoute">
            <rule grant="true">
              <condition>#{routeSecurityChecker.canValidateRoute(currentDocument)}
              </condition>
            </rule>
          </filter>
        </action>
  • <action icon="/icons/add.png" id="ADD_STEP_BEFORE" label="command.add.routeelement.before" link="javascript:document.getElementById('selectRouteElementsTypeForCreationForm:hiddenDocOrder').value = 'before';Richfaces.showModalPanel('selectRouteElementsTypePanel');">
          <category>ADD_STEP_ACTIONS_LIST</category>
          <filter-id>isNotRunning</filter-id>
          <filter-id>isEditableRoute</filter-id>
          <filter-id>isNotImutableConditionalStructure</filter-id>
        </action>
  • <action icon="/icons/add.png" id="ADD_STEP_AFTER" label="command.add.routeelement.after" link="javascript:document.getElementById('selectRouteElementsTypeForCreationForm:hiddenDocOrder').value = 'after';Richfaces.showModalPanel('selectRouteElementsTypePanel');">
          <category>ADD_STEP_ACTIONS_LIST</category>
          <filter-id>isEditableRoute</filter-id>
          <filter-id>isNotImutableConditionalStructure</filter-id>
        </action>
  • <action icon="/icons/add.png" id="ADD_STEP_BETWEEN" label="command.add.routeelement.in" link="javascript:document.getElementById('selectRouteElementsTypeForCreationForm:hiddenDocOrder').value = 'in';Richfaces.showModalPanel('selectRouteElementsTypePanel');">
          <category>ADD_STEP_IN_FORK_ACTIONS_LIST</category>
          <filter-id>isNotRunning</filter-id>
          <filter-id>isEditableRoute</filter-id>
        </action>
  • <action icon="/icons/delete.png" id="REMOVE_STEP" label="command.delete" link="#{routingActions.removeStep}">
          <category>REMOVE_STEP_ACTIONS_LIST</category>
          <filter-id>isNotRunning</filter-id>
          <filter-id>isEditableRoute</filter-id>
          <filter-id>isNotImutableConditionalStructure</filter-id>
        </action>
  • <action icon="/icons/modify.png" id="UPDATE_STEP" label="command.edit" link="#{routingActions.editStep}">
          <category>EDIT_STEP_ACTIONS_LIST</category>
          <filter-id>isNotRunning</filter-id>
          <filter-id>isEditableRoute</filter-id>
        </action>
  • <action icon="/icons/routing_move_up.png" id="MOVE_STEP_UP" label="command.selection.moveUp" link="#{routingActions.moveRouteElement('up')}">
          <category>EDIT_STEP_ACTIONS_LIST</category>
          <filter-id>isNotRunning</filter-id>
          <filter-id>isEditableRoute</filter-id>
          <filter-id>isNotImutableConditionalStructure</filter-id>
        </action>
  • <action icon="/icons/routing_move_down.png" id="MOVE_STEP_DOWN" label="command.selection.moveDown" link="#{routingActions.moveRouteElement('down')}">
          <category>EDIT_STEP_ACTIONS_LIST</category>
          <filter-id>isNotRunning</filter-id>
          <filter-id>isEditableRoute</filter-id>
          <filter-id>isNotImutableConditionalStructure</filter-id>
        </action>
  • <action id="newDocument">
          <filter-id>create</filter-id>
          <filter-id>isNotDraftRouteModel</filter-id>
        </action>
  • <action enabled="true" id="TAB_ROUTE_WORKFLOW" label="action.view.review" link="/incl/tabs/current_route.xhtml" order="60">
          <category>VIEW_ACTION_LIST</category>
          <filter-id>hasRelatedRouteStarted</filter-id>
        </action>

XML source

<extension point="actions" target="org.nuxeo.ecm.platform.actions.ActionService">
    <action id="TAB_CONTENT">
      <filter-id>isNotRoute</filter-id>
    </action>

    <action icon="/icons/file.gif" id="TAB_DOCUMENT_ROUTE_CONTENT" label="action.view.content" link="/incl/tabs/document_route_content.xhtml" order="10">
      <category>TAB_MANAGE_sub_tab</category>
      <filter-id>isRoute</filter-id>
    </action>

    <action icon="/icons/file.gif" id="TAB_DOCUMENT_ROUTE_ELEMENTS" label="action.view.document.routing.elements" link="/incl/tabs/document_route_content_elements.xhtml" order="10">
      <category>VIEW_ACTION_LIST</category>
      <filter-id>isRoute</filter-id>
    </action>

    <action icon="/icons/pdf.png" id="route_to_pdf" label="action.pdf.route" link="#{routeToPdfActionBean.doRenderView('view_pdf_route.faces')}" order="20">
      <category>DOCUMENT_UPPER_ACTION</category>
      <filter-id>isRoute</filter-id>
    </action>

    <action icon="/icons/pdf.png" id="related_route_to_pdf" label="action.pdf.route" link="#{routeToPdfActionBean.doRenderView('view_pdf_related_route.faces')}" order="20">
      <category>DOCUMENT_UPPER_ACTION</category>
      <filter-id>isRoutable</filter-id>
      <filter-id>hasRelatedRouteStarted</filter-id>
    </action>

    <action id="CANCEL_RELATED_ROUTE" label="label.document.routing.cancel.route" link="#{routingActions.cancelRoute()}" order="10">
      <category>ATTACHED_ROUTE_LIST</category>
      <filter-id>hasRelatedRouteStarted</filter-id>
      <filter-id>isEditableRoute</filter-id>
    </action>

    <action id="SAVE_ATTACHED_ROUTE_AS_NEW_INSTANCE" label="label.document.routing.saveAsNew" link="#{routingActions.saveRouteAsNewInstance()}" order="10">
      <category>ATTACHED_ROUTE_LIST</category>
      <filter-id>hasRelatedRouteStarted</filter-id>
    </action>

    <action id="SAVE_SELECTED_ROUTE_AS_NEW_INSTANCE" label="label.document.routing.saveAsNew" link="#{routingActions.saveSelectedRouteAsNewInstance()}" order="50">
      <category>CURRENT_SELECTION_LIST</category>
      <filter id="canDuplicateRouteInstance">
        <rule grant="true">
          <condition>#{routingActions.getCanDuplicateRouteInstance()}
          </condition>
        </rule>
      </filter>
    </action>

    <action id="SAVE_ROUTE_AS_NEW_INSTANCE" label="label.document.routing.saveAsNew" link="#{routingActions.saveRouteAsNewInstance()}" order="20">
      <category>SUBVIEW_UPPER_LIST</category>
      <category>ROUTE_LIST</category>
      <filter-id>isRoute</filter-id>
    </action>

    <action id="VALIDATE_ROUTE" label="action.validate.document.routing.model" link="#{routingActions.validateRouteModel()}" order="10">
      <category>ROUTE_LIST</category>
      <filter-id>isDraftRouteModel</filter-id>
      <filter id="canValidateRoute">
        <rule grant="true">
          <condition>#{routeSecurityChecker.canValidateRoute(currentDocument)}
          </condition>
        </rule>
      </filter>
    </action>

    <action icon="/icons/add.png" id="ADD_STEP_BEFORE" label="command.add.routeelement.before" link="javascript:document.getElementById('selectRouteElementsTypeForCreationForm:hiddenDocOrder').value = 'before';Richfaces.showModalPanel('selectRouteElementsTypePanel');">
      <category>ADD_STEP_ACTIONS_LIST</category>
      <filter-id>isNotRunning</filter-id>
      <filter-id>isEditableRoute</filter-id>
      <filter-id>isNotImutableConditionalStructure</filter-id>
    </action>

    <action icon="/icons/add.png" id="ADD_STEP_AFTER" label="command.add.routeelement.after" link="javascript:document.getElementById('selectRouteElementsTypeForCreationForm:hiddenDocOrder').value = 'after';Richfaces.showModalPanel('selectRouteElementsTypePanel');">
      <category>ADD_STEP_ACTIONS_LIST</category>
      <filter-id>isEditableRoute</filter-id>
      <filter-id>isNotImutableConditionalStructure</filter-id>
    </action>

    <action icon="/icons/add.png" id="ADD_STEP_BETWEEN" label="command.add.routeelement.in" link="javascript:document.getElementById('selectRouteElementsTypeForCreationForm:hiddenDocOrder').value = 'in';Richfaces.showModalPanel('selectRouteElementsTypePanel');">
      <category>ADD_STEP_IN_FORK_ACTIONS_LIST</category>
      <filter-id>isNotRunning</filter-id>
      <filter-id>isEditableRoute</filter-id>
    </action>

    <action icon="/icons/delete.png" id="REMOVE_STEP" label="command.delete" link="#{routingActions.removeStep}">
      <category>REMOVE_STEP_ACTIONS_LIST</category>
      <filter-id>isNotRunning</filter-id>
      <filter-id>isEditableRoute</filter-id>
      <filter-id>isNotImutableConditionalStructure</filter-id>
    </action>

    <action icon="/icons/modify.png" id="UPDATE_STEP" label="command.edit" link="#{routingActions.editStep}">
      <category>EDIT_STEP_ACTIONS_LIST</category>
      <filter-id>isNotRunning</filter-id>
      <filter-id>isEditableRoute</filter-id>
    </action>

    <action icon="/icons/routing_move_up.png" id="MOVE_STEP_UP" label="command.selection.moveUp" link="#{routingActions.moveRouteElement('up')}">
      <category>EDIT_STEP_ACTIONS_LIST</category>
      <filter-id>isNotRunning</filter-id>
      <filter-id>isEditableRoute</filter-id>
      <filter-id>isNotImutableConditionalStructure</filter-id>
    </action>

    <action icon="/icons/routing_move_down.png" id="MOVE_STEP_DOWN" label="command.selection.moveDown" link="#{routingActions.moveRouteElement('down')}">
      <category>EDIT_STEP_ACTIONS_LIST</category>
      <filter-id>isNotRunning</filter-id>
      <filter-id>isEditableRoute</filter-id>
      <filter-id>isNotImutableConditionalStructure</filter-id>
    </action>

    <action id="newDocument">
      <filter-id>create</filter-id>
      <filter-id>isNotDraftRouteModel</filter-id>
    </action>

    <!-- 'Workflow' tab when a document route is running -->
    <!--
    <action id="TAB_ROUTE_WORKFLOW" enabled="true"
      link="/incl/tabs/route_workflow.xhtml" label="action.view.review"
      icon="/icons/file.gif" order="60">
      <category>VIEW_ACTION_LIST</category>
      <filter-id>isRoutable</filter-id>
      <filter id="TAB_ROUTE_WORKFLOW_has_subtabs">
        <rule grant="false">
          <condition>
            #{webActions.getActionsList('TAB_ROUTE_WORKFLOW_sub_tab').isEmpty()}
          </condition>
        </rule>
      </filter>
    </action> -->

   <!-- 'Workflow' sub tab: graph view -->
    <!--
    <action id="TAB_ROUTE_GRAPH_VIEW" enabled="true"
      link="/incl/tabs/route_graph_view.xhtml" order="10"
      label="label.document.routing.route.graph.view">
      <category>TAB_ROUTE_WORKFLOW_sub_tab</category>
    </action>-->

    <!-- 'Workflow' sub tab: current route -->
    <action enabled="true" id="TAB_ROUTE_WORKFLOW" label="action.view.review" link="/incl/tabs/current_route.xhtml" order="60">
      <category>VIEW_ACTION_LIST</category>
      <filter-id>hasRelatedRouteStarted</filter-id>
    </action>

    <!-- 'Workflow' sub tab: previous routes -->
    <!--<action id="TAB_PREVIOUS_ROUTE" enabled="true"
      link="/incl/tabs/previous_routes.xhtml" order="30"
      label="label.document.routing.previous.routes">
      <category>TAB_ROUTE_WORKFLOW_sub_tab</category>
    </action>
    -->
  </extension>