How to Automatic Activity by dynamic?

I have a activity(A). If A have assignment then not automatic. If A not have assignment then automatic. How to Automatic Activity by dynamic?
Parents
  • Eli,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();
Reply
  • Eli,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();
Children
No Data