Change the property of aspect from workflow
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2007 09:29 AM
I have made my custom aspect, and i have to change the value of a property from a workflow, and my question is is there any method in the javascirpt api that take/change the value of a property.
Thanks in advance!
Thanks in advance!
Labels:
- Labels:
-
Archive
3 REPLIES 3

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2007 02:59 PM
hi,
You can change the properties of resources like this. suppose your property is status
bpm_package.children.properties["pm:status"] = "Approved";
where i is your resource sequence and pm is your model namespace
You can change the properties of resources like this. suppose your property is status
bpm_package.children.properties["pm:status"] = "Approved";
where i is your resource sequence and pm is your model namespace
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2007 03:18 AM
Yes i did it this way and it works when I use
bpm_package.children[i].properties["my:status"] = "Edit";bpm_package.children[i].save();

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2007 08:36 AM
Take a look at alfresco/extension/lifecycle_processdefinition.xml for a complete example.
