机器人节点自动提交处理

This commit is contained in:
dxfeng 2025-04-11 17:32:48 +08:00
parent 5a0b7bb5e1
commit b774090058
1 changed files with 1 additions and 7 deletions

View File

@ -2,7 +2,6 @@ package weaver.interfaces.secret.action;
import com.engine.secret.exception.CustomizeRunTimeException;
import com.engine.secret.util.FlowUtil;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.lang.StringUtils;
import weaver.common.DateUtil;
import weaver.conn.RecordSet;
@ -12,7 +11,6 @@ import weaver.soa.workflow.request.Property;
import weaver.soa.workflow.request.RequestInfo;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
@ -61,12 +59,8 @@ public class ApprovalReviewEndAction implements Action {
// 更新完成后自动提交流程到下一节点
rs.writeLog("mainRequestId==" + mainRequestId);
List<Integer> currentUserIds = FlowUtil.getCurrentUserIds(mainRequestId);
if (CollectionUtils.isEmpty(currentUserIds)) {
throw new CustomizeRunTimeException("requestId[" + mainRequestId + "],流程提交失败,未获取到当前节点处理人");
}
String options = requestInfo.getCreatorid() + "-自动提交流程-" + DateUtil.getFullDate();
String submitResult = FlowUtil.submitWorkflowRequest(mainRequestId, currentUserIds.get(0), options);
String submitResult = FlowUtil.submitWorkflowRequest(mainRequestId, options);
if (!"success".equals(submitResult)) {
throw new CustomizeRunTimeException("requestId[" + mainRequestId + "],流程提交失败");
}