|
@@ -289,8 +289,11 @@ public class FlwInstanceServiceImpl implements IFlwInstanceService {
|
|
|
if (definition == null) {
|
|
if (definition == null) {
|
|
|
throw new ServiceException(ExceptionCons.NOT_FOUNT_DEF);
|
|
throw new ServiceException(ExceptionCons.NOT_FOUNT_DEF);
|
|
|
}
|
|
}
|
|
|
- String message = bo.getMessage();
|
|
|
|
|
String userIdStr = LoginHelper.getUserIdStr();
|
|
String userIdStr = LoginHelper.getUserIdStr();
|
|
|
|
|
+ if (!LoginHelper.isSuperAdmin() && !instance.getCreateBy().equals(userIdStr)) {
|
|
|
|
|
+ throw new ServiceException("权限不足,无法撤销流程!");
|
|
|
|
|
+ }
|
|
|
|
|
+ String message = bo.getMessage();
|
|
|
BusinessStatusEnum.checkCancelStatus(instance.getFlowStatus());
|
|
BusinessStatusEnum.checkCancelStatus(instance.getFlowStatus());
|
|
|
FlowParams flowParams = FlowParams.build()
|
|
FlowParams flowParams = FlowParams.build()
|
|
|
.message(message)
|
|
.message(message)
|