|
|
|
@ -826,8 +826,10 @@ public class FlowTaskServiceImpl extends FlowServiceFactory implements IFlowTask
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
Map<String, Object> variables = ( Map<String, Object>)MapUtils.getMap(result, "form",new HashMap<>());
|
|
|
|
|
String attachmentIdsStr = MapUtils.getString(variables, ATTACHMENT_IDS_VARIABLE_KEY);
|
|
|
|
|
|
|
|
|
|
// get AttachmentIds
|
|
|
|
|
if (!variables.containsKey(ATTACHMENT_IDS_VARIABLE_KEY) || StringUtils.isBlank(MapUtils.getString(variables,ATTACHMENT_IDS_VARIABLE_KEY))) {
|
|
|
|
|
if (!variables.containsKey(ATTACHMENT_IDS_VARIABLE_KEY) || StringUtils.isBlank(attachmentIdsStr) || StrUtil.equals("[]",attachmentIdsStr)) {
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
// get Attachment info
|
|
|
|
|