WEXP problems

Hello,

I have two problems when using the WEXP function.

The first one is sometimes, the function crashes with an error message about empty or not valid clipboard. I've seen this problem occurs more often on some specific machines !  How can I correct this bug ? Do I set a timer or anything like this ? I have the impression the clipboard is getting confused....

 

The second one is when I run the WEXP in batch mode (the documents I export are more and more bigger, and in batch mode it is faster to export them). But when I want to export a baseline, nothing happens.  I've searching about that in the forum and found something telling DOORS cannot open a baseline in batch mode. So how can I do ? Have you some other propositions ?

 

Thank's

Estebell


Estebell - Fri Jan 13 03:32:36 EST 2017

Re: WEXP problems
Mathias Mamsch - Fri Jan 13 06:03:29 EST 2017

Regarding the first problem:

I think I had this problem happening, when I used the computer while doing the export (especially, using the clipboard). Is it possible that that people do copy/pasting while running an export? Since all applications share the same clipboard this messes up the export. 

Regarding the second problem: 

Hard to remember, but does WEXP even support exporting baselines? If it works in interactive mode, it should definitely work in batch mode. There is no general problem opening baselines in batch mode, but there is a problem opening a view! May this be the cause of the problem? 

Regards, Mathias

Re: WEXP problems
Estebell - Fri Jan 13 08:08:38 EST 2017

Tank's for your response.

I've tried to run the WEXP script without any application opened on the machine. Just start the PC, open DOORS application with an opened module and do File/Export/Word.

Even if the PC is just started, the message about clipboards appears and the user didn't do anything.

I have put a loop (printing 100 times "ok") before copying in the clipboard and this works better. But there is no "sleep" function in DOORS to do the loop cleaner.

 

For the second problem, I think I did not explain it well. I've modified the WEXP function to launch it in a batch mode in order to export the document by night. When I want to export a baselined document, in the interactive mode, I display the baseline I want, load the view I want and then export it as Word. When I do the same in batch mode, it does not work.

Re: WEXP problems
Mathias Mamsch - Fri Jan 13 10:08:50 EST 2017

Estebell - Fri Jan 13 08:08:38 EST 2017

Tank's for your response.

I've tried to run the WEXP script without any application opened on the machine. Just start the PC, open DOORS application with an opened module and do File/Export/Word.

Even if the PC is just started, the message about clipboards appears and the user didn't do anything.

I have put a loop (printing 100 times "ok") before copying in the clipboard and this works better. But there is no "sleep" function in DOORS to do the loop cleaner.

 

For the second problem, I think I did not explain it well. I've modified the WEXP function to launch it in a batch mode in order to export the document by night. When I want to export a baselined document, in the interactive mode, I display the baseline I want, load the view I want and then export it as Word. When I do the same in batch mode, it does not work.

Hmm there is a lot of uncertainty here ... 

Regarding 1.

What WEXP version are you using? The "open sourced" one? Or the RFM one? I figure the open sourced one, since you modified it. Remember WEXP was made a long time ago. It is probably not fully compatible anymore with recent Office versions. Also note, that the open source version is old and contains bugs. 

Can you find a module which always exports without problems (e.g. a module with 100xObjects saying "Hello!" ? You need to narrow the source of the problem down here. 

Regarding 2: 

You need to detail what "does not work" means. As I said, you cannot load a view in batch mode. It is possible that your script terminates, when you try to do it. I found WEXP can be hard to modify. Its possible that you somehow made modifications that are buggy. 

--> Did you try something like "Interactive Batch" ? Where you load interactive mode, but trigger your functions by a script? You can look on the forum for it. 

Regards, Mathias

 

 

 

 

Re: WEXP problems
Estebell - Thu Feb 02 06:19:47 EST 2017

Mathias Mamsch - Fri Jan 13 10:08:50 EST 2017

Hmm there is a lot of uncertainty here ... 

Regarding 1.

What WEXP version are you using? The "open sourced" one? Or the RFM one? I figure the open sourced one, since you modified it. Remember WEXP was made a long time ago. It is probably not fully compatible anymore with recent Office versions. Also note, that the open source version is old and contains bugs. 

Can you find a module which always exports without problems (e.g. a module with 100xObjects saying "Hello!" ? You need to narrow the source of the problem down here. 

Regarding 2: 

You need to detail what "does not work" means. As I said, you cannot load a view in batch mode. It is possible that your script terminates, when you try to do it. I found WEXP can be hard to modify. Its possible that you somehow made modifications that are buggy. 

--> Did you try something like "Interactive Batch" ? Where you load interactive mode, but trigger your functions by a script? You can look on the forum for it. 

Regards, Mathias

 

 

 

 

Hello

I don't know wich is the RFM Wexp is. Where can i get it ? I would want to try with this one to see if it's work better.

 

Estebell

Re: WEXP problems
Mathias Mamsch - Thu Feb 02 06:34:01 EST 2017

Estebell - Thu Feb 02 06:19:47 EST 2017

Hello

I don't know wich is the RFM Wexp is. Where can i get it ? I would want to try with this one to see if it's work better.

 

Estebell

The RMF (was a typo) is the Rational Requirment Management Framework. It contains a maintained version of WEXP and as far as I know they even featured an export server once (but I am not sure). 

Find some infos about it here: 

http://www-01.ibm.com/support/docview.wss?uid=swg24032745#ABOUT

http://www.ibm.com/support/knowledgecenter/SSYQBZ_9.5.0/com.ibm.rational.doors.integrating.doc/topics/doorsrmf_user_guide.pdf

Regards, Mathias

Re: WEXP problems
Mathias Mamsch - Thu Feb 02 06:37:02 EST 2017

Mathias Mamsch - Thu Feb 02 06:34:01 EST 2017

The RMF (was a typo) is the Rational Requirment Management Framework. It contains a maintained version of WEXP and as far as I know they even featured an export server once (but I am not sure). 

Find some infos about it here: 

http://www-01.ibm.com/support/docview.wss?uid=swg24032745#ABOUT

http://www.ibm.com/support/knowledgecenter/SSYQBZ_9.5.0/com.ibm.rational.doors.integrating.doc/topics/doorsrmf_user_guide.pdf

Regards, Mathias

Oh with maintained I do not mean supported. WEXP is for a long time not supported anymore. You should probably think about using the Rational Publishing Engine. 

Details from Richard Watson here: https://www.ibm.com/developerworks/community/forums/html/topic?id=77777777-0000-0000-0000-000014301801#77777777-0000-0000-0000-000014301801

Regards, Mathias