cancel
Showing results for 
Search instead for 
Did you mean: 

Change the property of aspect from workflow

anfy2002us
Champ in-the-making
Champ in-the-making
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!
3 REPLIES 3

seshu
Champ in-the-making
Champ in-the-making
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

anfy2002us
Champ in-the-making
Champ in-the-making
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();

davidc
Star Contributor
Star Contributor
Take a look at alfresco/extension/lifecycle_processdefinition.xml for a complete example.