String taskCommandName = taskCommandInst.getName();
// 设置流程自动结束信息 autoEnd
this.setCommandId(taskCommandInst.getId());
this.setCommandType(taskCommandType);
if (taskCommandName == null) {
TaskCommandDef taskCommandDef = Context.getProcessEngineConfiguration().getTaskCommandDefMap().get(taskCommandType);
if (taskCommandDef != null) {
this.setCommandMessage(taskCommandDef.getName());
}
} else {
this.setCommandMessage(taskCommandName);
}
} else {
this.setCommandId(TaskCommandType.AUTOEND);
this.setCommandType(TaskCommandType.AUTOEND);
TaskCommandDef taskCommandDef = Context.getProcessEngineConfiguration().getTaskCommandDefMap().get(TaskCommandType.AUTOEND);
if (taskCommandDef != null) {
this.setCommandMessage(taskCommandDef.getName());
}
}
}