AnsweredAssumed Answered

Script to check out a content

Question asked by anselmo.abadia on Apr 23, 2008
Latest reply on Apr 26, 2008 by jbarmash
Hi, I'm using an advanced workflow in Alfresco and, when a task begins, I need to check out the resource associated to the workflow. Later, when the task finishes, I need to checkin it.

In my workflow definition, I want something like this:


   <task-node name="toModified">
      <task name="wf:toModified" swimlane="initiator">
          <event type="task-create">
                <script>
         document.checkout();
                </script>
            </event>
      
      </task>
      <transition to="toReview" name="edit"></transition>
   </task-node>


What do I do to check out a content?
Thanks, Anselmo

Outcomes