cancel
Showing results for 
Search instead for 
Did you mean: 

properties of a document involved in a workflow

roseta
Champ in-the-making
Champ in-the-making
I'm working with adavanced workflows in xml files and java script sentences.

I would like to copy the information that the user who receives the workflow has entered in the bpm_description field of the taks node, into my own "description" field I have in my cusomized type of document. The document is involved in the current workflow is executing…

I think it can be something like this, I just don't know how to ACCESS TO THE DOCUMENT PROPERTY FIELDS:


<transition name="OK" to="ok">
            <action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
               <runas>admin</runas>
                  <script>
                  <variable name="document" access="read, write" />
                  <variable name="bpm_description" access="read" />
                  <expression>
                  document.property.description=bpm_description;
                  </expression>
                  </script>
            </action>
</transition>


Thanks!
1 REPLY 1

pavaniakella
Champ in-the-making
Champ in-the-making
Hi,

Did you find any solution for this?
I also want to access the document/node properties in workflow.
Please post the solution if you got some solution.

Regards,
Pavani