feat(REQ-3340) - 移除一些无用逻辑
This commit is contained in:
parent
31fe7e3f8f
commit
ef29a95dfd
@ -208,19 +208,6 @@ public class CustomApproveTaskWithFormCmd extends AbstractCommand<Void> implemen
|
|||||||
.deploymentId(relation.getFormDeploymentId())
|
.deploymentId(relation.getFormDeploymentId())
|
||||||
.singleResult();
|
.singleResult();
|
||||||
Authentication.setAuthenticatedUserId(approver.buildAssigneeId());
|
Authentication.setAuthenticatedUserId(approver.buildAssigneeId());
|
||||||
// formVariables.entrySet().forEach(e -> {
|
|
||||||
// if (e.getValue() instanceof Collection) {
|
|
||||||
// List<String> convertUploads = ((Collection<?>) e.getValue()).stream().map(i -> {
|
|
||||||
// if (i instanceof String) {
|
|
||||||
// return UploadFieldDTO.toObject(String.valueOf(i)).toSpecString();
|
|
||||||
// } else {
|
|
||||||
// ObjectMapper objectMapper = SpringContextUtils.getBean(ObjectMapper.class);
|
|
||||||
// return objectMapper.convertValue(i, UploadFieldDTO.class).toSpecString();
|
|
||||||
// }
|
|
||||||
// }).collect(Collectors.toList());
|
|
||||||
// e.setValue(StringUtils.collectionToCommaDelimitedString(convertUploads));
|
|
||||||
// }
|
|
||||||
// });
|
|
||||||
taskService.completeTaskWithForm(taskId, formDefinition.getId(), null, formVariables);
|
taskService.completeTaskWithForm(taskId, formDefinition.getId(), null, formVariables);
|
||||||
Authentication.setAuthenticatedUserId(null);
|
Authentication.setAuthenticatedUserId(null);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user