How to create Project and Folder in DXL?

How to create Project and Folder in DXL

DOORS (Dynamic Object-Oriented Requirements System) is a popular requirements management tool used by organizations to manage and analyze requirements. DXL (DOORS Extension Language) is the programming language used in DOORS to customize and extend its functionality. In this article, we will discuss how to create a project and folder using DOORS DXL.

Projects and folders are used to organize requirements in DOORS. A project is a top-level container that holds all the requirements related to a specific project. A folder is a sub-container within a project that holds a group of related requirements.

How to create Project in DXL?

The create() function can be used to create a Project in DOORS. Here is the syntax –  

Project create (string name, string description)  // to create a Project in DXL  

Project current // returns the reference of the selected Project 

// www.TheCloudStrap.Com 

/************************************************************************
* $FILENAME: p1.dxl
* $DESCRIPTION: DXL Item example
*
* NOTICE: Copyright www.TheCloudStrap.Com. All rights reserved.
* Software comes without any warranties and guarantees, is provided 
* as is and is not supported. Use this software at your own risk. 
* Authors resume no liabilities.
* 
* Contact: admin {at} TheCloudStrap.com
************************************************************************/

// Example of creating Project
Project p = create ("/Sample_Project", "sample description")
current = project "/Sample_Project"
print name (current Project) "\n"

How to create a Folder in DXL?

The create() function can be used to create a Folder in DOORS. Here is the syntax – 

Folder create (string name, string description)  // to create a Folder in DXL  

Folder current // returns the reference of the selected Folder 

// www.TheCloudStrap.Com 

/************************************************************************
* $FILENAME: p2.dxl
* $DESCRIPTION: DXL Item example
*
* NOTICE: Copyright www.TheCloudStrap.Com. All rights reserved.
* Software comes without any warranties and guarantees, is provided 
* as is and is not supported. Use this software at your own risk. 
* Authors resume no liabilities.
* 
* Contact: admin {at} TheCloudStrap.com
************************************************************************/

// Example of creating Folder
Folder f = create ("/Sample_Folder", "sample folder description")
current = folder "/"   // Database root folder as current.
print name (current Folder) "\n"

Conclusion

In this article, we discussed how to create a project and folder using DOORS DXL. Projects and folders are essential for organizing requirements in DOORS, and the ability to create them using DXL provides developers with a powerful tool to automate and customize the management of requirements. With the knowledge gained in this post, you can begin creating your own projects and folders in DOORS DXL.

How to create Project and Folder in DXL?
Scroll to top
error: Content is protected !!