-1

I'm looking for a tool that can create sequence diagrams and messages between entity-instances. But what I want to specify the messages in more detail.

For example when a class invokes a service and I want to specify the correspondence between each attribute of the class and each input attribute of the service.

Is there any uml tool with this kind of capability?

abdiel
  • 2,078
  • 16
  • 24
  • 1
    What is a "primary_name" entry of the service ? – granier Jan 05 '18 at 16:31
  • 1
    Remove the "There is any.." part of your question since that's off-topic. And also explain what @granier was asking. – qwerty_so Jan 05 '18 at 16:42
  • A primary_name is just one of the input needed to the service and correspond to the name of the person (in the class). I edited the question. – abdiel Jan 05 '18 at 19:11

2 Answers2

1

As i know this is not possible easily, you have to do sequences diagrams and add OCL constraints to define what you want.

But the constraints will be difficult to write.

Another solution is to write the constraints in "natural" language, it will not be possible to process them with a tool but like that you can express what you need.

granier
  • 1,739
  • 13
  • 25
1

I think you're wanting to model two different things here, one is about behaviour (your sequence chart) and the other about information structure (your message mapping). You can model these comprehensively in many model-based UML tools (i.e. not drawing apps). The way you'd do this is to specify an operation on the service you are calling, which has a set of parameters that are in themselves classes (not primitives). Assemble a class model which illustrates the mapping between your calling class's attributes and the attributes of these parameter classes. Then simply illustrate this operation call on your sequence chart.

[update] Here’s an example:

enter image description here

muszeo
  • 2,312
  • 9
  • 13
  • Can you give some example of how look the message mapping in any tool? – abdiel Jan 25 '18 at 14:45
  • 1
    I’ve added an example above. Alas I’m on my iPad and haven’t got a modelling tool to hand. However you can do this in tools like Sparx Systems EA very easily. – muszeo Jan 25 '18 at 22:14