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

Add adapter that transform Array of Anything into a List

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.6.0-HF15
    • Fix Version/s: 5.6.0-HF16, 5.7.1
    • Component/s: Automation

      Description

      • I create a document type A that stores a list of string in mySchema:myField where I store a list of document ID.
        Remark: @ {Document.getProperty("mySchema:myField")}

        return a String[]

      • I create a new automation chain that fetch my document type A and I want to return the list of document stored in it.
      • I put the "Fetch From Property" Operation with the following values:
        property: ecm:uuid
        value: @ {Document.getProperty("mySchema:myField")}

      Problem:

      • An error occured express that value field waits for a StringList and has a String[].

      Workaround would be to put this in value:

      • @ {new org.nuxeo.ecm.automation.core.util.StringList(Document["mySchema:myField"])}

      Waiting solution:

      • Add a new Adapter to adapt String Array into StringList

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: