-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix exit-forward when exit was never explicitly defined #6742
Fix exit-forward when exit was never explicitly defined #6742
Conversation
this is a very small and easy change, so maybe it's an idea to also implement it in older versions so that more people can use it |
This is about the XSLT that converts adapter XMLs to Mermaid syntax. That Mermaid text is used to draw flowchart pictures of adapters. Jaco asked me to do a test on Lenard's fix. Please do not merge before I have my test result. |
This fix does not work for the following erroneous adapter XML. The error in the adapter is that the last forward points to a non-existent exit.
The mermaid produced is:
and you see a bomb instead of a Mermaid picture. |
With the error corrected it also fails. XML is:
|
Now the success exit is also created in case there is an error exit defined, but no success exit. This should prevent any edge cases and all correct configurations should render a correct mermaid image |
De logica met exits werkt. Ik heb het getest. |
Ik heb ook getest met input/output wrapper/validator. Die lijken ook te werken, maar klopt de volgorde? |
InputWrapper en InputValidator verschijnen vóór de eerste pipe, InputValidator eerst en daarna InputWrapper. OutputWrapper komt direct vóór de exit, ook als staat hij in de XML aan het begin. |
Ik voeg nog even mijn testresultaten met exits toe. Dan kunnen jullie controleren dat ik dit goed heb getest.
|
Als er onder Result "no" staat, dan betekent dat dat er een Mermaid bom was. Dit gebeurt als er niet-bestaande exits expliciet worden gerefereerd. Geen probleem denk ik. |
De juiste volgorde is:
Deze volgorde wordt altijd zo uitgevoerd, ongeacht de volgorde zoals die in de xml gedefinieerd is. |
Hallo Niels. Jouw lijstje is wat de figuren tonen. Dit is dus in orde. |
there was a bug in the xsl where exits were deleted if they weren't explicitly forwarded to. I removed the bit of code that removes such exits