-
Notifications
You must be signed in to change notification settings - Fork 8
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
Connection_Pattern ignored when instantiating data access connection #2057
Comments
Modified the example a little to contrast the behavior with port connections:
When |
The problem seems to be that
This returns |
I have a feeling this won't work with port connections that go from data subcomponents to data ports either. |
Works correctly for this case (data component is the destination in the declarative connection), but only accidentally. The
But flip it aroud, putting the data component as the connection source, and things don't work correctly because
|
I'm skeptical that |
Changed
Seems to have fixed the problem. |
There is a simpler way: call isReverse() on the connection reference this is true when the connection goes in the connection instance direction is the opposite of the declaration direction. |
Summary
In some case when wrapping a process which contains connections with a connection pattern, the
Connection_Pattern
is ignored and the appropriate connection instances are not created.Expected and Current Behavior
In such a case, I expect the connection instances to be similar. Currently when instantiating the top level system, the
Connection_Pattern
property value does not seem to be handled properly. This results in fewer connection instances and a validation error.When instantiating the process, the expected connection instances are created. When instantiating the system that contains the process, the connections are not created.
Steps to Reproduce
Too few indices for connection destination for d1 -> threads[1].da1
. Instance model does not contain appropriate connection instances.Environment
The text was updated successfully, but these errors were encountered: