WhiskWork.Core.WorkflowRepository.GetWorkItem C# (CSharp) 메소드

GetWorkItem() 공개 메소드

public GetWorkItem ( string id ) : WorkItem
id string
리턴 WorkItem
        public WorkItem GetWorkItem(string id)
        {
            return _workItemRepsitory.GetWorkItem(id);
        }

Usage Example

예제 #1
0
 private void ThrowInvalidOperationExceptionIfParentIsParallelLocked(WorkItem workItem)
 {
     if (workItem.Parent != null)
     {
         var parent = WorkflowRepository.GetWorkItem(workItem.Parent.Id);
         if (parent.Status == WorkItemStatus.ParallelLocked)
         {
             throw new InvalidOperationException("Cannot delete workitem which is child of paralleled workitem");
         }
     }
 }
All Usage Examples Of WhiskWork.Core.WorkflowRepository::GetWorkItem