Forum Discussion
3 Replies
- dlindingerIdeator IYou could add an activity before activity(a) that is automatic with method hooked onActivate. From that method, query for activity(a) and check its assignments. If it does not have one, then set the automatic boolean of activity(a) to true. Dennis
- Former_MemberIdeator IEli,Thank you!! I dynamically update workflow assignments(closed) but activity doesn't automatic. It still wait the assignment vote, it doesn't automatic. Item qry1 = this.newItem("Workflow Process Path","get"); qry1.setAttribute("select","id"); qry1.setProperty("source_id",act.getID()); qry1.setProperty("name","Approve"); Item path = qry1.apply(); Item assignment = this.newItem("Activity Assignment",""); assignment.setAction("get"); assignment.setProperty("source_id", act.getID()); assignment = assignment.apply(); assignment.setAction("edit"); assignment.setProperty("closed_by", "30B991F927274FA3829655F50C99472E"); assignment.setProperty("comments", "System_Auto"); assignment.setProperty("path","Approve"); assignment = assignment.apply(); path.setAction("edit"); path.setProperty("is_default","1"); path = path.apply();
- eli_donahueNew MemberHi Bryan, The following Aras Labs project provides an example on how to dynamically update workflow assignments. Check it out and post back if you have any further questions.
Eli Eli Donahue Aras Labs Software EngineerArasLabs/auto-workflow-assignment
auto-workflow-assignment - Demonstrates how to implement dynamic workflow assignments based on properties of the controlled item.