/// <summary> Checks if the calc factor variance is valid based on previous acceptances. </summary> /// <param name="context"></param> protected override void DoWork(CodeActivityContext context) { int drgId = DrgId.Get(context); double dose = Dose.Get(context); var ext = context.GetExtension <IOrderApprovalExtension>(); Result.Set(context, ext.IsDoseAccepted(drgId, dose)); }