2,543
社区成员
发帖
与我相关
我的任务
分享
CommandExecutor commandExecutor = taskServiceImpl.getCommandExecutor();
commandExecutor.execute(new JumpTaskCmd(currentTaskEntity, targetActivity, variables));
//execute方法中:
// 完成待办任务
Context.getCommandContext().getTaskEntityManager().deleteTask(taskEntity,
TaskEntity.DELETE_REASON_COMPLETED, false); // DELETE_REASON_DELETED DELETE_REASON_COMPLETED
// 跳转任务
ExecutionEntity execution = taskEntity.getExecution();
execution.setActivity(targetActivity);
execution.performOperation(AtomicOperation.ACTIVITY_START);