AnsweredAssumed Answered

Update Aspect property in a Javascript controller

Question asked by mduduzi on May 23, 2013
Latest reply on May 24, 2013 by mduduzi
Hi,

I have a custom aspect with one property, that is attached to a person object. The property is of type a boolean type. On a controller I check if the property exists on the initiator of an workflow and if does I update the property of that aspect. Please see the snippet below:

if (!initiator.hasAspect("alvexoc:orgchartMember"))
{
   initiator.addAspect("alvexoc:orgchartMember");
   initiator.properties["alvexoc:outOfOffice"]=true;
}
else
{
   initiator.properties["alvexoc:outOfOffice"]=true;
}   


Is the above possible in a javascript controller?
Thanks!

Outcomes