Given an object array, an instance of some arbitrary class Array, which for this purpose has an attribute length.
How can I model an UML activity diagram, that, at some point, uses array.length in an control flow statement, i.e. in guards of a decision node.
array = getArray();
if (array.length > 5)
save();
else
waitForData();
I know that the guards of the used decision node would be [array.length > 5] and [array.length <= 5]. But I am not sure how I can integrate this with the object flow present in activity diagrams.