Skip to content

How can I see transform in an activity diagram #134

Open

Description

@RalfEbert2

I have defined a method named fromUnixTimeStamp with the input parameter unixTimeStamp.

Image

This parameter is, multiplied by 1000, an input parameter for a method named fromMilliSecondsSinceEpoch. Because the multiplication is a trvial operation I'll insert it in the property TransformationBehavior of the flow betweeen the parameter unitTimeStamp and the input pin of fromMilliSecondsSinceEpoch and view this in an activity diagram.

Image

Unfortunately I see no way to show the transformation behavior in this diagram, so I added a note as a workaround to the diagram.

Can you tell me I can solve this point without the workaround?

I'm using ModelIo 5.4.01 with Ubuntu 24.04.3 LTS.

Best regards
Ralf Ebert

Activity

  1. etiennebrosse commented on Feb 10, 2026

    @etiennebrosse

    Hi Ralf,

    What about adding an Opaque Action for this multiplication?

    Image
  2. RalfEbert2 commented on Feb 20, 2026

    @RalfEbert2
    Author

    Hi etiennebrosse,

    Sure, I can do this as a workaround. However, I prefer to use the raw UML features and, as I believe, this attribute was defined for cases such as those described in the question, because the diagrams will become clearer if they are not overloaded with opaque actions that are only used to describe a transformation.

    If I am wrong, feel free to explain why.

    Best regards
    Ralf Ebert

  3. etiennebrosse commented on Feb 20, 2026

    @etiennebrosse

    Hi,
    I am not sure to understand what you means by "I prefer to use the raw UML features and, as I believe,this attribute was defined for cases such as those described in the question".

    I understood that you have a method named fromUnixTimeStamp with the input parameter unixTimeStamp and internally you want to call a method named fromMilliSecondsSinceEpoch with a input parameter equals to 1000 x unixTimeStamp value.

    And you question was how to represent the fact that I need to multiply my parameter by 1000, am I right?

    So your proposal was to represent that by a note, I proposed by a Opaque action.
    This can be done by using a CallAction refering a mutiplicity method with a constant equals to 1000, etc.

    There is many way to represent a product.
    If your concerns is to not overloaded your model or human will read it, a note is maybe the best solution.
    If it need to be parse by a computer, maybe a multiplicity method with a 1000 constant is maybe better.

    Do not hesitate to explain again your issue to try to find another option.

    Best Regards,
    Etienne

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions