-
Notifications
You must be signed in to change notification settings - Fork 14
Description
We are facing a interesting challenge with some fairly complex structures with embedded fields that have group overlays assigned to other structures.
The subfields with groups within groups are not being broken out into true JSON arrays. Once the subfield structure goes beyond the initial first level, it defaults to creating flat string elements without the group field elements broken out.
I would like for CodeGen to support recursive expansion of the groups within groups that are arrays to the proper JSON array structure. The Synergery/DBL language supports this construct, so I feel that the CodeGen and Harmony Core templates should be able to support this brake out also.
See attached for an example where the group structure within a structure was broken out into separate numbered field properties, instead of an embedded array with the proper field properties within those array elements.
We have considered and implemented broken out versions of the embedded group structures and arrays into individually repository structures and added those data elements to ArrayLists on return.
Though not common, these embedded structures, due to the design chosen, are part of an ISAM database file and are stored and utilized in production. So refactoring created additional work to break out the elements in to individual array lists.
