Modify Content by workflow

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2008 10:01 AM
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
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
Labels:
- Labels:
-
Archive
1 REPLY 1

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2008 04:33 PM
Try this modification:
bpm_package.children[0].properties["my:notes"] = "Approved";bpm_package.children[0].save();
