feat(flow) flowRecord parse attachmentIds

approve-sys
bob 2 years ago
parent 9681974c03
commit 13a0ce1cf5

@ -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

Loading…
Cancel
Save