ArticleslgStudy

science

DOORS Extension Language

DOORS Extension Language is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand DOORS Extension Language rather than just read about it. In short: DOORS Extension Language (DXL) is a scripting language used to extend the functionality of IBM's ERM DOORS. This programming language is somewhat similar to C and C++.

Key takeaways

  • DOORS Extension Language belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect DOORS Extension Language to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of DOORS Extension Language from memory before moving on to harder problems.

Reference excerpt

DOORS Extension Language (DXL) is a scripting language used to extend the functionality of IBM's ERM DOORS. This programming language is somewhat similar to C and C++. This language is specific to DOORS, and it has its own syntax, declaration, a forum to discuss the development, in addition to the specific reference manuals. DXL scripts were utilized to help the users of DOORS. Much of the native DOORS GUI is written in DXL. DXL is used in the client-server based "DOORS Classic"; it is not used in the newer web-based "DOORS Next Generation".

Usage of DXL There are several of ways to use the DXL in the IBM ERM DOORS.

"Editor DXL" is DXL typed into the DXL Editor window and run from there. It may or may not also be saved in some file. This DXL typically has some user interface, if only print statements. "Menu DXL" is stored in Files and appear in DOORS windows, either the Explorer or open Module. The files must be of type .dxl, the files and the housing folders must be set up to display DOORS menus. It is otherwise like DXL Editor DXL. "Attribute DXL" is stored in an Attribute Definition and saved in a Module. It has the context of a single object. When the object-attr-value is retrieved (including being displayed) the code runs and calculates the value for that object. Calculated values are not saved in the module. Attr-DXL should be written to run without user interface and complete without any pauses. "Layout DXL" is defined in a Column and saved in a module's View. It runs for an object when that object's layout column is displayed in the GUI. It is otherwise similar to Attr-DXL. Layout DXL can be generated by the traceability Wizard, and can be converted to Attr-DXL. "Batch DXL" is stored in files. It runs when DOORS is run in (background) batch mode as either "Batch", "DXL", or "CLE" code defined in the batch process's command line. Since Batch mode as no GUI loaded, so DXL running in batch has some restrictions on what can run or how it is run, certainly it can have no GUI. "Trigger DXL" is defined in a "Trigger" and stored either in a Module, a Project, or in the Database root. There is no native interface for Triggers; a file-based DXL is needed to create or delete the Trigger. When the Trigger's specified Event occurs (such as Opening a Module) any Triggers associated with that event run in order of priority. There are some restrictions on what can run inside a Trigger, but it can and often does have some Interface (typically asking the user to proceed or not). "Post" event trigger run after the event; "Pre" event triggers run before the event and can prevent the event from happening. The most common types of events are opening/closing a module, selecting a new object, or saving an object-attr value. Dynamic triggers are not stored and exist only while DOORS is running on the client computer. A typical dynamic trigger would be a post-module-close trigger that will close a GUI (such as a "print" dialog) associated with that module. A common mistake made while learning Triggers is to define a pre-module-close trigger that always prevents the module from closing. "Eval DXL" is invoked from other DXL and runs in its own context. It is generally reserved for nuanced advanced DXL. "Top Eval" code gets deployed in the "top context" and applies to all future DXL until DOORS closes.

DXL script extensions DXL scripts are usually stored with extension of ".dxl", however they do use the library files with extension ".inc".

"Hello, World" example To print the message "Hello, World", the following code will be used,

DXL editors Sodius DXL Editor, built on top of Eclipse, is one tool which provides option to edit, browse, compile, execute, and debug DXL scripts. There are many open source and free editors like Notepad++ and jEdit that support DXL by custom properties.

References

External links Unlocking DOORS – An Introduction to DXL.

Worked examples

Example 1 — a first encounter with DOORS Extension Language

Start with the simplest possible case. Write down what DOORS Extension Language claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to DOORS Extension Language before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about DOORS Extension Language ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of DOORS Extension Language

In research
DOORS Extension Language appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses DOORS Extension Language in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
DOORS Extension Language is common in secondary-school and first-year university syllabi. It links to neighbouring topics Scripting languages, so understanding it makes those chapters shorter.
In everyday life
Look for DOORS Extension Language outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “DOORS Extension Language” →

How to study DOORS Extension Language in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what DOORS Extension Language means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain DOORS Extension Language out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is DOORS Extension Language in simple terms?

DOORS Extension Language (DXL) is a scripting language used to extend the functionality of IBM's ERM DOORS. This programming language is somewhat similar to C and C++.

Why does DOORS Extension Language matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study DOORS Extension Language?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on DOORS Extension Language.

Tags

  • Scripting languages

Keep exploring