![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
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 |
![]() |
![]()
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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. |
|
![]() |
|
![]() |
|
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 |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
DXL "if" function help
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.