Platform Explorer / Nuxeo Platform LTS 2015 7.10

Extension point actionPipes

Extension point to register a list of actions.

An ActionPipe is a list of ActionMessage used for mail import. Default contribution are merged but you can override them using 'override' attribute.

        <pipe name="nxmail" override="true">
            <action id="StartAction" to="CreateDocumentsAction">
            org.nuxeo.ecm.platform.mail.listener.action.StartAction
          </action>
            <action id="CreateDocumentsAction">
            org.nuxeo.ecm.platform.mail.listener.action.CreateDocumentsAction
          </action>
        </pipe>

When registering the ActionPipe, the service looks for an ActionMessage named 'StartAction', so this is a mandatory attribute. Registration of the pipe ends when service doesn't find the next action.

Since 6.0, you can use Automation to control how Documents are created from email. For that you need to redefine the ActionPipe.

        <pipe name="nxmail" override="true">
            <action>
            org.nuxeo.ecm.platform.mail.listener.action.StartAction
          </action>
            <action>
            org.nuxeo.ecm.platform.mail.listener.action.ExtractMessageInformationAction
          </action>
            <action chain="CreateMailDocumentFromAutomation">
            org.nuxeo.ecm.platform.mail.listener.action.CreateDocumentsFromAutomationChainAction
          </action>
        </pipe>

Then the CreateMailDocumentFromAutomation Chain whill be used to create the content.

Contribution Descriptor

Existing Contributions

  • nuxeo-platform-mail-core-7.10.jar /OSGI-INF/nxmail-contrib.xml
    <extension point="actionPipes" target="org.nuxeo.ecm.platform.MailService">
    
        <pipe name="nxmail">
          <action>
            org.nuxeo.ecm.platform.mail.listener.action.StartAction
          </action>
          <action>
            org.nuxeo.ecm.platform.mail.listener.action.ExtractMessageInformationAction
          </action>
          <action>
            org.nuxeo.ecm.platform.mail.listener.action.CheckMailUnicity
          </action>
          <action>
            org.nuxeo.ecm.platform.mail.listener.action.CreateDocumentsAction
          </action>
        </pipe>
    
      </extension>