|
@@ -121,6 +121,7 @@ public class ActivitiServiceImpl implements ActivitiService {
|
|
|
* @param map
|
|
|
*/
|
|
|
@Override
|
|
|
+ @Transactional
|
|
|
public ProcessInstance startActivity(String processKey, Map<String, Object> map) {
|
|
|
ProcessInstance processInstance = null;
|
|
|
if (Objects.nonNull(map) && map.size() > 0) {
|
|
@@ -132,8 +133,7 @@ public class ActivitiServiceImpl implements ActivitiService {
|
|
|
ProcessInstance finalProcessInstance = processInstance;
|
|
|
map.computeIfAbsent(SystemConstant.FLOW_ID, v -> finalProcessInstance.getId());
|
|
|
map.computeIfAbsent(SystemConstant.FLOW_STATUS, v -> FlowStatusEnum.START);
|
|
|
- ActivitiService activitiService = SpringContextHolder.getBean(ActivitiService.class);
|
|
|
- activitiService.flowStart(map);
|
|
|
+ this.flowApproveStart(map);
|
|
|
return processInstance;
|
|
|
}
|
|
|
|
|
@@ -236,9 +236,7 @@ public class ActivitiServiceImpl implements ActivitiService {
|
|
|
*
|
|
|
* @param map
|
|
|
*/
|
|
|
- @Override
|
|
|
- @Transactional
|
|
|
- public void flowStart(Map<String, Object> map) {
|
|
|
+ public void flowApproveStart(Map<String, Object> map) {
|
|
|
SysUser sysUser = (SysUser) ServletUtil.getRequestUser();
|
|
|
|
|
|
if (Objects.isNull(map.get(SystemConstant.FLOW_ID))) {
|