Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
Topic Title: Requirement ID
Topic Summary: How to customize the requirement id?
Created On: 25-May-2005 18:26
Status: Post and Reply
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 25-May-2005 18:26
User is offline View Users Profile Print this message


programa santiago

Posts: 1
Joined: 20-May-2005

I would like to know if it is possible to customize requirement ids using dxl. Requirements should be the concatenation of two variable string codes and a number increased by five. For example: SSS-CAP-000 SSS-CAP-005 SSS-CAP-010 ... SSS-CAP-990 SSS-QTY-000 SSS-QTY-005 ... SSS-QTY-990 thanks in advance
Report this to a Moderator Report this to a Moderator
 25-May-2005 22:23
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

You have attribute RequirementID that applies to the module as well as to the objects. The module version has only the desired prefix, perhaps SSS-CAP-; this means all objects have this prefix as their Requirement ID.

You could then have a DXL that examines all the Requirement IDs of all "requirements" objects in the module, including deleted requirements (a requirement perhaps is an object that says "shall" in the Text). The Prefix is stripped from the ReqID leaving an integer. The highest integer found is remembered.

You could then find Requirements that have no ID. The highest ID found is rounded up to the next integer of 5, converted to string with leading zeros, appended to the Prefix, and assigned to that requirement. Padding and unpadding is a little tricky but we've got functions for that.

If a spec can have different ReqID Prefixes, then instead of the module attribute you can prompt for it. The initial object seach would look only for ReqIDs that match that Prefix.

You'll find you run out of ReqIDs if you use only 3 digits (leaves you only 200 before you run out). I'd use 5 digits allowing for 20k ReqIDs.

- Louie
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 1 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
There are currently 0 guests browsing this forum, which makes a total of 1 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.