Example #1
0
        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));
        }
Example #2
0
        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));
        }
Example #3
0
        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);
        }
Example #4
0
 private string GetFileName(PendingWorkflowItem pendingWorkflowItem)
 {
     return(pendingWorkflowItem.Name + ".config");
 }
Example #5
0
 private string GetFileName(PendingWorkflowItem pendingWorkflowItem)
 {
     return pendingWorkflowItem.Name + ".config";
 }