public async Task Construct(WorkflowRequest request, WorkflowResponse response)
 {
     SetRequestViewModel(await request.MapWorkflowMasterToWorkflowMasterVm());
     SetResponseViewModel(await response.MapWorkflowMasterToWorkflowMasterVm());
     SetTaskDescription(request.workflow.TaskID);
     SetWorkflowDocument();
 }
Ejemplo n.º 2
0
        public async Task Construct(WorkflowRequest request, WorkflowResponse response, string userRole)
        {
            string projectStage = _ampRepository.GetProject(request.workflow.ProjectID).Stage;

            SetRequestViewModel(await request.MapWorkflowMasterToWorkflowMasterVm());
            SetResponseViewModel(await response.MapWorkflowMasterToWorkflowMasterVm());
            SetApprovalType(configuration.RequiresDelegatedAuthorityApproval(TaskID));
            SetDocumentRequired(configuration.DocumentRequired(TaskID, projectStage));
            SetTaskDescription(TaskID);
            SetWorkflowDocument();
            SetUserRole(userRole);
        }