Beispiel #1
0
 public void FillInstanceMap(ActivityInstanceMap instanceMap)
 {
     if (this.firstWorkItem != null)
     {
         ActivityInstanceMap.IActivityReference firstWorkItem = this.firstWorkItem as ActivityInstanceMap.IActivityReference;
         if (firstWorkItem != null)
         {
             instanceMap.AddEntry(firstWorkItem, true);
         }
         if ((this.workItemQueue != null) && (this.workItemQueue.Count > 0))
         {
             for (int i = 0; i < this.workItemQueue.Count; i++)
             {
                 firstWorkItem = this.workItemQueue[i] as ActivityInstanceMap.IActivityReference;
                 if (firstWorkItem != null)
                 {
                     instanceMap.AddEntry(firstWorkItem, true);
                 }
             }
         }
     }
 }
Beispiel #2
0
        public void FillInstanceMap(ActivityInstanceMap instanceMap)
        {
            if (_firstWorkItem != null)
            {
                ActivityInstanceMap.IActivityReference activityReference = _firstWorkItem as ActivityInstanceMap.IActivityReference;
                if (activityReference != null)
                {
                    instanceMap.AddEntry(activityReference, true);
                }

                if (_workItemQueue != null && _workItemQueue.Count > 0)
                {
                    for (int i = 0; i < _workItemQueue.Count; i++)
                    {
                        activityReference = _workItemQueue[i] as ActivityInstanceMap.IActivityReference;
                        if (activityReference != null)
                        {
                            instanceMap.AddEntry(activityReference, true);
                        }
                    }
                }
            }
        }