Author Topic: Changing Association to Realization  (Read 4790 times)

Saul

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Changing Association to Realization
« on: December 14, 2010, 04:36:27 pm »
I have an association between a use-case elemnt and a requirement element. I can change the connector type between them from 'Association' to 'Realization' using the COM API, however the requirement doesn't show up in the use-case as an 'External Requirement' as I would hope.

Looking at the API documentation there doesn't seem to be any way to add an existing requirement element as an external requirement to a use-case.

Am I missing something?

Aaron B

  • EA Administrator
  • EA User
  • *****
  • Posts: 941
  • Karma: +18/-0
    • View Profile
Re: Changing Association to Realization
« Reply #1 on: December 14, 2010, 04:59:18 pm »
Which element is the Source (Client) and which is the Target (Supplier) of the connector?  I think the Use Case should be at the Client end and the Requirement should be at the Supplier end.  Also might be worth confirming that Connector.Direction is set to "Source -> Destination".

Saul

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Re: Changing Association to Realization
« Reply #2 on: December 14, 2010, 05:24:31 pm »
Yes, the source is the use-case and the target is the requirement.

I didn't have direction specified, but I've fixed that now...no change.

The "realization" I create in the UI looks identical to the one created via the API...except for the fact that nothing shows up in the Use-Case External Requirements list.

Saul

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Re: Changing Association to Realization
« Reply #3 on: December 14, 2010, 10:03:23 pm »
OK, I've found the solution.

You need to set the connector type to 'Realisation' *not* 'Realization' as described in the API spec (under Connector).

I think this might be a bug - at least a documentation bug.

Regards,
Saul

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8607
  • Karma: +257/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Changing Association to Realization
« Reply #4 on: December 16, 2010, 02:03:44 pm »
Quote
OK, I've found the solution.

You need to set the connector type to 'Realisation' *not* 'Realization' as described in the API spec (under Connector).

I think this might be a bug - at least a documentation bug.

Regards,
Saul
Hi Saul,

Which version & build of EA are you running?

The Realization/Realisation dichotomy should have been fixed as of 850 or so... See: Dear Geoffrey...

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!