AnsweredAssumed Answered

Convert Alfresco ScripNode to ActivitiScriptNode

Question asked by erny18031 on Jul 13, 2014
Latest reply on Jul 16, 2014 by erny18031

In a Alfresco 4.2.c workflow, I have a task model like this:

<type "my:tasktype">

           <property name="my:folder">


and I use a ScriptExecutionListener like this:

var folder = companyhome.createFolder(name);
execution.setVariable("my_folder") = folder.nodeRef;


but I receive an exception with message:

org.activiti.engine.ActivitiException: Passed value is not an instance of ActivitiScriptNode, cannot set variable value.


Is it possible to convert Alfresco ScriptNode type to ActivitiScriptNode from within JavaScript? How?

I've googled a lot and read Alfresco source code, but still haven't found a way to do it.