Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-12537

XML Parser: add automation chain configuration executed after document creation

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.7.3-SNAPSHOT
    • Fix Version/s: 5.7.3
    • Component/s: Excel Export
    • Impact type:
      API change
    • Upgrade notes:
      Hide

      Add automation id description in XMLParser contributions executed each document creation.
      Add changeableDocument as document being created.

      Show
      Add automation id description in XMLParser contributions executed each document creation. Add changeableDocument as document being created.

      Description

      Here is a typical contribution for the current contribution for the new Advanced XML parser to create a new Document :

        <extension
          target="org.nuxeo.ecm.platform.importer.xml.parser.ImporterComponent"
          point="documentMapping">
          <docConfig tagName="theItem">
            <docType>MyDoc</docType>
            <name>@name</name>
            <parent>..</parent>
          </docConfig>
        </extension>
      

      This contribution ask to create a Document MyDoc each time an item theItem is found.

      example:

         ... intoduction of my xml and blah blah ...
         <theItem name="toto">
           ....
         </theItem>
         ....
      

      ____

      Goal of this task is to execute an automation chain after the creation and metadata injection with the same MVEL context that one used for parsing computation.

      So the contribution will something like that:

        <extension
          target="org.nuxeo.ecm.platform.importer.xml.parser.ImporterComponent"
          point="documentMapping">
          <docConfig tagName="theItem">
            <docType>MyDoc</docType>
            <name>@name</name>
            <parent>..</parent>
            <postCreationAutomationChain>myChain</postCreationAutomationChain>
          </docConfig>
        </extension>
      

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: