Book a Demo

Author Topic: Source/Target Metaconstraints not working???  (Read 7803 times)

Jayson

  • EA User
  • **
  • Posts: 363
  • Karma: +1/-0
    • View Profile
Source/Target Metaconstraints not working???
« on: July 15, 2021, 04:16:01 am »
Hey all

I have created some source/target metaconstraints, created some connectors that violate those constraints (I am a rebel, I know!) and then run the model validation.
However, when I do so the validation doesn't flag any errors.

Some XML from my MDG is shown below.
Any clues what I've don wrong (other than woke up this morning ;-) )

Cheers

Jays

-<Stereotype notes="" name="InFlow" cy="0" cx="0">
-<metaconstraints>
      <metaconstraint constraint="PRCMDG::Capability" umlRole="source"/>
   </metaconstraints>
   -<AppliesTo>
      <Apply type="InformationFlow"/>
   </AppliesTo>
</Stereotype>


philchudley

  • EA User
  • **
  • Posts: 750
  • Karma: +22/-0
  • EA Consultant / Trainer - Sparx Europe
    • View Profile
Re: Source/Target Metaconstraints not working???
« Reply #1 on: July 15, 2021, 04:27:20 am »
Did you use my MDG example from Last years's EA Global Summit by any chance? I seem to recognise the MDG ID PRCMG  :)

As far As I know Metaconstraints and Stereotyped Relationships are only validated when connectors are made by Quicklink and in the relationship Matrix (I think).

Model validation is something else altogether, and as far as I recall requires some coding for which Sparx provide the code framework.

Perhaps someone else can provide more info of model validation since it is not something I have delved into.

Phil
Models are great!
Correct models are even greater!

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Source/Target Metaconstraints not working???
« Reply #2 on: July 15, 2021, 05:38:41 am »
Like Phil I'm not sure whether validation is touched by the meta constraints. I never really used the model validation of EA (only once when I tested it and it failed my level of "wantness"). Pretty sure Eve will hop on unless Australia is on holidays now.

q.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Source/Target Metaconstraints not working???
« Reply #3 on: July 15, 2021, 09:18:31 am »
The example provided won't generate anything inside EA because you haven't given a source and target.

Once you have both it will generate a rule, which will be used by connector validation.