Author Topic: UML Association Constraints  (Read 2068 times)

GrahamH

  • EA User
  • **
  • Posts: 20
  • Karma: +0/-0
    • View Profile
UML Association Constraints
« on: June 27, 2016, 10:32:38 pm »
Is it possible to create a constraint between two associations?  I'm trying to set one up as per the second image on this page http://www.uml-diagrams.org/constraint.html

any help/pointers would be most gratefully received.

regards
Graham

StefanPears

  • EA User
  • **
  • Posts: 119
  • Karma: +6/-0
  • Unwissenheit schützt vor Erkenntnis nicht
    • View Profile
Re: UML Association Constraints
« Reply #1 on: June 27, 2016, 10:55:36 pm »
select one association
context menue
attach note or constraint...
activate the second associations checkbox + OK
Type OCL or any other words into the note

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 8032
  • Karma: +183/-22
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: UML Association Constraints
« Reply #2 on: June 28, 2016, 12:48:51 am »
or just drag a constraint on the diagram and use the quicklinked to link it to both associations.

Geert

GrahamH

  • EA User
  • **
  • Posts: 20
  • Karma: +0/-0
    • View Profile
Re: UML Association Constraints
« Reply #3 on: June 28, 2016, 06:13:10 am »
Thanks for that, sometimes you can't see things no matter how obvious they are 😃