Book a Demo

Author Topic: Business Rules and UC  (Read 18689 times)

thomaskilian

  • Guest
Business Rules and UC
« on: May 30, 2006, 09:50:45 am »
This has been discussed quite a while ago. Now I reached a position where I actually need help: When writing down a UC I encounter certain business rules. For example there is a rule on how to distribute incomming post to certain departments. I would like to write my UC straight and note somewhere that BR xyz applies here. Has anyone got a clue on how to model that?

thomaskilian

  • Guest
Re: Business Rules and UC
« Reply #1 on: May 30, 2006, 09:55:23 am »
Oh! I think the answer is plainly: define a requirement, assign it a <<business rule>> stereotype and create a link.

Well, any opinion is welcome :)

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Business Rules and UC
« Reply #2 on: May 30, 2006, 02:32:20 pm »
Quote
Oh! I think the answer is plainly: define a requirement, assign it a <<business rule>> stereotype and create a link.

Well, any opinion is welcome :)
What kind of link did you decide on Thomas?  A straight «trace»  dependency (or something else)?

Paolo
« Last Edit: May 30, 2006, 02:33:43 pm by PaoloFCantoni »
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

thomaskilian

  • Guest
Re: Business Rules and UC
« Reply #3 on: May 30, 2006, 03:30:28 pm »
I decided to use the <<realize>> relation. I guess that makes sense?

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Business Rules and UC
« Reply #4 on: May 30, 2006, 03:47:49 pm »
I've worked with groups creating metamodels. They also use the <<realize>> relationship to indicate which requirements are satisfied by elements.
No, you can't have it!

StefanPears

  • EA User
  • **
  • Posts: 119
  • Karma: +6/-0
  • Unwissenheit schützt vor Erkenntnis nicht
    • View Profile
Re: Business Rules and UC
« Reply #5 on: June 01, 2006, 05:40:45 am »
Assuming the business rule affects only this business use case, it's a good idea to use <view> <other windows> <rules> (CTRL + Shift + 3).

jeshaw2

  • EA User
  • **
  • Posts: 701
  • Karma: +0/-0
  • I'm a Singleton, what pattern are you?
    • View Profile
Re: Business Rules and UC
« Reply #6 on: June 01, 2006, 07:13:25 am »
Quote
Assuming the business rule affects only this business use case, it's a good idea to use <view> <other windows> <rules> (CTRL + Shift + 3).
What is the benefit of doing this?  I tried it and saw no difference on the diagram.
Verbal Use Cases aren't worth the paper they are written upon.

StefanPears

  • EA User
  • **
  • Posts: 119
  • Karma: +6/-0
  • Unwissenheit schützt vor Erkenntnis nicht
    • View Profile
Re: Business Rules and UC
« Reply #7 on: June 01, 2006, 08:09:32 am »
Jim, that IS the benefit: you have no change in your diagram. But you get a nice table with rules in the generated rtf-report (SPARX: row-sorting could be improved).
Stefan

Bruno.Cossi

  • EA User
  • **
  • Posts: 803
  • Karma: +0/-0
    • View Profile
Re: Business Rules and UC
« Reply #8 on: June 01, 2006, 11:11:26 am »
One disadvantage of this is that you need to have a Use Case prior to capturing the business rule - frequently you will learn about a business rule before you have a stable set of Use Cases.

Bruno

Quote
Assuming the business rule affects only this business use case, it's a good idea to use <view> <other windows> <rules> (CTRL + Shift + 3).


thomaskilian

  • Guest
Re: Business Rules and UC
« Reply #9 on: June 01, 2006, 11:32:42 am »
That's why I always use external requirement. Anyway I learned that the UC internal requirements are actually responsibilities.

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Business Rules and UC
« Reply #10 on: June 01, 2006, 12:09:51 pm »
Thomas,

Regarding
Quote
Anyway I learned that the UC internal requirements are actually responsibilities.

Is this from OMG? Or, is it a case of EA not being CCC?

[I'm just trying to determine how concerned I am, and why...]

David
No, you can't have it!

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Business Rules and UC
« Reply #11 on: June 01, 2006, 03:53:51 pm »
Quote
Thomas,

Regarding
Is this from OMG? Or, is it a case of EA not being CCC?

[I'm just trying to determine how concerned I am, and why...]

David
Technically, David, its a low level fracture of CCC...  The  only problem with the EA setup is that the element specific things are ALSO called requirements.(instead of responsibilities).   Sparx have admitted it is better to view them as responsibilities - since they are element specific and good OO design requires (encourages) that...  I strongly agree!  The notion that requirements don't have a possible many-to-many relationship with other elements is risible.

All that remains is for Sparx to change the headings on the element specific responsibilities tab from Require  to: Responsibilities.  That way, it is CCC with the Set Feature Visibility ([Ctrl+Shift+Y]) dialog which already calls them Responsibilities.

HTH,
Paolo
« Last Edit: June 01, 2006, 03:55:03 pm by PaoloFCantoni »
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Business Rules and UC
« Reply #12 on: June 01, 2006, 04:14:27 pm »
Thanks Paolo,

This does not sound as bad as I had feared.

Is there any issue with the difference between "internal" and "external" requirements (in the current vernacular), or do they need only to make the changes where Thomas' message suggests?

David
No, you can't have it!

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Business Rules and UC
« Reply #13 on: June 01, 2006, 04:32:22 pm »
Quote
Thanks Paolo,

This does not sound as bad as I had feared.

Is there any issue with the difference between "internal" and "external" requirements (in the current vernacular), or do they need only to make the changes where Thomas' message suggests?

David
David,

I'm not sure exactly what you are asking here, can you explain more?

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

jeshaw2

  • EA User
  • **
  • Posts: 701
  • Karma: +0/-0
  • I'm a Singleton, what pattern are you?
    • View Profile
Re: Business Rules and UC
« Reply #14 on: June 01, 2006, 06:20:21 pm »
I find the idea of documenting a use case's responsibilities attractive, but none of the textual use case templates I've run across seem to include a Responsibilities section.  Is this something I should be considering for the future?
Verbal Use Cases aren't worth the paper they are written upon.