AnsweredAssumed Answered

Check IN document in workflow

Question asked by ph73nt on Jan 28, 2011
Latest reply on Jan 31, 2011 by ph73nt
dear list,

I'm having trouble checking in a document during a workflow. I have succeeded in checking out a document with a different workflow, but in my new "activate" workflow I can't check it in. There are no errors thrown but the document remains checked out. Here's the important bit of my workflow (from the completed step):

   <task-node name="publish">
      <transition to="end" name=""></transition>
      <task name="nm:completedTask" swimlane="initiator">
         <event type="node-enter">
            <action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
                  for (var i = 0; i &lt; bpm_package.children.length; i++){

I would prefer to assign the document to a variable, but haven't managed this with either the content or noderef types described in the API. Is this possible? Is bpm_package available method-wide?

I'd be grateful for some (more) help. Thanks in advance,