Quintiq file version 2.0
|
#parent: #root
|
StaticMethod CreateGlobalParameterMessage (
|
MacroPlan macroplan
|
)
|
{
|
Description: 'create sanity check message for global parameter'
|
TextBody:
|
[*
|
// desmondt Nov-10-2014 (created)
|
|
invalidgp := select( macroplan, SanityCheckGroupData.InvalidGlobalParameters_MP, im, true );
|
|
if( not isnull( invalidgp ) )
|
{
|
feedbacks := construct( Strings );
|
sanitycheckfeedbacks := construct( Strings );
|
|
invalidgp.DoSanityCheckData( feedbacks, sanitycheckfeedbacks );
|
|
i := 0;
|
traverse( feedbacks, Elements, fb )
|
{
|
if( not exists( invalidgp, SanityCheckMessageData, msg, msg.Description() = fb ) )
|
{
|
//tokenize msg to retrieve category level and seperate the actual feedback
|
sanitycheckmessage := SanityCheckMessageData::Create( invalidgp.SanityCheckGroupData(),
|
fb,
|
true,
|
sanitycheckfeedbacks.Element( i ) );
|
sanitycheckmessage.GlobalParameters_MP( relset, invalidgp );
|
}
|
i := i + 1;
|
}
|
|
}
|
*]
|
}
|