CodeGen Documentation
CodeGen Documentation

Relation Loop Extensions

 

Harmony Core Relation Loop Extensions

 


Expansion Tokens

 

<HARMONYCORE_RELATION_NAME>

 

Inserts a name for the current relation. The relation name will be automatically generated, but can be overridden by an entry in the CustomRelationNames  property in a Harmony Core Customization File.

 

Alternate forms: none

 

<HARMONYCORE_FROM_RELATION_NAME>

 

Inserts the name of the relation property in the structure being targeted that points back at the current structure. The name will be automatically generated, but can be overridden by an entry in the CustomRelationNames  property in a Harmony Core Customization File.

 

Alternate forms: none

 


Expressions

 

<IF ONE_TO_MANY>

 

The relationship is a one-to-many relationship and a matching relationship is NOT defined in the opposite direction.

 

<IF ONE_TO_ONE>

 

The relationship is a one-to-one relationship and a matching relationship is NOT defined in the opposite direction.

 

<IF ONE_TO_MANY_TO_ONE>

 

The relationship is a one-to-many relationship and a matching relationship IS defined in the opposite direction.

 

<IF ONE_TO_ONE_TO_ONE>

 

The relationship is a one-to-one relationship and a matching relationship IS defined in the opposite direction.

 

<IF MANY_TO_ONE_TO_MANY>

 

The relationship is a many-to-one relationship and a matching relationship IS defined in the opposite direction.

 

<IF REQUIRES_MATCH> (deprecated)

 

The relationship requires that matching data must be present in the file targeted by the relationship for the data in the local field to be considered valid. By default all relations default to requiring matching data in the "to" structure file, but this can be overridden by adding a "RequiresMatch": false customization entry for the relation in the HarmonyCoreRelations section of the Harmony Core Customization file.

 

<IF TO_MANY>

 

The relationship targets one of multiple records (i.e. it is a one-to-many or one-to-many-to-one relationship).

 

<IF TO_ONE>

 

The relationship targets a single record (i.e. it is a one-to-one, one-to-one-to-one or many-to-one relationship).

 

<IF VALIDATION_NONE>

 

The ValidationMode property in the Harmony Core Customization file is set to a value of "None".

 

<IF VALIDATION_VALUE_PRESENT>

 

The ValidationMode property in the Harmony Core Customization file is set to a value of "ValuePresent".

 

<IF VALIDATION_ALWAYS>

 

The ValidationMode property in the Harmony Core Customization file is set to a value of "Always".

 

<IF VALIDATION_CUSTOM_CODE>

 

The ValidationMode property in the Harmony Core Customization file is set to a value of "CustomCode".

 

 

 


Copyright © 2021  Synergex International, Inc.