• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Represent transactions in sequence diagram

 
Antonio Rafael Rodrigues
Ranch Hand
Posts: 74
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, one more question about UML and JavaEE.

Do you know any way to represent that a group of calls should be participants of one transaction? I did some research and read about all the Interaction operators and I did not find a good way. The closer that I found was the "critical" operator, it says that the group shoud be atomic, but it's more about thread synchronization than about transactions.

The interaction operator critical defines that the combined fragment represents a critical region. A critical region is a region with traces that cannot be interleaved by other occurrence specifications (on the lifelines covered by the region). This means that the region is treated atomically by the enclosing fragment and can't be interleaved, e.g. by parallel operator.

http://www.uml-diagrams.org/sequence-diagrams-combined-fragment.html#operator-critical

Thanks everyone.
 
Mike Degteariov
Ranch Hand
Posts: 145
8
Java Mac MySQL Database Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Antonio,

It appears that combined fragment notation does not provide anything to denote transactions.

I could not find anything suitable anyway.

I think it's still possible to put this in comments.
 
Antonio Rafael Rodrigues
Ranch Hand
Posts: 74
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Mike.

I got to this same conclusion but I asked anyway, in case of someone knows a uml compliante form to indicate that.
In my humble opinion, represent transaction boundaries is important in critical operations. It's is dificult to understand that UML doesn't have a specific way to represent that.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic