AnsweredAssumed Answered

parameters transition within tasks

Question asked by davidedge on Jun 13, 2014
Latest reply on Jun 17, 2014 by davidedge
Hi,
i'm developing a custom workflow(with activiti). I have a problem:


    <serviceTask id="alfrescoScripttask1" name="fornisce elenco aziende" activiti:class="org.alfresco.repo.workflow.activiti.script.AlfrescoScriptDelegate">
       <extensionElements>
          <activiti:field name="script">
            <activiti:string>
            
                  var tag = "sigima";
                  var taggedNodes = companyhome.childrenByTags(tag);   
                  var aziende= new Array();
                  for(var i=0; taggedNodes.length; i++){
                     aziende=taggedNodes.name;
                     
                  }

                  
                        </activiti:string>
         </activiti:field>
           </extensionElements>
   </serviceTask>


ChildrenByTags API return an array of ScriptNode and i want to store the name of every node in aziende(array).After this, i want to hand this array to following user-task for printing it.
How can i do? Can i hand an array? Or can i only hand a single variable?

Outcomes