-
Type: Bug
-
Status: Resolved
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 7.10
-
Component/s: Automation
-
Epic Link:
-
Tags:
-
Sprint:TGV 11
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' }); }