public void Execute(VerificationStep step, Staff executingStaff, IWorkflow workflow) { // if not assigned, assign if (step.AssignedStaff == null) { step.Assign(executingStaff); } // put in-progress step.Start(executingStaff); }
public ReportingProcedureStep Execute(ReportingProcedureStep step, Staff executingStaff, IWorkflow workflow) { UpdateStep(step, executingStaff); var verificationStep = new VerificationStep(step); // supervisor can be null, in which case the verification step is unassigned. verificationStep.Assign(step.ReportPart.Supervisor); workflow.AddEntity(verificationStep); return(verificationStep); }
public ReportingProcedureStep Execute(ReportingProcedureStep step, Staff executingStaff, IWorkflow workflow) { UpdateStep(step, executingStaff); var verificationStep = new VerificationStep(step); verificationStep.Assign(executingStaff); verificationStep.Complete(executingStaff); workflow.AddEntity(verificationStep); var publicationStep = CreateScheduledPublicationStep(executingStaff, verificationStep); workflow.AddEntity(publicationStep); return(publicationStep); }
public ReportingProcedureStep Execute(ReportingProcedureStep step, Staff executingStaff, IWorkflow workflow) { UpdateStep(step, executingStaff); var verificationStep = new VerificationStep(step); verificationStep.Assign(executingStaff); verificationStep.Complete(executingStaff); workflow.AddEntity(verificationStep); var publicationStep = CreateScheduledPublicationStep(executingStaff, verificationStep); workflow.AddEntity(publicationStep); return publicationStep; }
public ReportingProcedureStep Execute(ReportingProcedureStep step, Staff executingStaff, IWorkflow workflow) { UpdateStep(step, executingStaff); var verificationStep = new VerificationStep(step); // supervisor can be null, in which case the verification step is unassigned. verificationStep.Assign(step.ReportPart.Supervisor); workflow.AddEntity(verificationStep); return verificationStep; }