DXL script to automate a built in DOORS function

I'd like to automate the Split Object function (under Edit --> Object --> Split) for each object in the current module that has both Object Heading and Object text in the same object.

for the life of me I can't either remember or figure out how to call a built in function, and have it run against the current object.

The code is under c:\Program Files\IBM\Rational\DOORS\9.6\lib\dxl\standard\fns\splitobj.dxl where there is also an include file of the same name.  Of course, both files are encrypted, so I can't just copy the source into my script.

Is this even possible when encrypted?

 

#include <c:\Program Files\IBM\Rational\DOORS\9.6\lib\dxl\standard\fns\splitobj.dxl
>
Object o = current
Module m = current
string heading = null
string text = null
string identifier = null
for o in m do{
 heading = o."Object Heading"
 text = o."Object Text"
 if((heading!="")&&(text!="")){
MYSTERY CODE TO RUN splitobj()
}
}
next o
 


Cliff Sadler BTI - Tue Jul 26 15:19:11 EDT 2016

Re: DXL script to automate a built in DOORS function
DOORSHAM - Tue Jul 26 22:35:07 EDT 2016

It seems to me that your statement that both the dxl calling script and the include file are both encrypted.  Perhaps you should verify that the dxl calling script is encrypted.

 

My DOORS 9.3 splitobj.dxl is not encrypted.

 

Re: DXL script to automate a built in DOORS function
PekkaMakinen - Wed Jul 27 02:48:12 EDT 2016

Hint: if you have access to DOORS 8.3 look for the code in that installation, because it is unencrypted.

I have copied to 8.3 lib directory to safe storage because the latest DOORS versions have everything encrypted. Thanks IBM.

Re: DXL script to automate a built in DOORS function
DOORSHAM - Wed Jul 27 07:12:25 EDT 2016

PekkaMakinen - Wed Jul 27 02:48:12 EDT 2016

Hint: if you have access to DOORS 8.3 look for the code in that installation, because it is unencrypted.

I have copied to 8.3 lib directory to safe storage because the latest DOORS versions have everything encrypted. Thanks IBM.

My DOORS 9.3 splitobj.dxl is not encrypted

Re: DXL script to automate a built in DOORS function
PekkaMakinen - Wed Jul 27 07:15:23 EDT 2016

DOORSHAM - Wed Jul 27 07:12:25 EDT 2016

My DOORS 9.3 splitobj.dxl is not encrypted

That's nice.

In 9.6 those scripts are encrypted.

Re: DXL script to automate a built in DOORS function
DOORSHAM - Wed Jul 27 07:23:08 EDT 2016

PekkaMakinen - Wed Jul 27 07:15:23 EDT 2016

That's nice.

In 9.6 those scripts are encrypted.

Looks like IBM is upping their game of killing DOORS, so they can make more money selling DOORSNG. And forcing companies to buy more hardware/software to do their business -- big brother wins again.

Re: DXL script to automate a built in DOORS function
Mathias Mamsch - Wed Jul 27 09:51:37 EDT 2016

Split Object is a function that is not so hard to implement. I think you would rather have more code with automating the function, than writing it yourself. (Without trying or executing some code) should it not be something like:

(see code, he does not like it to be embedded for some reason)

BTW (rant on): I don't understand why IBM would encrypt scripts at all. DXL encryption is "false" security. The client can de crypt it, so everyone can de crypt it. License Schemes in DXL are by design broken. And IBM even puts a suspicious "crypt.dll" inside the DOORS/bin folder to make life even easier for people. If they would rather have the scripts encrypted with a public key scheme which would have also ensured, that the client would only run trusted scripts. They could have delivered the DXL scripts encoded with their private key and ship only the public decry ption key with their client, and Administrators could have generated keys on their own and without broken DXL securit y ensure, that only certain scripts will run on their DOORS Server (rant off)

Regards, Mathias

 


Attachments

code.dxl