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
Esempio n. 1
0
        public int RegisterWait(WfContent content, string bookMarkName)
        {
            var myGuid     = _instance.Id;
            var wfNodePath = WorkflowInstancePath;

            return(InstanceManager.RegisterWait(content.Id, myGuid, bookMarkName, wfNodePath));
        }
Esempio n. 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());
        }
Esempio n. 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());
        }