Forum Discussion
eli_donahue
8 years agoCommunity Manager
Hi bryans,
It sounds like you need to get the controlled item (ex: the ECO if you are voting on an ECO) for the workflow activity and then check a property on the item. Here's some sample code that might help:
Eli Donahue Aras Labs Software Engineer
Innovator inn = this.getInnovator();
Item controlledItem = this.apply("Get Controlled Item");
bool is_completed = controlledItem.getProperty("is_completed","0");
if (!is_completed)
return inn.newError("Must be complete!");
return this;
Eli
Eli Donahue Aras Labs Software Engineer