Quintiq file version 2.0
|
#parent: #root
|
Constraint DuplicateCreatedName
|
{
|
#keys: '2[142876.9.512317468][142876.9.512317469]'
|
ConstraintXML:
|
[*
|
<?xml version="1.0" encoding="UTF-16"?>
|
<GEBConstraintElement xmlns="http://www.quintiq.com/GEB/GEBConstraintElement" Key="@DuplicateCreatedName1" TargetType="TG_UIObject" ValueType="Boolean" ModelElement="TG_UIObject.DuplicateCreatedName" TargetColumn="@DuplicateCreatedName2">
|
<Name>DuplicateCreatedName</Name>
|
<Description></Description>
|
<DefinitionID>[142876.9.512317468]</DefinitionID>
|
<ConstraintKind>Soft</ConstraintKind>
|
<Priority>0</Priority>
|
<ConstraintText>The name @this.CreatedName()@ is duplicate with another instance.</ConstraintText>
|
<GEBConstraintElementData Key="@1">
|
<DefaultColumnPrefix></DefaultColumnPrefix>
|
<ColumnPostfix></ColumnPostfix>
|
<GEBProcessColumn Key="@DuplicateCreatedName2" ElementType="TG_UIObject" ValueType="Boolean">
|
<ColumnID>[142876.9.512317467]</ColumnID>
|
<BaseName>DuplicateCreatedName</BaseName>
|
<Name>DuplicateCreatedName</Name>
|
<Title>NewConstraint</Title>
|
<IsTarget>true</IsTarget>
|
<NameHasBeenSet>false</NameHasBeenSet>
|
<ColumnFinal>False</ColumnFinal>
|
<GEBDerivation Key="@2">
|
<GEBDerivationBase Key="@3" TargetType="TG_UIObject">
|
<ColumnID>[142876.9.512317467]</ColumnID>
|
<GEBNodeDerivation Key="@4">
|
<Operation>FirstExpression</Operation>
|
<Conditional>false</Conditional>
|
<Multiple>false</Multiple>
|
<AllowWildcards>false</AllowWildcards>
|
<GEBNodeDerivationExpression Key="@5">
|
<GEBNodeDerivationExpressionBody Key="@6">
|
<ExpressionText>return guard( this.Previous().CreatedName() <> this.CreatedName(), true )
|
and guard( this.Next().CreatedName() <> this.CreatedName(), true );</ExpressionText>
|
<Converter>
|
<ZeroConverter Key="@7">
|
<IsStandard>true</IsStandard>
|
<IsISO>false</IsISO>
|
<IsCustom>false</IsCustom>
|
<ConversionType>0</ConversionType>
|
</ZeroConverter>
|
</Converter>
|
</GEBNodeDerivationExpressionBody>
|
</GEBNodeDerivationExpression>
|
</GEBNodeDerivation>
|
</GEBDerivationBase>
|
</GEBDerivation>
|
</GEBProcessColumn>
|
</GEBConstraintElementData>
|
</GEBConstraintElement>
|
*]
|
}
|