cancel
Showing results for 
Search instead for 
Did you mean: 

Modify Content by workflow

zed
Champ in-the-making
Champ in-the-making
Hi, I've my personal content my:document, whith a set of fields, including the field "Notes" (String) and the filed "Archive" (integer).

So, I want modify the value of each field (Notes and Archive) by the execution of a step of my workflow

I try with

  <task-node name="approved">
        <event type="node-enter">
            <!– Update the status to Approved when we enter this task –>
            <action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
                <script>
         
         bpm_package.children[0].properties["my:notes"] = "Approved";
               
                </script>
            </action>
        </event>

        <task name="wf:approvedTask" swimlane="initiator" />
        <transition name="" to="end" />
    </task-node>

but don't works.

Why? where i wrong?

Thanks
1 REPLY 1

raweck
Champ on-the-rise
Champ on-the-rise
Try this modification:

bpm_package.children[0].properties["my:notes"] = "Approved";
bpm_package.children[0].save();