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: DXL "if" function help
Topic Summary: Old DXL incorrect regular experssion
Created On: 3-Oct-2008 17:06
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.
 3-Oct-2008 17:06
User is offline View Users Profile Print this message


Corey Carroll

Posts: 48
Joined: 25-May-2006

So, I found an old DXL that is ran from an Abbreviations and Acronyms module. The user defines which module to search for abbreviations and acronyms in and which boolean attribute in the abbreviation module to mark true when if finds the correct criteria. Code is attached, I get the error below when ran:

-R-E- DXL: <Line:34> incorrect regular expression (Badly placed parenthesis)
-I- DXL: execution halted

The line it pukes on is this one....

if (matches (o."Definition"" ("o."Object Text"")", read_o."Object Text"""))

It basically says if a term in the Definition attribute in the current module matches text in Object Text in the target module, enter OK into the Comment attribute. The code worked in older releases of DOORS, but now it won't. I can't seem to find what is wrong...any clues?

Thanks in advance.
Corey
Report this to a Moderator Report this to a Moderator
 3-Oct-2008 22:10
User is offline View Users Profile Print this message


ron lewis

Posts: 650
Joined: 20-Sep-2004

From the error message, it seems you have been bitten by a parenthesis in the DOORS modules attributes.

Rationale --When you read in an attribute the text becomes part of the regular expression.

I would look in the attributes and my guess is you will find an open parenthesis without a closing parenthesis or something similar to this nuiance of REs.
Report this to a Moderator Report this to a Moderator
 7-Oct-2008 16:49
User is offline View Users Profile Print this message


Douglas Zawacki

Posts: 58
Joined: 17-Oct-2006

if (matches (o."Definition"" ("o."Object Text"")", read_o."Object Text"""))

Shouldn't that be

if (matches (o."Definition" "" ("o."Object Text" ""), read_o."Object Text" "" ))

It appears the quotes were whacky...

Edited: 7-Oct-2008 at 16:51 by Douglas Zawacki
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.