public void MoveWorkItem(WorkItem workItem, WorkStep toStep) { using (WorkflowRepository.BeginTransaction()) { Move(workItem, toStep); WorkflowRepository.CommitTransaction(); } }
public void CreateWorkItem(WorkItem newWorkItem) { using (WorkflowRepository.BeginTransaction()) { Create(newWorkItem); WorkflowRepository.CommitTransaction(); } }
public void DeleteWorkItem(string id) { using (WorkflowRepository.BeginTransaction()) { var workItem = WorkflowRepository.GetWorkItem(id); ThrowInvalidOperationExceptionIfParentIsParallelLocked(workItem); DeleteWorkItemRecursively(workItem); WorkflowRepository.CommitTransaction(); } }