Skip to content
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

Flow instantiation silently fails when subcomponents have connections but not flow implementations #2872

Open
smithdtyler opened this issue May 19, 2023 · 0 comments

Comments

@smithdtyler
Copy link

Summary
When instantiating a system implementation with an end to end flow, the flow does not get generated in the .aaxl2 file if a subcomponent of one of the flow elements has an implementation with connections but not flow implementations.

Expected behavior
OSATE should either generate the end to end flow, or should report an error in the instantiation results dialog.

Actual behavior
Instantiation reports no issues, but the end to end flow is absent from the instance file.

Steps To Reproduce

The model below fails to generate an end to end flow instantiation. Uncomment the flow implementations and the flow appears.

package flowdemo
public
	
	system integration
		
	end integration;
	
	system implementation integration.impl
		subcomponents
			a : system example.impl;
			b : system example.impl;
		connections
			ab : feature a.outy -> b.inny;
		flows
			fab : end to end flow a.fouty -> ab -> b.finny;
	end integration.impl;
	
	system example
		features 
			outy: feature group;
			inny: feature group;
		flows
			fouty: flow source outy;
			finny: flow sink inny;
	end example;
	
	system implementation example.impl
		subcomponents
			a : process ex_proc.impl;
			b : process ex_proc.impl;		
			
		connections
			couty: feature a.outy <-> outy;
			cinny: feature inny -> b.inny;

--		flows
--			fouty: flow source a.fouty-> couty -> outy;
--			finny: flow sink inny -> cinny -> b.finny;
	end example.impl;
	
	process ex_proc
		features
			outy: feature group;
			inny: feature group;
		flows
			fouty: flow source outy;
			finny: flow sink inny;
	end ex_proc;
	
	process implementation ex_proc.impl
	end ex_proc.impl;
	
	
end flowdemo;

Desktop (please complete the following information):

  • OSATE Version: 2.11
  • Operating System: Windows 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant