Example #1
0
        private void AddWorkflowCommentLog(ContentItem contentItem, int userId, string userComment)
        {
            if (string.IsNullOrEmpty(userComment))
            {
                return;
            }
            var state = _workflowStateRepository.GetWorkflowStateByID(contentItem.StateID);

            AddWorkflowLog(contentItem, state, WorkflowLogType.CommentProvided, userId, userComment);
        }
        public Entities.Workflow GetWorkflow(ContentItem item)
        {
            var state = _stateRepository.GetWorkflowStateByID(item.StateID);

            return(state == null ? null : GetWorkflow(state.WorkflowID));
        }
 public WorkflowState GetWorkflowState(int stateId)
 {
     return(_workflowStateRepository.GetWorkflowStateByID(stateId));
 }