CodeGen 5.2.1
CodeGen Release Notes
- We added several a new generic expression token <IF COUNTER_n_op_value> that allow you to write conditional template code based on testing the current value of the two internal template counters against a simple numeric expression. Here is an example of using one this new expression:
<IF CODEGEN_COUNTER_1_EQ_10>
Code to include for every 10th item
</IF>
- We added several new loop utility expression tokens that allow you to write conditional template code based on the total number of items that will be processed by a loop, how many items have already been processed, and how many remain, either including or excluding the current item. The new expressions are <IF PROCESSED_EXCLUSIVE_op_value>, <IF PROCESSED_INCLUSIVE_op_value>, <IF REMAINING_EXCLUSIVE_op_value>, <IF REMAINING_INCLUSIVE_op_value> and <IF TOTAL_ITEMS_op_value>. Here is an example of using one of these new expressions:
<IF TOTAL_ITEMS_LT_50>
Code for a small number of items.
<ELSE>
Code for a larger number of items.
</IF>
-
We added several new loop utility expansion tokens that allow you to determine the total number of items that will be processed by a loop, how many items have already been processed, and how many remain, either including or excluding the current item. The new expressions are <PROCESSED_EXCLUSIVE>, <PROCESSED_INCLUSIVE>, <REMAINING_EXCLUSIVE>, <REMAINING_EXCLUSIVE_MAX_n>, <REMAINING_INCLUSIVE>, <REMAINING_INCLUSIVE_MAX_n> and <TOTAL_ITEMS>.
-
We added a new file header token <REQUIRES_CODEGEN_VERSION> that allows you to specify that a minimum version of CodeGen is required in order to successfully process a template. Here is an example of using one this new expression:
<REQUIRES_CODEGEN_VERSION>5.2.1</REQUIRES_CODEGEN_VERSION>
-
We made a minor correction to the documentation of the -f l command line option. The documentation previously stated that this option caused fields marked as "Excluded by Language" to be EXCLUDED from field loop processing, but actually such fields are excluded by default. The -f l command line option actually suppresses this behavior, causing such fields to be INCLUDED in field loop processing.
-
This version of CodeGen was built with Synergy/DE 10.3.3c and requires a minimum Synergy runtime version of 10.1.1.
Symphony Framework Components
- There were no Symphony Orchestrator changes in this release.
- There were no Symphony Framework template file changes in this release.
- There were no Symphony Framework CodeGen Extensions changes in this release.