cancel
Showing results for 
Search instead for 
Did you mean: 

published Child

maddy
Champ in-the-making
Champ in-the-making
hay any one help me in workflow

i have a document which have multiple child and also child inside child so now i m making doc as published state. like::
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
            <script>
               var doc = bpm_package.children[0];
               doc.properties['cch:contentState']= "Editing In Process";
               doc.save();
                </script>
         </action>

so can anyone one let me know that how we published child and child inside child of content satate of this document.
1 REPLY 1

jpotts
World-Class Innovator
World-Class Innovator
Go look at the ScriptNode documentation for the JavaScript API. The children are accessible via the associative array called childAssocs.

http://docs.alfresco.com/4.0/topic/com.alfresco.enterprise.doc/references/API-JS-ScriptNode.html

Jeff