public PendingWorkflowItemPath(PendingWorkflowItem pendingWorkflowItem) { var repositoryPath = new RepositoryPath(pendingWorkflowItem.Repository); this.PhysicalPath = SettingFile = Path.Combine(repositoryPath.PhysicalPath, PATH_NAME, pendingWorkflowItem.RoleName, GetFileName(pendingWorkflowItem)); this.VirtualPath = UrlUtility.Combine(repositoryPath.VirtualPath, PATH_NAME, pendingWorkflowItem.RoleName, GetFileName(pendingWorkflowItem)); }
private void CreatePendingWorkflowItem(Repository repository, TextContent content, string userName, Workflow workflow, WorkflowItem workflowItem, string previousComment) { PendingWorkflowItem pendingWorkflowItem = new PendingWorkflowItem() { Repository = repository, Name = content.UUID, WorkflowName = workflow.Name, WorkflowItemSequence = workflowItem.Sequence, ItemDisplayName = workflowItem.DisplayName, RoleName = workflowItem.RoleName, ContentFolder = content.FolderName, ContentUUID = content.UUID, ContentSummary = content.GetSummary(), CreationUtcDate = DateTime.UtcNow, CreationUser = userName, PreviousComment = previousComment }; PendingWorkflowItemProvider.Add(pendingWorkflowItem); }
private string GetFileName(PendingWorkflowItem pendingWorkflowItem) { return(pendingWorkflowItem.Name + ".config"); }
private string GetFileName(PendingWorkflowItem pendingWorkflowItem) { return pendingWorkflowItem.Name + ".config"; }