public PublicationStep Execute(VerificationStep step, Staff executingStaff, IWorkflow workflow) { // this operation is legal even if the step was never started, therefore need to supply the performer step.Complete(executingStaff); var publicationStep = CreateScheduledPublicationStep(executingStaff, step); workflow.AddEntity(publicationStep); return(publicationStep); }
public void Test_Complete() { Procedure procedure = new Procedure(); Report report = new Report(procedure); ReportPart reportPart = new ReportPart(report, 0); Staff performer = new Staff(); InterpretationStep previousStep = new InterpretationStep(procedure); previousStep.ReportPart = reportPart; VerificationStep procedureStep = new VerificationStep(previousStep); procedureStep.Start(performer); procedureStep.Complete(); Assert.AreEqual(performer, procedureStep.ReportPart.Verifier); }
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 PublicationStep Execute(VerificationStep step, Staff executingStaff, IWorkflow workflow) { // this operation is legal even if the step was never started, therefore need to supply the performer step.Complete(executingStaff); var publicationStep = CreateScheduledPublicationStep(executingStaff, step); 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; }