Book a Demo

Author Topic: Multiple exceptions - one handler  (Read 2117 times)

sargasso

  • EA Practitioner
  • ***
  • Posts: 1406
  • Karma: +1/-2
  • 10 COMFROM 30; 20 HALT; 30 ONSUB(50,90,10)
    • View Profile
Multiple exceptions - one handler
« on: January 24, 2006, 03:06:32 pm »
How does one add another object node to an exceptionhandler element?

We have a series of business rule engines that evaluate transaction parameters and raise an appropriate exception in cases where the tx violates a rule.  Now all these exceptions are capable of being handled by one handler i.e. "MyShootUserAndRollbackTXHandler(object sender, BRException e)".

I dont seem to be able to find a way to add additional object  nodes to the exception handler in the model.  I am trying to evaluate which BR's we can move to the browser and handle them before the tx is submitted.

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.

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Multiple exceptions - one handler
« Reply #1 on: January 24, 2006, 03:21:53 pm »
Hmmm, it seems to be missing its "Add Embedded" context menu. Don't know if it's been removed or if it never had one and you're the first person to notice.

Until we fix things, you could add an object node to an existing activity and drag and drop it in the Project View.
The Sparx Team
[email protected]

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Multiple exceptions - one handler
« Reply #2 on: January 24, 2006, 05:26:39 pm »
Quote
How does one add another object node to an exceptionhandler element?


Bruce,

Just checked the UML 2.0 spec and apparently you're not allowed to. ExceptionHandler has an association "exceptionInput : ObjectNode [1..1]" where the [1..1] multiplicity explicitly disallows multiple ObjectNodes. Maybe you're expected to have each individual ExceptionHandler contain a call to an activity called "MyShootUserAndRollbackTXHandler", I don't know. I'll let you decide how far to throw away the UML spec and how hard  :-/

Neil
The Sparx Team
[email protected]