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

fix document listing unwrap from automation scripting context

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 7.10
    • Fix Version/s: 7.10-HF03, 8.1
    • Component/s: Automation

      Description

      Issue:

      Caused by: java.lang.ClassCastException: java.util.ArrayList cannot be cast to org.nuxeo.ecm.automation.core.scripting.DocumentWrapper
          at org.nuxeo.automation.scripting.internals.AutomationMapper.unwrapContext(AutomationMapper.java:94)
          at org.nuxeo.automation.scripting.internals.AutomationMapper.executeOperation(AutomationMapper.java:56)
          at jdk.nashorn.internal.scripts.Script$Recompilation$7$24592AA$\^eval\_.SetNodeVariable(<eval>:589)
          at jdk.
      

      To reproduce:

      function run(input, params) {
      
        var wokflowInitiatorVar = ctx.workflowInitiator;
      
       Workflow.SetNodeVariable(input, {
      
          'name':'assignee' ,
      
          'value':  'Administrator'
      });
      
      }
      

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: