![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Waiting/Recieving a return statement from outside DOORS. Topic Summary: Created On: 27-Aug-2007 19:21 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() Answer: Hi Scott, as described in thread you found already, there is a return value. The return value is the text written to stdout in your C-Code, so you can simply write to stdout in your code and will get this back in DXL. Here is an example for retrieving information from Clearcase (CVS). It is a little bit more complicated, because it is able to run on unix and win32 plattforms. I've used this a long time ago to import a version tree into doors module. Hope that helps, Greetings Reik | |
![]() |
|
Just curious if there is a function that I can use to call an outside script, like a C++ program and wait for it to return a value, whether it be a true or false or 0 or -1, it doesn't matter. I just need it return the value to a variable in my DXL script and make it wait until it receives the return before continuing with the script.
Thanks, ------------------------- Scott Boisvert Engineering Tools Administrator L-3 Communications - Avionics Systems scott.boisvert@l-3com.com |
|
![]() |
|
![]() |
|
I am talking in theory here...I have nothing but life experience to back this up, so I have not tested it
One thing you may be able to do is to use OLE automation to run a macro that calls your file. Have DOORS open an Excel file and run a macro. I believe DXL execution is halted until the macro completes. You can set the macro to set a certain cell to be true or false, 1 or 0, etc. The next command reads that cell. Good idea? ------------------------- Kevin Murphy http://www.baselinesinc.com The Requirements Management Experts |
|
![]() |
|
![]() |
|
Well, I'm not great with the OLE automation, actually I haven't really used it all that much. It is something on my list to learn though.
I have used Dennis Lockshine's systemWait function, found here: https://support.telelogic.com/en/doors/forums/messageview.cfm?catid=17&threadid=725&highlight_key=y&keyword1=system%20AND%20command though it doesn't except a return value, I think modifying it to read from a text file might work. ------------------------- Scott Boisvert Engineering Tools Administrator L-3 Communications - Avionics Systems scott.boisvert@l-3com.com |
|
![]() |
|
![]() |
|
Hi Scott,
as described in thread you found already, there is a return value. The return value is the text written to stdout in your C-Code, so you can simply write to stdout in your code and will get this back in DXL. Here is an example for retrieving information from Clearcase (CVS). It is a little bit more complicated, because it is able to run on unix and win32 plattforms. I've used this a long time ago to import a version tree into doors module. Hope that helps, Greetings Reik ------------------------- Evosoft GmbH for Siemens Industry Sector Berlin, Germany |
|
![]() |
|
![]() |
|
Just to add--
I tested the attached code. In excel, I created a macro named testmacro. All it does is display a msgbox "hello world" After the macro is called, DOORS calls "Hello DOORS"... The Hello DOORS does not get executed until the macro is done running. So this is another method you could use if you ever get VBA inclined! ------------------------- Kevin Murphy http://www.baselinesinc.com The Requirements Management Experts |
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.