Uploaded image for project: 'Nuxeo Studio'
  1. Nuxeo Studio
  2. NXS-3161

Input and output types are not taken into account in automation scripting

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 30.1
    • Fix Version/s: 31.1
    • Component/s: Automation

      Description

      Input is set to document, Output to Documents. In the resulting XML config both are set to void.

          <scriptedOperation id="javascript.SFGetChildren">
            <inputType>void</inputType>
            <outputType>void</outputType>
            <category>javascript</category>
            <description></description>
            <script><![CDATA[function run(input, params) {
        var docs = Repository.Query(null, {
          'query': "SELECT * FROM Document WHERE ecm:currentLifeCycleState != 'deleted' AND ecm:isCheckedInVersion = 0 AND ecm:mixinType != 'HiddenInNavigation' AND ecm:parentId = '" + input + "'"
        }
                                   );
        return docs;
      }
      ]]></script>
          </scriptedOperation>
      

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: