![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Setting Enumerated Attribute by Related Number? Topic Summary: Is is possible to set an enumerated attribute using the "Related Number" of the enumeration? Created On: 26-Aug-2008 20:30 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
I have an enumerated type that contains a list of 5 somewhat long sentences. (Descriptions of what must be done for a system risk. e.g. "Corrective action required and additional analysis in the Product Risk Assessment") I have assigned each enumeration a related number.
What I am trying to figure out how to do is set the associated attribute's value using the enumeration's related number. For example. riskrating = (severity*Occurences*detectability) o."Total Score" = riskrating if (riskrating > 0) { if (riskrating < 80) {o."Risk Level" = 1} if (riskrating >= 80) {if (riskrating < 125) {o."Risk Level" = 2}} if (riskrating >= 125) {o."Risk Level" = 3} } } If this worked the way I'd like it to, the "1", "2", and "3" values would be the "Related Number" for the enumeration. Currently, the only way I can get this to work is to reproduce the actual text of the enumeration. e.g.: ... o."Risk Level" = "Corrective action required and additional analysis in the Product Risk Assessment" Any help would be appreciated. |
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.