Sparx Systems Forum

Enterprise Architect => Uml Process => Topic started by: BiSb on February 13, 2023, 08:47:27 pm

Title: Modelling error handling in an activity diagram with an Interrupt Flow
Post by: BiSb on February 13, 2023, 08:47:27 pm
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).

(https://gcdnb.pbrd.co/images/td90BhHKUJ7Z.jpg?o=1)

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
Title: Re: Modelling error handling in an activity diagram with an Interrupt Flow
Post by: qwerty 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.
Title: Re: Modelling error handling in an activity diagram with an Interrupt Flow
Post by: BiSb 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
Title: Re: Modelling error handling in an activity diagram with an Interrupt Flow
Post by: qwerty on February 14, 2023, 09:08:18 pm
Yes, this is not allowed. You need to have it go out of an action.

q.