internal static WorkflowInstanceStepVm FromModel(WorkflowInstanceStep workflowInstanceStep) { WorkflowInstanceStepVm vm = new WorkflowInstanceStepVm(); vm.Id = workflowInstanceStep.Id; vm.IsComplete = workflowInstanceStep.IsComplete; vm.IsSkipped = workflowInstanceStep.IsSkipped; vm.WorkflowInstanceId = workflowInstanceStep.WorkflowInstanceId; vm.WorkflowStepId = workflowInstanceStep.WorkflowStepId; return vm; }
internal static WorkflowInstanceStepVm FromModel(WorkflowInstanceStep workflowInstanceStep) { WorkflowInstanceStepVm vm = new WorkflowInstanceStepVm(); vm.Id = workflowInstanceStep.Id; vm.IsComplete = workflowInstanceStep.IsComplete; vm.IsSkipped = workflowInstanceStep.IsSkipped; vm.WorkflowInstanceId = workflowInstanceStep.WorkflowInstanceId; vm.WorkflowStepId = workflowInstanceStep.WorkflowStepId; return(vm); }
internal static WorkflowInstanceVm FromModel(WorkflowInstance workflowInstance) { WorkflowInstanceVm vm = new WorkflowInstanceVm(); List <WorkflowInstanceStepVm> steps = new List <WorkflowInstanceStepVm>(); vm.Id = workflowInstance.Id; vm.OrganizationId = workflowInstance.OrganizationId; vm.WorkflowId = workflowInstance.WorkflowId; foreach (var step in workflowInstance.WorkflowInstanceSteps) { steps.Add(WorkflowInstanceStepVm.FromModel(step)); } vm.WorkflowInstanceSteps = steps; vm.IsComplete = workflowInstance.IsComplete; return(vm); }