You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
How can I see transform in an activity diagram #134
I have defined a method named fromUnixTimeStamp with the input parameter unixTimeStamp.
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.
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?
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.
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.
Activity
etiennebrosse commentedon Feb 10, 2026
Hi Ralf,
What about adding an Opaque Action for this multiplication?
RalfEbert2 commentedon Feb 20, 2026
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
etiennebrosse commentedon Feb 20, 2026
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