|
版本: |
BeX5V3.3 |
小版本号: |
|
|
|
数据库: |
|
服务器操作系统: |
|
应用服务器: |
|
客户端操作系统: |
|
浏览器: |
|
|
|
比如我自建一个流转流程(抄送),怎么设置一开打关闭以后这个流程就是完毕?其实就是一个规则里面打开后自动关闭那个!只是现在我在Java里面自己写的!代码如下:
// 任务标题
String name = "抄送:日报请求-" + BizUtils.getRelationValue("PO_B_SECURITY", key, null, null, "SECURITY_NAME", "/OAPROJECT/SECURITY/data") + "-"
+ BizUtils.getRelationValue("PO_B_SECURITY", key, null, null, "SECURITY_DEPT", "/OAPROJECT/SECURITY/data");
String process = "/OAPROJECT/SECURITY/process/PO_B_SECURITY/newProcess";
String activity = "noticeArchive1";
// 提交界面路径
String sCURL = "/OAPROJECT/SECURITY/process/PO_B_SECURITY/businessActivity2.a";
String sEURL = "/OAPROJECT/SECURITY/process/PO_B_SECURITY/noticeArchive1.a";
// 任务执行者
List<OrgUnit> OrgUnit;//findOrgUnitsHasCActivity
OrgUnit = OrgUtils.findOrgUnitsHasActivity(process, activity, null, true);
// 创建任务
Task task = TaskHelper.createTask(name, process, activity, sCURL, sEURL, key, OrgUnit, null);
task.save();
|
|