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

Unable to form "refine" relationship between a requirement and a value property #2968

Open
1 of 3 tasks
marek-piirikivi opened this issue Dec 31, 2023 · 3 comments
Open
1 of 3 tasks

Comments

@marek-piirikivi
Copy link
Contributor

Describe the bug

I am unable to form fully connected relationship between a requirement and a value property

To Reproduce

Steps to reproduce the behavior:

  1. Add requirement
  2. Add a block
  3. Add a value
  4. Form a composite relationship between a block and a value
  5. try to form refine relationship between a value property and a requirement - it is seen that the relationship is not created

Expected behavior

A relationship should be formed. SysML specification says that refinement can be formed between a requirement and any model element.

OS

  • Linux (Mint)
  • macOS
  • Windows

Version

Version of Gaphor: 2.22.1

Additional information

Should be an easy fix.

@marek-piirikivi
Copy link
Contributor Author

The problem seems to be with actions, activities etc as well. I was able to form refine relationship only between a requirement and a block.

@amolenaar amolenaar self-assigned this Mar 13, 2024
@amolenaar
Copy link
Member

Refine connects sourceContext to targetContext. Both are of type Classifier.

You can create a refine relationship between any classifier, including Activity and State Machine.

See https://github.com/gaphor/gaphor/blob/main/gaphor/SysML/sysml.py#L46-L50.

@amolenaar amolenaar removed their assignment Mar 30, 2024
@amolenaar
Copy link
Member

@marek-piirikivi I need a bit more context in order to solve this issue. Can you maybe provide an example model?

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

2 participants