Book a Demo

Author Topic: Modeling variations in common processes  (Read 12277 times)

ScottUML

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Modeling variations in common processes
« on: May 16, 2011, 11:32:37 pm »
I'm trying to model how an http request is handled by an internal (and custom) servlet framework.  We have several servlets that extend a base servlet.  Each extension of our base servlet overrides factory methods to create instances of other objects the system uses.  But in all, the process of handling a request is roughly the same.  A controller object is created and control is passed to the controller, which is the variable behavior I want to model.

So what I created is a use case "Handle HTTP Request" that models the generic case of getting the request and passing off to the controller.  I created a participants class diagram that shows the base classes and all the extended objects.  In the sequence diagram, whenever I hit a juncture that involves extended behavior, I make a note (I'd like to link the note to the message but can't get it to stick).

Now I would like to model use cases where the controller is created as a result of this sequence.  How would this best be done?  I'd like to in a sequence diagram indicate that the "Handle HTTP Request" use case was invoked with a certain set of request parameters which created the controller and invoked it, which is where the current sequence begins.

Thanks for any input you can provide.
« Last Edit: May 16, 2011, 11:34:42 pm by jackettdad »

sargasso

  • EA Practitioner
  • ***
  • Posts: 1406
  • Karma: +1/-2
  • 10 COMFROM 30; 20 HALT; 30 ONSUB(50,90,10)
    • View Profile
Re: Modeling variations in common processes
« Reply #1 on: May 28, 2011, 09:45:58 pm »
I am having a lot of trouble understanding this.

I, personally, as a computer user have never had the desire to "Handle HTTP request".

ymmv
"It is not so expressed, but what of that?
'Twere good you do so much for charity."

Oh I forgot, we aren't doing him are we.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Modeling variations in common processes
« Reply #2 on: May 30, 2011, 02:42:55 am »
This is likely because you are not a computer. Or, to be more accurate, a piece of software running on a computer.

Try a different odometer.

q.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Modeling variations in common processes
« Reply #3 on: May 30, 2011, 03:57:45 pm »
I can understand where bruce's comment comes from.
"Handle HTTP request" does indeed sound somewhat limited and technical to be a (SMART) primary use case.
One of the better means to decide whether or not your (primary) use case is a "good one" is the BOSS test:
Ask yourself: "Is my boss going to be happy if I <insert use case> 100 times?"

Geert

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Modeling variations in common processes
« Reply #4 on: May 30, 2011, 07:01:17 pm »
We have spilt use cases into <<business>> and <<technical>>. Your statement is true for the <<business>> UCs. In case of the <<technical>> ones it must read: "Is my computer/software going to be happy if I <insert use case> 100 times?". A bit weird, but who knows what happiness is anyway?

q.