I have an issue while migrating my code to !preprocessorV2:
my legacy code is generated as follows:
http://www.plantuml.com/plantuml/uml/SoWkIImgAStDuKhEpot8pqlDAr5GygrKS8Rnb1GIYnLyA-5yXMekBWKGK4n9JSlCIqMMYqyiYVSCSVMDzmt29anG7uezNBLSo6uAzGIx9DIp6YI1mr9TNQ02AmNFajHSBeVKl1IWlm00
It appears that, to migrate to preprocessorV2, the code should be modified as follows:
http://www.plantuml.com/plantuml/uml/SoWkIImgAStDuL8iA4ejACfFJYqkpYyAC-BYIixFBSZFIyqhKL3ohLHmXl6K51AB5NmhuNo5QYuk1H1GH1ACJoo9zmnnzLMm1Mb6wCMjCjut2AWOYmHNBOfJGZt13WZrh0P9u318LnUem4h1ioGrbyiXDIy5w3y0
So, as one can see, it is about wrapping with quotes the value and not wrapping with quotes the variable name.
Note, that the legacy code worked fine without any quotes and the problem is that in case of the preprocessorV2 format I shall somehow know exactly if a string is a value or a var name. Could we do something about it? Can we keep the unquoted format too? Or, can var names be evaluated within quotes too?
So that in case of preprocessorV2 I could do either (a):
component "My Component" as MyComponent {
!MyComponent_at_ITEM = "MyComponent"
!MyComponent_at_ITEM_MR = "MyComponent_at_ITEM"
}
component "UI" as UI{
}
MyComponent_at_ITEM_MR -- UI: Item
Or (b):
component "My Component" as MyComponent {
!MyComponent_at_ITEM = MyComponent
!MyComponent_at_ITEM_MR = MyComponent_at_ITEM
}
component "UI" as UI{
}
MyComponent_at_ITEM_MR -- UI: Item
As well, I see that now you have to put the definitions in a strict order (you cannot use a definition, before you define it). Earlier the order did not matter