feat(REQ-3647) - 操作日志,移除动作的括号
This commit is contained in:
parent
d52ea13194
commit
cb669c2fc5
@ -52,7 +52,7 @@ public class CustomActivityTriggerCmd extends AbstractCommand<Void> implements S
|
||||
if (Objects.isNull(task)) {
|
||||
throw new WorkflowEngineException(ACTIVITY_TRIGGER_NOT_EXISTS, dto.getTriggerId());
|
||||
}
|
||||
addComment(commandContext, task, COMMENT_TYPE_OPERATION_DESC, "(已同意)");
|
||||
addComment(commandContext, task, COMMENT_TYPE_OPERATION_DESC, "已同意");
|
||||
RuntimeService runtimeService = processEngineConfiguration.getRuntimeService();
|
||||
runtimeService.trigger(dto.getTriggerId());
|
||||
return null;
|
||||
|
||||
@ -134,7 +134,7 @@ public class CustomCancelProcessInstanceCmd extends AbstractCommand<Void> implem
|
||||
|
||||
// 添加自定义的节点,用于展示最后的操作
|
||||
TaskEntity task = createVirtualTask(commandContext, extAxHiTaskInstService, processInstanceId,
|
||||
nodeName, NODE_CANCEL.getType(), reason, initiator, CANCELLED.getStatus(), new AddComment("(" + CANCELLED.getDesc() + ")"));
|
||||
nodeName, NODE_CANCEL.getType(), reason, initiator, CANCELLED.getStatus(), new AddComment(CANCELLED.getDesc()));
|
||||
|
||||
batchAddAttachment(commandContext, processInstanceId, task, attachmentList, initiator);
|
||||
|
||||
|
||||
@ -69,7 +69,7 @@ public class CustomRejectionTaskCmd extends AbstractCommand<Void> implements Ser
|
||||
if (Objects.nonNull(operationDesc)) {
|
||||
this.operationDesc = operationDesc;
|
||||
} else {
|
||||
this.operationDesc = "(已驳回)";
|
||||
this.operationDesc = "已驳回";
|
||||
}
|
||||
this.attachmentList = dto.getAttachmentList();
|
||||
this.approver = dto.getApprover();
|
||||
|
||||
@ -93,7 +93,7 @@ public class TaskEntityEventHandle implements EntityEventHandle<TaskEntity> {
|
||||
log.setNodeMode((isNodeStarter ? BpmnFlowNodeMode.GENERAL : getNodeMode(flowElement)).getType());
|
||||
log.setTaskId(taskEntity.getId());
|
||||
String operationDesc = taskEntity.getVariable(COMMENT_TYPE_OPERATION_DESC, String.class);
|
||||
log.setOperationDesc(StringUtils.hasText(operationDesc) ? operationDesc : "(" + HANDLING.getDesc() + ")");
|
||||
log.setOperationDesc(StringUtils.hasText(operationDesc) ? operationDesc : HANDLING.getDesc());
|
||||
log.setStartTime(taskEntity.getCreateTime());
|
||||
log.setStatus(PROCESSING.getStatus());
|
||||
log.setSignature(getActivitySignature(flowElement));
|
||||
@ -143,7 +143,7 @@ public class TaskEntityEventHandle implements EntityEventHandle<TaskEntity> {
|
||||
ExtAxProcessLog queryLog = new ExtAxProcessLog();
|
||||
queryLog.setProcessInstanceId(taskEntity.getProcessInstanceId());
|
||||
queryLog.setTaskId(taskEntity.getId());
|
||||
queryLog.setOperationDesc("(" + HANDLING.getDesc() + ")");
|
||||
queryLog.setOperationDesc(HANDLING.getDesc());
|
||||
ExtAxProcessLog update = new ExtAxProcessLog();
|
||||
|
||||
ProcessEngineConfigurationImpl processEngineConfiguration = CommandContextUtil.getProcessEngineConfiguration();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user