/// <summary> /// Approve Task /// </summary> /// <param name="workflowOid"></param> /// <param name="taskOid"></param> /// <param name="message"></param> /// <param name="correlationId"></param> /// <param name="taskCode"></param> /// <param name="parameters"></param> /// <param name="result"></param> private void ApproveTask(string workflowOid, string taskOid, string message, int correlationId, string taskCode, IEnumerable <PropertyInfo> parameters, string result) { TasksService.AddTraceToWorkflow(new AddTraceToWorkflowRequest { WorkflowOid = workflowOid, TaskOid = taskOid, User = HttpContext.User.Identity.Name, Message = message }); TasksService.ApproveTask(new ApproveTaskRequest { TaskId = taskOid, CorrelationId = correlationId, TaskCode = taskCode, Result = result, UserName = HttpContext.User.Identity.Name, WorkflowId = workflowOid, Parameters = new PropertyInfos(parameters) }); }