![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: create filter Topic Summary: How to convert a string to a filter? Created On: 10-Nov-2005 08:29 Status: Post and Reply |
Linear : Threading : Single : Branch |
|
![]() |
![]()
|
![]() Answer: Hi Paul, you may be right. So I've implemented a mainly new solution, which covers the changes made by Richard in a different way ... I hope, it will work now correctly ![]() Greetings Reik Schöder | |||||
![]() |
|||||
Hello, |
|||||
![]() |
|||||
![]() |
|||||
Hi Jörg,
a few month ago I've written such a filterparser. It is able to retrieve a Filter from a string. The format of string is the same wich can be got from stringOf (Filter, Module). Please see attached include file ... I hope, that is, what you need ![]() Greetings Reik
------------------------- Evosoft GmbH for Siemens Industry Sector Berlin, Germany |
|||||
![]() |
|||||
![]() |
|||||
Hi Reik,
I cannot download the script. This seems to be a problem with these forums for a lot of people. Would you mind sending me a copy? Regards Kenny kenny.mcguffie@baesystems.com |
|||||
![]() |
|||||
![]() |
|||||
Hi Reik,
this sounds very promising. But I can not download the file. Can you reply and add the file in a different format, e.g. zip. Or can you send it to joerg.werner@web.de. Danke und schönen Gruß, Jörg |
|||||
![]() |
|||||
![]() |
|||||
Me too please!
Thanks! Shawn ------------------------- Shawn Stepper shawn.e.stepper@wellsfargo.com |
|||||
![]() |
|||||
![]() |
|||||
Hi guys,
here iss the code directly - for copy and paste - I hope this will work well ![]() Greetings Reik ------------------------- Evosoft GmbH for Siemens Industry Sector Berlin, Germany |
|||||
![]() |
|||||
![]() |
|||||
Hi Reik,
My compliments on a great idea - it saved me a lot of time, but (isn't there always a but) there were a few fairly major bugs in it. These are explained in the attached code. I hope you and others find the attached code useful. ------------------------- Regards, Richard Good |
|||||
![]() |
|||||
![]() |
|||||
Hi Richard,
sorry for some bugs and thanks for removing ![]() It was the first version of this tool and it can be enhanced somehow ... One comment to your changes: It is very nice, that the tool will now parse combinations of more than 2 Elements too. I've implemented it only with 2 parts, because the original Filters (returned by stringOf) are done in the same way. They are placing brackets around each two elements. Your solution is more comfortable to the user ![]() TNX, greetings Reik P.S.: The attached document contains the documentation of Filter syntax used by Doors and this tool.
------------------------- Evosoft GmbH for Siemens Industry Sector Berlin, Germany |
|||||
![]() |
|||||
![]() |
|||||
The parseFilter function does not seem to follow 'normal' operator precedence rules, for example: in DXL and other programming languages, the boolean expression "A and B or C and D" is evaluated as "(A and B) or (C and D)" whereas parseFilter parses the equivalent filter expression as "((A AND B) OR C) AND D"
|
|||||
![]() |
|||||
![]() |
|||||
Hi Paul,
you may be right. So I've implemented a mainly new solution, which covers the changes made by Richard in a different way ... I hope, it will work now correctly ![]() Greetings Reik Schöder
------------------------- Evosoft GmbH for Siemens Industry Sector Berlin, Germany Edited: 7-Dec-2005 at 16:08 by Reik Schroeder |
|||||
![]() |
|||||
![]() |
|||||
Nice solution Reik!
This string represents all thats good about internet forums, my compliments to all involved. ------------------------- Regards, Richard Good |
|||||
![]() |
|||||
![]() |
|||||
There seems to be another problem with the script:
The following filter does not work: Release Contains 'E' |
|||||
![]() |
|||||
![]() |
|||||
I have some very complicated filters to deal with so have had reason to remove some of the limitations of the previous code (Reik gave me a very good starter for 10). I am adding the code here so others may benefit from it and so that any bugs can be reported (if you use this and find any please report them here I want this to be as bullet proof as possible, excepting that I haven't had time to error trap that conscientiously). The code now copes with NOTs in the middle of the code and brackets in attribute names and enumerations. Hopefully the attachments will work this time.
------------------------- Regards, Richard Good |
|||||
![]() |
|||||
![]() |
|||||
All of my filter scripts are done manually, something like the attached.
- Louie |
|||||
![]() |
|||||
![]() |
|||||
I also use the accept reject technique
![]() ------------------------- Regards, Richard Good |
|||||
![]() |
|||||
![]() |
|||||
Richard -
THANK YOU! THANK YOU! THANK YOU! You have saved me untold hours of work. Regards - Heather Linsk. ------------------------- Heather Linsk Lead Engineer General Dynamics AIS 413-494-7095 |
|||||
![]() |
|||||
![]() |
|||||
There were a couple of bugs in the script concerning brackets in a string, a minor modification was needed. The corrected files are attached. I have edited a line to cope with Object Number.
------------------------- Regards, Richard Good Edited: 22-Feb-2008 at 17:52 by Richard Good |
|||||
![]() |
|||||
![]() |
|||||
Reik's dxl appears very useful.
I have seen a different dxl to modify or edit a filter that does not handle regular expressions. This one appears to handle regular expressions. The posting appears to only be the core routines to make it work, but no GUI. Before I finish throwing a simple front end on it, has anyone already done it and is willing to share? I also see that this posting is 2 years old. I'm interested to know if any improvements/fixes have been made in the last 2 years. thanks, Scott |
|||||
![]() |
|||||
![]() |
|||||
Richard even your version cannot parse a filter that tries to see if an attribute is equal to, greater than, less than, etc. a value that has brackets in it.
------------------------- David Pechacek AAI Services Textron dpechacek@sc-aaicorp.com David.Pechacek@gmail.com |
|||||
![]() |
|||||
![]() |
|||||
David,
Please send me the filter that you used to break the tool. The users I support have some fearsomely complicated filters with internal brackets etc all of which parse successfully. It's possible that I have missed some escape character or combination of escape chars that breaks the tool or that other people write filters in a differrent way to the users here. However, I don't propose to revisit this without an example that breaks it. I concede that almost all my filters are based on combinations of strings and enumerates and don't usually throw integers with greater than or less than and brackets in their names into the mix. ------------------------- Regards, Richard Good |
|||||
![]() |
|||||
Telelogic DOORS
» DXL Exchange
»
create filter
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.