| Quintiq file version 2.0 | 
| #parent: #root | 
| Function CalcSanityCheckCampaignTransitionAttributes | 
| { | 
|   TextBody: | 
|   [* | 
|     if ( not this.MacroPlan().IsMetaOptimizerRunning() )  | 
|     { | 
|       feedback := construct( Strings ); | 
|       sanitycheckfeedback := construct( Strings ); | 
|        | 
|       this.GetIsQuantityPeriodTaskMatch( feedback, sanitycheckfeedback ); | 
|        | 
|       mostseveryviolation := SanityCheckCategoryLevel::GetMostSevereSanityCheckViolation( sanitycheckfeedback ); | 
|       violationcount := SanityCheckCategoryLevel::GetSanityCheckViolationCount( sanitycheckfeedback, mostseveryviolation ); | 
|        | 
|        | 
|       this.SanityCheckCampaignTransitionMostSevere( mostseveryviolation ); | 
|       this.SanityCheckCampaignTransitionMostSevereCount( violationcount ); | 
|       this.SanityCheckCampaignTransitionTotalViolationCount( feedback.Size() ); | 
|     } | 
|   *] | 
|   InterfaceProperties { Accessibility: 'Module' } | 
| } |