} else {
// 非主令牌分支令牌的处理
CommandExecutor commandExecutor = Context.getProcessEngineConfiguration().getCommandExecutor();
TaskQuery taskQuery = new TaskQueryImpl(commandExecutor);
Long taskNum = taskQuery.tokenId(getToken().getId()).nodeId(flowNode.getId()).count();
if (taskNum != 0) {
// 分支令牌经过这个节点则允许正常退回
customEnd(taskCommandInst, taskComment);
ExecutionContext executionContext = ProcessObjectFactory.FACTORYINSTANCE.createExecutionContext(getToken());
executionContext.setToFlowNode(flowNode);