AnsweredAssumed Answered

Document version problem

Question asked by saper on Jan 9, 2008
Latest reply on Jan 15, 2008 by saper

I have a problem with workflow: i dont know how to get version from dokument. Here is the situation. I have dokument "text.txt", and its version is 1.1 . I have made custom workflow and it all work fine. I can even tell whats the name of the document. I just cannot get version. Here is my litle part of code:
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
      <variable name="wf02_temp" access="write"/>
      <variable name="bpm_package" access="read" />
         wf02_temp = ", Dokument name: " +
         bpm_package.children[0].name +
         ", dokument version: " +

Offcourse bpm_package.children[0].version doesn work, neither bpm_package.children[0].properties[cm:version], nor any other version, currentVersion, versionHistory combinations. I have tried almost everything and searched in many places. Can someone please tell me how to do this?

Thanks in advice