Merge branch 'feature/REQ-6570' into dev
This commit is contained in:
commit
6c51985a03
@ -52,9 +52,11 @@ public class AttachmentDTO implements Serializable {
|
||||
|
||||
/**
|
||||
* 文件描述
|
||||
* 该数据无实际作用
|
||||
*/
|
||||
@ApiModelProperty(value = "文件描述")
|
||||
@IndexField(exist = false)
|
||||
@Deprecated
|
||||
private String description;
|
||||
|
||||
/**
|
||||
|
||||
@ -29,6 +29,7 @@ import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Objects;
|
||||
|
||||
import static cn.axzo.workflow.common.code.BpmnTaskRespCode.TASK_HAS_BEEN_COMPLETE;
|
||||
import static cn.axzo.workflow.common.code.BpmnTaskRespCode.TRANSFER_TO_SELF;
|
||||
import static cn.axzo.workflow.common.code.OtherRespCode.ASSIGNEE_NODE_ID_NOT_EXISTS;
|
||||
import static cn.axzo.workflow.common.constant.BpmnConstants.COMMENT_TYPE_ADVICE;
|
||||
@ -100,6 +101,9 @@ public class CustomTransferUserTaskCmd extends AbstractCommand<Void> implements
|
||||
|
||||
TaskService taskService = processEngineConfiguration.getTaskService();
|
||||
TaskEntity task = (TaskEntity) taskService.createTaskQuery().taskId(originTaskId).singleResult();
|
||||
if (Objects.isNull(task)) {
|
||||
throw new WorkflowEngineException(TASK_HAS_BEEN_COMPLETE);
|
||||
}
|
||||
|
||||
validTargetAssigneeNodeId(task.getProcessDefinitionId());
|
||||
|
||||
|
||||
@ -267,7 +267,7 @@ public class CustomTaskHelper {
|
||||
Authentication.setAuthenticatedUserId(assigner.buildAssigneeId());
|
||||
attachmentList.forEach(dto -> {
|
||||
Attachment attachment = taskService.createAttachment(dto.getType().getType(), task.getId(), processInstanceId,
|
||||
dto.getName(), dto.getDescription(), dto.getUrl());
|
||||
dto.getName(), dto.getFileKey(), dto.getUrl());
|
||||
taskService.saveAttachment(attachment);
|
||||
});
|
||||
task.setTransientVariableLocal(TASK_ATTACHMENTS_VAR_NAME, attachmentList);
|
||||
|
||||
@ -1821,7 +1821,8 @@ public class BpmnProcessInstanceServiceImpl implements BpmnProcessInstanceServic
|
||||
.id(e.getId())
|
||||
.type(type)
|
||||
.name(e.getName())
|
||||
.description(e.getDescription())
|
||||
// .description(e.getDescription())
|
||||
.fileKey(e.getDescription())
|
||||
.url(e.getUrl())
|
||||
.build())
|
||||
.collect(Collectors.toList());
|
||||
|
||||
Loading…
Reference in New Issue
Block a user