Welcome!

This community is for professionals and enthusiasts of the Genio platform.
Share your questions and challenges, and help your partners!

1

1
Rodrigo Serafim
On 27/11/2019 下午12:46

Altwins are a last resort mechanism. When the parameterization of the model and the extension points for manual code are not able to get some functionality to work then altwins allow those kind of changes.

An altwin replaces a bit of code with another bit of code. It searches all the code files through the wildcard you provide and makes the code replacement anywhere it finds it during generation. This allows to intervene in framework base classes and override generated code in certain places.

But this comes with a high price:

  • Generated code can change from version to version. One character out of position is enough for the altwin to fail the replacement

  • You can easily cause unintended mass replacements if your search string is too generic

  • Replaced code cannot be easily identified and contained by the generator

  • A bug was found and you want to patch it on your current version and plan you version migration

  • You are developing new patterns and need to test framework change sets to make it work

                          You should avoid using altwins for a long term solution. Use them only when:
                          • A bug was found and you want to patch it on your current version and plan you version migration

                          • You are developing new patterns and need to test framework change sets to make it work

                          Basically, use them only as temporary fixes.

                          Keep Informed

                          About the Community

                          This platform is for beginners and experts willing to share their Genio knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers. Read Guidelines

                          Question tools

                          13 follower(s)

                          Stats

                          Asked: 27/11/2019 上午11:51
                          Seen: 1796 times
                          Last updated: 27/11/2019 下午5:56