RegisterWait() public static method

public static RegisterWait ( int nodeID, System.Guid wfInstanceId, string bookMarkName, string wfContentPath ) : int
nodeID int
wfInstanceId System.Guid
bookMarkName string
wfContentPath string
return int
示例#1
0
        public int RegisterWait(WfContent content, string bookMarkName)
        {
            var myGuid     = _instance.Id;
            var wfNodePath = WorkflowInstancePath;

            return(InstanceManager.RegisterWait(content.Id, myGuid, bookMarkName, wfNodePath));
        }
示例#2
0
        public int[] RegisterWaitForMultipleContent(IEnumerable <WfContent> contents, string bookMarkName)
        {
            var myGuid     = _instance.Id;
            var wfNodePath = WorkflowInstancePath;

            return(contents.Select(content =>
                                   InstanceManager.RegisterWait(content.Id, myGuid, bookMarkName, wfNodePath)).ToArray());
        }
示例#3
0
        public int[] RegisterWaitForMultipleContent(IEnumerable <WfContent> contents, string bookMarkName)
        {
            var myGuid     = _instance.Id;
            var wfNodePath = WorkflowInstancePath;
            var idSet      = new List <int>();

            foreach (var content in contents)
            {
                var id = InstanceManager.RegisterWait(content.Id, myGuid, bookMarkName, wfNodePath);
                idSet.Add(id);
            }
            return(idSet.ToArray());
        }