2

ReadVariableAction activity action in BoUML allows to choose a class and its attribute and returns the attribute through creation of output pin (see figure below and BoUML documentation): enter image description here

But what is the semantic of that action? What does ReadVariableAction operation actually return?

According to clause 16.9.3.1 Variable Action of The Unified Modeling Language Specification Version 2.5:

A VariableAction operates on a statically-specified Variable. The Variable must be one that is defined either by an Activity (see sub clause 15.2) or a StructuredActivityNode (see sub clause 16.11) containing the VariableAction.

Clause 15.2.2 Abstract Syntax below says that Variable subsets ownedMember, so the variable should be identifiable by name. enter image description here

But BoUML neither allows creation of variables for an activity nor passing a name of a variable to ReadVariableAction.

It seems that I could use ReadVariableAction as shown below enter image description here

But it's wrong model from UML's point of view.

1 Answer 1

2

The semantic of the read/write/clear/add/remove variable actions in BoUML is ... wrong !

Clearly I misunderstood that part when I added the activities in BoUML, I didn't read well the norm to understood that concerns variable of the activity or a structured activity node. So by error the 'variable' I allow to choose is an attribute of a class. An other consequence is you cannot define variables for an activity nor structured activity node.

Mea culpa


BoUML 7.10 is available and fix the problem

11
  • IMHO, 'variable' actions should probably be renamed into Structural Feature Actions and with added 'object' InputPin everything will look fine. And Read Self Action would be greatly appreciated too ))
    – zer0hedge
    Commented Apr 24, 2020 at 9:47
  • @zer0hedge To both correct and stay compatible I can allow variables for activity (structured node), and when reading a model made by version <= 7.9.1 automatically create them in activity/expansion nodes from the current read/write/clear/add/remove variable actions from attribute name/multiplicity/type (adding post fix when attribute have same name but different type), also updating dialog box and plug-out API. For me the compatibility between versions is very important, any version is able to read a model made/modified by any previous lower version since the very first in 2005.
    – bruno
    Commented May 28, 2020 at 9:07
  • IMHO, if you align semantic of variable actions with UML specification precisely then all previous usages of variable actions need to be modified manually by the authors of models. So in addition to what you proposed I would consider introducing export previous version functionality which would report all elements whose semantic has been changed so the manual intervention is required. For example, all these elements could be marked - marks have red color and can be saved.
    – zer0hedge
    Commented May 29, 2020 at 6:20
  • I added an example to the question. Someone could produce such a model and the model needs to be fixed manually (i.e. Read Self Action has to be added etc)
    – zer0hedge
    Commented May 29, 2020 at 8:13
  • I like BoUML and can use it 'as-is'
    – zer0hedge
    Commented May 29, 2020 at 9:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.