|
发表于 2017-5-31 16:04:24
|
显示全部楼层
这个目前没有实现,可以在流转查询后事件中通过代码实现如下:在活动环节2的事件中设置直接跳转到活动环节4
- public static void businessActivity2AfterAdvanceQuery() {
- ProcessControl control = (ProcessControl) ContextHelper.getActionContext().getActionResult();
- if (control.hasFlowTo()) {
- control.clearFlowTo();
- }
- // 把businessActivity4创建为ProcessControl的可运行环节
- String activityId = CommonUtils.createGUID();
- RunnableActivity rn = new RunnableActivity("businessActivity4", "true", "true", "活动环节4", activityId);
- control.setRunableActivity(rn);
- // 创建新的ProcessControlItem
- ProcessControlItem item = new ProcessControlItem();
- Task task = ProcessUtils.getProcessContext().getTask();
- item.setProcess(task.getProcess());
- item.setUnit("businessActivity4");
- item.setActivityId(activityId);
- item.addExecutor(ContextHelper.getPersonMemberWithAgent());
- item.addExecutorRange(ContextHelper.getPersonMemberWithAgent());
- Task itemTask = item.getTask();
- itemTask.setId(CommonUtils.createGUID());
- itemTask.setEURL("$UI/appdemo/test/process/modifyFlowto/businessActivity4.a");
- itemTask.setLock(CommonUtils.createGUID());
- itemTask.setName("活动环节4:修改flowTo");
- itemTask.setActivity("businessActivity4");
- itemTask.setActivityInTemplate("businessActivity4");
- item.getTask().setEURL("$UI/appdemo/test/process/modifyFlowto/businessActivity4.a");
- control.addFlowTo(item);
- }
复制代码
|
|