Releases: Synergex/CodeGen
CodeGen 5.3.10
CodeGen Release Notes
- We added a new command line option -af which causes field names to be switched to the alternate name if present. If no alternate name is defined then the original field name is used. This change impacted a lot of code and it is possible that more work may be needed to ensure that everything works correctly when alternate field names are being used. For this reason we are currently considering this to be an experimental feature which should be used with caution.
- We added a new field loop expansion token <FIELD_ORIGINAL_NAME_MODIFIED>.
- We improved the processing of relation loops when the structure being targeted by a relation is not included in the list of structures currently being processed.
- This version of CodeGen was built with Synergy/DE 10.3.3f and requires a minimum of version 10.1.1 to operate.
Symphony Framework Components
- We no longer distribute the Symphony Orchestrator utility with CodeGen. If you still use that utility please contact us and we will make the source code available to you.
- There were no Symphony Framework CodeGen Extensions changes in this release.
CodeGen 5.3.9
CodeGen Release Notes
- Improved <RELATION_TOSTRUCTURE>, <RELATION_TOSTRUCTURE_NOPLURAL> and <RELATION_TOSTRUCTURE_PLURAL> by adding support for structure aliasing.
- This version of CodeGen was built with Synergy/DE 10.3.3f and requires a minimum of version 10.1.1 to operate.
Symphony Framework Components
- There were no Symphony Orchestrator changes in this release.
- There were no Symphony Framework CodeGen Extensions changes in this release.
CodeGen 5.3.8
CodeGen Release Notes
- We added new structure expression tokens <IF GET_ALL_ENDPOINT>, <IF GET_ENDPOINT>, <IF POST_ENDPOINT>, <IF PUT_ENDPOINT>, <IF PATCH_ENDPOINT>, <IF DELETE_ENDPOINT>, <IF ALTERNATE_KEY_ENDPOINTS> and <IF PROPERTY_ENDPOINTS>. These expressions are primarily intended for use when building REST APIs that expose Synergy data as they are intended to provide a mechanism to suppress the creation of certain types of operation on a structure by structure basis.
- We added new relation loop expression tokens <IF TO_STRUCTURE_INCLUDED> and <IF TO_STRUCTURE_NOT_INCLUDED>. When processing a relation these new expressions allow you to determine whether the target structure of the relation being processed is also included in the code generation operation.
- This version of CodeGen was built with Synergy/DE 10.3.3f and requires a minimum of version 10.1.1 to operate.
Symphony Framework Components
- There were no Symphony Orchestrator changes in this release.
- There were no Symphony Framework CodeGen Extensions changes in this release.
CodeGen 5.3.7
CodeGen Release Notes
- We corrected an issue that was causing field loop expansion tokens and field loop expression tokens to be incorrectly processed when a key segment loop was embedded within a key loop, which was in turn embedded within a field loop. When field loop tokens are used within the context of a key segment loop they are supposed to be processed in the context of the field associated with the current key segment being processed by the key segment loop that immediately contains the tokens. However they were actually being processed in the context of the current field in the outer field loop. The nest key loops within field loops was only recently added, so the likelihood of this change impacting existing templates is extremely low.
- This version of CodeGen was built with Synergy/DE 10.3.3f and requires a minimum of version 10.1.1 to operate.
Symphony Framework Components
- There were no Symphony Orchestrator changes in this release.
- There were no Symphony Framework CodeGen Extensions changes in this release.
CodeGen 5.3.6
CodeGen Release Notes
- We added a new field loop expansion token <FIELD_SAMPLE_DATA_NOQUOTES>.
- We added a new field loop expansion token <HARMONY_ROLES>.
- We added a new field loop expression tokens <IF HARMONY_ROLES>.
- This version of CodeGen was built with Synergy/DE 10.3.3f and requires a minimum of version 10.1.1 to operate.
Symphony Framework Components
- There were no Symphony Orchestrator changes in this release.
- There were no Symphony Framework CodeGen Extensions changes in this release.
CodeGen 5.3.5
CodeGen Release Notes
- We enhanced the capabilities relating to inserting GUID values into code. A new <GUID> token always generates a unique GUID value every time it is referenced, and there are now tokens to allow you to determine whether braces should surround GUID values or not. In addition GUID values can now be inserted in upper or lower case.
- We added two new variants of the loops that allow the iteration through keys within a relation loop. The two new loop constructs are the restricted from key segment loop and restricted to key segment loop.
- We added new field loop expression tokens <IF KEYSEGMENT>, <IF NOTKEYSEGMENT> and <IF ONLY_PKSEGMENT>.
- We modified the behavior of the <FIELD_SAMPLE_DATA> token to first look for sample data that is defined in the fields long description field, surrounded by <SAMPLE_DATA> tags.
- We fixed an issue where loop utility tokens like <IF LAST> and <,> would not work properly if foreign keys were present.
- We fixed an issue where a line terminator would be incorrectly removed from generated code at the end of the last iteration of a loop if the last token in the loop was the end of an expression token.
- This version of CodeGen was built with Synergy/DE 10.3.3e and requires a minimum of version 10.1.1 to operate.
Symphony Framework Components
- There were no Symphony Orchestrator changes in this release.
- There were no Symphony Framework CodeGen Extensions changes in this release.
CodeGen 5.3.4
CodeGen Release Notes
- We added two new loop constructs called relation loop from key segment loops and relation loop to key segment loops. These loops can be used to iterate through the key segments associated with a relations from and to keys respectively.
- We improved the accuracy of the -e command line option, which now reports the full command line used to start CodeGen.
- We fixed a problem with the recently added <IF FIRST_UNIQUE_KEY> expression, which was incorrectly selecting the key BEFORE the first unique key. This has now been corrected.
- We renamed some of the recently added relation loop expression tokens.
- This version of CodeGen was built with Synergy/DE 10.3.3e and requires a minimum of version 10.1.1 to operate.
Symphony Framework Components
- There were no Symphony Orchestrator changes in this release.
- There were no Symphony Framework CodeGen Extensions changes in this release.
CodeGen 5.3.3
CodeGen Release Notes
-
We added the following new structure tokens:
- <STRUCTURE_NOPLURAL>
- <STRUCTURE_PLURAL>
-
We added the following new field loop tokens:
- <FIELD_SAMPLE_DATA>
-
We added the following new key loop tokens:
- <IF FIRST_UNIQUE_KEY>
-
We added the following new relation loop tokens:
- <RELATION_TOSTRUCTURE_NOPLURAL>
- <RELATION_TOSTRUCTURE_PLURAL>
- <IF ONE_WAY_ONE_TO_MANY>
- <IF ONE_WAY_ONE_TO_ONE>
- <IF TWO_WAY_ONE_TO_MANY>
- <IF TWO_WAY_ONE_TO_ONE>
-
We added the following new tag loop tokens:
- <TAGLOOP_FIELD_CSTYPE>
- We added the following new loop utility tokens:
- <,AND>
- <,OR>
-
We added the following new parameter loop tokens:
- <PARAMETER_DIRECTION_PAD>
- <PARAMETER_STRUCTURE_NOPLURAL>
- <PARAMETER_STRUCTURE_PLURAL>
- <IF COLLECTION>
- <IF COLLECTION_ARRAY>
- <IF COLLECTION_HANDLE>
- <IF COLLECTION_ARRAYLIST>
- <IF FIRST_INSTANCE_OF_ENUM>
- <IF FIRST_INSTANCE_OF_STRUCTURE>
- <IF IN_OR_INOUT>
- <IF OUT_OR_INOUT>
-
We altered the behavior of the <PARAMETER_DIRECTION> token so that it no longer pads the output string to a length of 5 characters. The new token <PARAMETER_DIRECTION_PAD> can be used to retain the previous behavior.
-
We improved error reporting related to tokens that are found in invalid locations such that the line number and character position of the token are now reported.
-
We corrected the following issues that were present in the previous release:
- An issue that caused the <FIELD_NAME> token to omit the required period between group and group member identifiers in some cases.
- Issues that caused the <IF COLLECTION> and <IF DECIMAL> parameter loop expressions to operate incorrectly.
-
This version of CodeGen was built with Synergy/DE 10.3.3e and requires a minimum of version 10.1.1 to operate.
Symphony Framework Components
- There were no Symphony Orchestrator changes in this release.
- There were no Symphony Framework CodeGen Extensions changes in this release.
CodeGen 5.3.2
CodeGen Release Notes
- We added back support for the field and key segment loop expansion token <IF CORECEBOOLEAN> because it broke more templates than expected.
- We added a new structure expansion token <FILE_PORTABLE_INT_SPECS>.
- We added a new structure expression tokens <IF FILE_CHANGE_TRACKING>, <IF FILE_COMPRESSION>, <IF FILE_PORTABLE_INT_SPECS>, <IF FILE_STATIC_RFA>, <IF FILE_STORED_GRFA> and <FILE_TERABYTE>.
- We added a new key segment loop expansion token <SEGMENT_ORDER_CODE>.
- We changed the values returned by the <SEGMENT_TYPE> expansion token for auto sequence and auto-timestamp key segments. This change could break your existing template code, but we decided to proceed with the breaking change because in all likelihood the token has not been used yet.
- This version of CodeGen was built with Synergy/DE 10.3.3e and requires a minimum Synergy version of 10.1.1 to operate.
Symphony Framework Components
- There were no Symphony Orchestrator changes in this release.
- There were no Symphony Framework CodeGen Extensions changes in this release.
CodeGen 5.3.1
CodeGen Release Notes
- We added a new <|> loop utility expansion token.
- We corrected an issue with the <PARAMETER_SIZE> token which will now insert the correct value for the size of structure parameters. The token previously inserted a value of 0 for structure parameters.
- This version of CodeGen was built with Synergy/DE 10.3.3e and requires a minimum Synergy version of 10.1.1 to operate.
Symphony Framework Components
- There were no Symphony Orchestrator changes in this release.
- There were no Symphony Framework CodeGen Extensions changes in this release.