Issue 13450: Error in return value of ActivityNodeActivation::removeToken (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) Section: 8.5.2.2.4 ActivityNodeActivation Summary: The ActivityNodeActivation::removeToken operation is documented as returning 0 if no token is removed. However, the code does not currently do this. Proposed Resolution: At the end of the operation replace: return i -1; with: if (notFound) { i = 0; } else { i = i – 1; return i; } Resolution: Change the code as proposed. Revised Text: At the end of ActivityNodeActivation::removeToken replace: return i -1; with: if (notFound) { i = 0; } else { i = i – 1; return i; } Actions taken: February 6, 2009: received issue July 23, 2010: closed issue Discussion: End of Annotations:===== ubject: Error in return value of ActivityNodeActivation::removeToken Date: Fri, 6 Feb 2009 15:18:29 -0500 X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Error in return value of ActivityNodeActivation::removeToken thread-index: AcmImBM9orhCdTFQSUesajzekIiMpA== From: "Ed Seidewitz" To: Specification: Semantics of a Foundation Subset for Executable UML Models, FTF . Beta 1 (ptc/08-11-03) Section: 8.6.4.2.5 (ReclassifyObjectActionActivation) Summary: The ActivityNodeActivation::removeToken operation is documented as returning 0 if no token is removed. However, the code does not currently do this. Proposed Resolution: At the end of the operation replace: return i -1; with: if (notFound) { i = 0; } else { i = i . 1; return i; } Subject: RE: issue 13450 - FUML FTF issue Date: Fri, 6 Feb 2009 15:35:06 -0500 X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: issue 13450 - FUML FTF issue thread-index: AcmImdse9z48kYo4QtmCzdgvqxizygAAHEOw From: "Ed Seidewitz" To: "Juergen Boldt" , Oops.The section reference for this issue is wrong. It should be 8.5.2.2.4 ActivityNodeActivation. -------------------------------------------------------------------------------- From: Juergen Boldt [mailto:juergen@omg.org] Sent: Friday, February 06, 2009 3:30 PM To: issues@omg.org; fuml-ftf@omg.org Subject: issue 13450 - FUML FTF issue Subject: Error in return value of ActivityNodeActivation::removeToken Date: Fri, 6 Feb 2009 15:18:29 -0500 X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Error in return value of ActivityNodeActivation::removeToken thread-index: AcmImBM9orhCdTFQSUesajzekIiMpA== From: "Ed Seidewitz" To: Specification: Semantics of a Foundation Subset for Executable UML Models, FTF . Beta 1 (ptc/08-11-03) Section: 8.6.4.2.5 (ReclassifyObjectActionActivation) Summary: The ActivityNodeActivation::removeToken operation is documented as returning 0 if no token is removed. However, the code does not currently do this. Proposed Resolution: At the end of the operation replace: return i -1; with: if (notFound) { i = 0; } else { i = i . 1; return i; } Juergen Boldt Director, Member Services Object Management Group 140 Kendrick St Building A Suite 300 Needham, MA 02494 USA tel: +1 781 444 0404 x 132 fax: +1 781 444 0320 email: juergen@omg.org www.omg.org