public WorkItem GetWorkItem(string id)
{
return _workItemRepsitory.GetWorkItem(id);
}
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"); } } }