Legacy Issue Number: 16948
Source: Model Driven Solutions ( Ed Seidewitz)
: Semantics of a Foundational Subset for Executable UML Models (fUML), v1.0 (formal/2011-02-01)
Subclause: 18.104.22.168.9 DecisionNodeActivation
In the method for the DecisionNodeActivation::getDecisionInputFlowValue operation contains the statement:
value = ((ObjectToken)(tokens.getValue(0))).value;
Since a decision input flow must be an object flow, it would seem reasonable to be able to assume that this flow would only contain ObjectTokens. However, all tokens offered by ForkNodeActivations are wrapped in ForkTokens, which is directly a subclass of Token. If such a token is offered on a decision input flow, then the above cast will fail.
To fix this, the above statement should be replaced with:
value = tokens.getValue(0).getValue();
The getValue operation is defined for all types of tokens (it returns null for control tokens, but that would not be an issue here).
Reported: FUML 1.0 — Mon, 9 Jan 2012 05:00 GMT
Disposition: Resolved — FUML 1.1
Updated: Fri, 6 Mar 2015 20:58 GMT