Quintiq file version 2.0
|
#parent: #root
|
StaticMethod GetMinTransitionDuration (
|
CampaignType_MP fromcampaigntype,
|
CampaignType_MP tocampaigntype
|
) declarative remote as Duration
|
{
|
TextBody:
|
[*
|
duration := Duration::Zero();
|
if( not isnull( fromcampaigntype ) and not isnull( tocampaigntype ) and fromcampaigntype <> tocampaigntype )
|
{
|
transitiontype := select( fromcampaigntype, AsFromOfTransitionType, ttype,
|
ttype.ToCampaignType() = tocampaigntype );
|
|
if( not isnull( transitiontype ) )
|
{
|
duration := transitiontype.DefaultDuration();
|
}
|
}
|
return duration;
|
*]
|
}
|