Book a Demo

Author Topic: Labels of ports (pins)  (Read 2546 times)

FelixJ

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Labels of ports (pins)
« on: March 14, 2013, 02:30:49 am »
Hello everyone,

I have a question according ports (pins) of actions in an activity diagram. We plan to model a workflow, which is controlled by parameters. These parameters are supposed to be defined within the diagram itself. So we use "CallOperation" actions with attached pins. For an easy understanding of the diagram we would like to modify the label of the pins in a way, that the parameters of an action are shown including their default value.

Example:
Let's assume we have the action "Print", which is an action of "CallBehaviour". The called operation has the parameter "text". We added a pin for the action and assign it in the settings "Pin" as the according parameter, in this case "text". We also apply a value.

Now I want to see the value in the label of the pin, so that it is easy to see what the action does. Something like "<<Stereotype>> print(text=Hello)" would be nice. I created a stereotype and also tried to create a shape script for what I want. But it doesn't seem to work out. Also I don't find any other settings, where I can modify the label of the pin.

Does anyone know how to adjust these labels? I would be very thankful.

Best regards,
Felix

Helmut Ortmann

  • EA User
  • **
  • Posts: 970
  • Karma: +42/-1
    • View Profile
Re: Labels of ports (pins)
« Reply #1 on: March 15, 2013, 06:28:38 pm »
Hello,

the label of the action may consist of the following parts:
- Parameter name
- Parameter type
- Multiplicity
- State (Tagged Value)

The action itself contains:
- Optional: Meaningful name of what this action is intended to do
- Operation Name

If you want further information feel free to add notes. You may connect the note with information of pins like Notes or action.

Kind regards,

Helmut
Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)