Book a Demo

Author Topic: Modelling error handling in an activity diagram with an Interrupt Flow  (Read 11542 times)

BiSb

  • EA Novice
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
Hi again,

I'm trying to model an error handling. Please don't judge me too hard.  :D

My plan was to use an Interruptible Region and an Interrupt Flow starting at the Decision Node, going to the "Error handling" Action (Red square).



EA does not allow an Interrupt Flow from the Decision Node to the "Error Handling" Action outside of the Interruptible Region. My idea feels a little bit unusual. However, I could not find the reason why this is forbidden in the UML spec. Can someone tell me, why this is not allowed?

And also, what would be a better idea to model it?

Greetings
Sebastian

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Modelling error handling in an activity diagram with an Interrupt Flow
« Reply #1 on: February 13, 2023, 10:49:43 pm »
You need an InteruptFlow (last connector in the Act. toolbox) and an InterruptibleActivitRegion (Region element) around the. Then you draw the InterruptFlow towards the Exception element where it ends in a pin accpting the exception element.

q.

BiSb

  • EA Novice
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
Re: Modelling error handling in an activity diagram with an Interrupt Flow
« Reply #2 on: February 14, 2023, 08:26:20 pm »
Hi again qwerty.  :)

Thanks for helping me out so often.

Back to the topic. What you write is exactly what I tried. But EA is not allowing to connect the Decision Node to the Action Pin with an Interrupt Flow.

Greetings
Sebastian

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Modelling error handling in an activity diagram with an Interrupt Flow
« Reply #3 on: February 14, 2023, 09:08:18 pm »
Yes, this is not allowed. You need to have it go out of an action.

q.