You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ProgramStateMachineState has wrong InitializationString and possible many other classes also #3770
Call to Create() on an instance of ProgramStateMachineState (or its successor) causes adding wrong child nodes to it. It adds children of ProgramStateMachineType which do not have any ModellingRule (nor Optional, nor Mandatory).
Expected Behavior
Call to Create() on an instance of ProgramStateMachineState (or its successor) should add child nodes according to the Specification: having reference HasModellingRule to Mandatory or Optional. (Not sure that optional children should be added by default).
Steps To Reproduce
During a debugging I had found out that wrong children appeared after call to Initialize() inside Create() call chain.
The screenshot of debugging clearly shows "Suspended" node adding in Initialize() call (during decoding of binary data in InitializationString). "Suspended" is node representing possible program state and do not have any ModellingRule.
Possible the same issue (adding children without ModellingRule to instances) exists for many other generated classes because InitializationString is generated by the same logic from xml, as I understand.
It is not clear for me: is this issue related to UA-ModelCompiler or is generation of the classes completelly implemented inside UA-.NETStandard now. Should I add issue to UA-ModelCompiler based on current one?
Starting with Version 1.6 a Source Generator located in this repository is used and no initializations strings are needed any more. For Version 1.5.378, this needs be fixed in the Model Compiler.
Activity
romanett commentedon May 24, 2026
Starting with Version 1.6 a Source Generator located in this repository is used and no initializations strings are needed any more. For Version 1.5.378, this needs be fixed in the Model Compiler.
Prune extra decoded children that should stay on the type definition …