cancel
Showing results for 
Search instead for 
Did you mean: 

Document version problem

saper
Champ in-the-making
Champ in-the-making
Hi

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">
   <script>
      <variable name="wf02_temp" access="write"/>
      <variable name="bpm_package" access="read" />
      <expression>
         wf02_temp = ", Dokument name: " +
         bpm_package.children[0].name +
         ", dokument version: " +
         bpm_package.children[0].version
      </expression>
   </script>
</action>

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
1 REPLY 1

saper
Champ in-the-making
Champ in-the-making
fixed
bpm_package.children[0].properties['cm:versionLabel'];