Issue 13314: Issue: The result pin of clear and write structural feature actions can be optional (fuml-ftf) Source: Model Driven Solutions (Mr. Ed Seidewitz, ed-s(at)modeldriven.com) Nature: Uncategorized Issue Severity: Summary: Specification: Semantics of a Foundation Subset for Executable UML Models, FTF – Beta 1 (ptc/08-11-03) Sections: 8.6.3.2.1 (AddStructuralFeatureValueActionActivation), 8.6.3.2.3 (ClearStructuralFeatureActionActivation), 8.6.3.2.12 (RemoveStructuralFeatureValueActionActivation) Summary: UML 2.2 added an optional result pin to clear and write structural feature actions. However, the corresponding activation doAction operations assume the result pins are mandatory. If an action does not have a result pin, an error results. Proposed resolution: At the end of the doAction operations for AddStructuralFeatureValueActionActivation, ClearStructuralFeatureActionActivation and RemoveStructuralFeatureValueActionActivation, replace: this.putToken(action.result, value); with: if (action.result != null) { this.putToken(action.result, value); } Resolution: Change the code as proposed. Revised Text: At the end of the doAction operations for AddStructuralFeatureValueActionActivation, ClearStructuralFeatureActionActivation and RemoveStructuralFeatureValueActionActivation, replace: this.putToken(action.result, value); with: if (action.result != null) { this.putToken(action.result, value); } Actions taken: January 21, 2009: received issue July 23, 2010: closed issue Discussion: End of Annotations:===== ubject: Issue: The result pin of clear and write structural feature actions can be optional Date: Tue, 20 Jan 2009 18:05:23 -0500 X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Issue: The result pin of clear and write structural feature actions can be optional thread-index: Acl7U5LuOlQhTII2TnCAzkgZw4HYfw== From: "Ed Seidewitz" To: Specification: Semantics of a Foundation Subset for Executable UML Models, FTF . Beta 1 (ptc/08-11-03) Sections: 8.6.3.2.1 (AddStructuralFeatureValueActionActivation), 8.6.3.2.3 (ClearStructuralFeatureActionActivation), 8.6.3.2.12 (RemoveStructuralFeatureValueActionActivation) Summary: UML 2.2 added an optional result pin to clear and write structural feature actions. However, the corresponding activation doAction operations assume the result pins are mandatory. If an action does not have a result pin, an error results. Proposed resolution: At the end of the doAction operations for AddStructuralFeatureValueActionActivation, ClearStructuralFeatureActionActivation and RemoveStructuralFeatureValueActionActivation, replace: this.putToken(action.result, value); with: if (action.result != null) { this.putToken(action.result, value); }