Skip to content

Unable to establish the owningPackage/packagedElement relationship between Event and Package #3517

@pbrown12303

Description

@pbrown12303

Describe the bug

In Gaphor, the Package.owningPackage and Package.packagedElement are both derived attributes. In the UML specification, they are not derived attributes. The setting of derived attribute values in Gaphor is supposed to occur as a side-effect of setting some other attribute value. I have been unable to identify the attribute whose value needs to be set in order to update owningPackage and packagedElement. I have tried setting the following attribute values, all of which produce an error.

event.memberNamespace = package
event.namespace = package
event.owner = package
event.owningPackage = package
event.package = package
package.member = event
package.ownedElement = event
package.ownedMember = event
package.ownedType = event
package.packagedElement = event

To Reproduce

Steps to reproduce the behavior:

  1. Programmatically create a Package and an Event (or ChangeEvent)
  2. Try setting any of the attributes above. An error message indicating that the attribute is a derived construct will occur.

Expected behavior

In the UML standard, neither Package.packagedElement nor PackagedElement.owningPackage are derived. They can be set directly. this is the expected behavior.
image

Screenshots

If applicable, add screenshots to help explain your problem.

OS

  • Linux (Please put in notes the specific distro)
  • macOS
  • Windows

Version

Version of Gaphor: 2.26.0

Additional information

Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions