Book a Demo

Author Topic: Use Case and Batch processing  (Read 10288 times)

Tom_Andries

  • EA User
  • **
  • Posts: 28
  • Karma: +0/-0
  • Unlearn you must.
    • View Profile
Use Case and Batch processing
« on: August 25, 2005, 03:18:11 pm »
A use case is a collection of scenario's.
A scenario is a time-sequenced set of interactions between actor and system.
From these interactions, we can deduct what the system has to do, so it's an entry point for system analysis.

Problem: in a batch environment, there's not a big deal of interaction between the system and it's surroundings. Once the user pushed a button, or time triggered the system's action, the interaction is pretty much finished.

Putting much more then "system processes ..." into the use case seems like pushing system analysis into requirements.

How do you people handle this? Any idea will be much appreciated.

Tom

Tom Andries
     Associate
Method Innovation

sargasso

  • EA Practitioner
  • ***
  • Posts: 1406
  • Karma: +1/-2
  • 10 COMFROM 30; 20 HALT; 30 ONSUB(50,90,10)
    • View Profile
Re: Use Case and Batch processing
« Reply #1 on: August 25, 2005, 04:01:25 pm »
Quote
A use case is a collection of scenario's.  
A scenario is a time-sequenced set of interactions between actor and system.


Alternate postulate:
A use case is a set of interactions between actor and system that generate a (at least one) value outcome to the actor(s) (usually the primary actor but not necessarily).
A scenario is a statement of the (significant) possible outcomes of a use case.

The factors that usually influence a "batch interaction" (IMO) are the states of input information, both at a macro and detail level, for example:
a) input batch file is full/empty, exists/is missing etc
b) input data/record/object is in state x/y/z.

There are several ways to model these things.  Which you use depends on "what the current problem is".

At the conceptual stage, I would be looking at the macro influences at the top level and investigating the details in lower level models such as activity models at the "per record" level.  At the macro level, there are still (at least) two different techniques that come to mind.  
First, the primary actor is the person, event or thing that invokes the job and the input data is, conceptually, an artifact whose composition is immaterial.  Is this style we can investigate the normal, empty file, missing file etc etc scenarios.  
Secondly, you can view the input data as the primary actor and thus design use cases that reflect the system outcomes depending on what the input data wants to happen to it.  In other words, dont consider an equivalence between the batch job and the use case (design before analysis?).

An example may help.  Consider a batch input file for a bank clearing process.  An input transaction could "debit customer account" or "credit customer account" or even (if they are significant possibilities) "create customer account" or "close customer account".  Wham, 4 use cases and a primary actor ("input file transaction").

Which technique is betterer? Depends on what the problem is.

hth
bruce


"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.

Tom_Andries

  • EA User
  • **
  • Posts: 28
  • Karma: +0/-0
  • Unlearn you must.
    • View Profile
Re: Use Case and Batch processing
« Reply #2 on: August 25, 2005, 04:19:52 pm »
"Alternate postulate:
A use case is a set of interactions between actor and system that generate a (at least one) value outcome to the actor(s) (usually the primary actor but not necessarily).
A scenario is a statement of the (significant) possible outcomes of a use case."

--> the crucial element being "interaction", which is the dark side of batch processing   :)

"In other words, dont consider an equivalence between the batch job and the use case (design before analysis?)."
Yep, that's what's bothering me.  :-/

"An example may help.  Consider a batch input file for a bank clearing process.  An input transaction could "debit customer account" or "credit customer account" or even (if they are significant possibilities) "create customer account" or "close customer account".  Wham, 4 use cases and a primary actor ("input file transaction")."

--> but the 4 use cases would still make up for very poor scenario's (uness a lot of interaction would be going on)

Which technique is betterer? Depends on what the problem is.

hth
bruce

--> tremenduous thanks for your idea's. a like that "file" actor look, for a change.

Tom
Tom Andries
     Associate
Method Innovation