pre fix issue #I4Z9CQ 不能恢复第二节点为运行时选择执行角色/账号的流程

This commit is contained in:
yubaolee
2022-04-01 22:21:07 +08:00
parent c19802eb55
commit 9412ee4a89

View File

@@ -770,6 +770,12 @@ namespace OpenAuth.App
var wfruntime = new FlowRuntime(flowInstance); var wfruntime = new FlowRuntime(flowInstance);
var user = _auth.GetCurrentUser(); var user = _auth.GetCurrentUser();
if (wfruntime.nextNode.setInfo.NodeDesignate == Setinfo.RUNTIME_SPECIAL_USER
|| wfruntime.nextNode.setInfo.NodeDesignate == Setinfo.RUNTIME_SPECIAL_ROLE)
{
throw new Exception("暂不支持【第二执行节点为运行时指定角色/账号执行】的流程恢复");
}
#region #region
flowInstance.ActivityId = wfruntime.nextNodeId; flowInstance.ActivityId = wfruntime.nextNodeId;
flowInstance.ActivityType = wfruntime.GetNextNodeType(); flowInstance.ActivityType = wfruntime.GetNextNodeType();