Commit 698f52f1 authored by wei's avatar wei 🎱

Merge remote-tracking branch 'origin/master'

parents bd25cafe 9f976b42
...@@ -225,7 +225,7 @@ public interface ExtAutoTaskService extends ExtAutoTaskServiceFeign { ...@@ -225,7 +225,7 @@ public interface ExtAutoTaskService extends ExtAutoTaskServiceFeign {
/** /**
* 设置评审通知流程团队变量 * 设置评审通知流程团队变量
* @param id * @param noticeVO
*/ */
void setDesignNoticeTeamRole(ExtDesignReviewNoticeVO noticeVO); void setDesignNoticeTeamRole(ExtDesignReviewNoticeVO noticeVO);
} }
...@@ -57,6 +57,7 @@ import com.yonde.dex.user.common.vo.DxUserInfoVO; ...@@ -57,6 +57,7 @@ import com.yonde.dex.user.common.vo.DxUserInfoVO;
import com.yonde.dex.user.feign.*; import com.yonde.dex.user.feign.*;
import com.yonde.dex.utils.common.utils.DxFileUtils; import com.yonde.dex.utils.common.utils.DxFileUtils;
import com.yonde.dex.version.plugin.common.entity.DxIterationVOHolder; import com.yonde.dex.version.plugin.common.entity.DxIterationVOHolder;
import com.yonde.dex.wfc.common.enums.ProcessStateEnum;
import com.yonde.dex.wfc.common.enums.TaskStateEnum; import com.yonde.dex.wfc.common.enums.TaskStateEnum;
import com.yonde.dex.wfc.common.vo.*; import com.yonde.dex.wfc.common.vo.*;
import com.yonde.dex.wfc.feign.api.WfcActivityFeign; import com.yonde.dex.wfc.feign.api.WfcActivityFeign;
...@@ -213,11 +214,21 @@ public class ExtAutoTaskServiceImpl implements ExtAutoTaskService { ...@@ -213,11 +214,21 @@ public class ExtAutoTaskServiceImpl implements ExtAutoTaskService {
} }
} }
} }
if (!StrUtil.isEmpty(userList)){
//流程 消息发送设置变量 //流程 消息发送设置变量
String teamRole = "messageDesign"; String teamRole = "messageDesign";
// varMap.put("wf_act_TeamRole_Responsible_userList", userList); // 设计评审通知流程模板 key
// wfcProcessFeign.setProcessVariables(processInstanceId, varMap); String PROCESS_KEY= "ExtDesignReviewNoticeWF";
//"wf_act_TeamRole_Responsible_userList"
String varUser = "wf_act_TeamRole_" + teamRole + "_userList";
Map<String, Object> inspectors = new HashMap<>();
inspectors.put(varUser, userList);
DxWfProcessSearchVO searchVO = DxWfProcessSearchVO.builder().processDefKey(PROCESS_KEY).pboClass(noticeVO.getDxClassname()).pboId(noticeVO.getId()).state(String.valueOf(ProcessStateEnum.RUNNING)).build();
List<DxWfProcessVO> content = wfcProcessFeign.getProcessList(searchVO, 1, 10).getContent();
if (CollectionUtils.isNotEmpty(content)) {
wfcProcessFeign.setProcessVariables(content.get(0).getId(), inspectors);
}
}
} }
@SneakyThrows @SneakyThrows
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment