IBM Doors DXL: Create Module with Attributes

Problem

A new module with attributes shall be created.

Ansatz – Approach

Uasage of createModule and AttrDef=create

Lösung – Solution

void createAttributes(Module mod)
{
	Module oldCurrent=current;
	current = mod;
	AttrDef attrObjIdentifier = create object type "Text" attribute "BB_Object_Identifier";
	AttrDef attrObjStatus = create object type "Text" attribute "BB_Object_Status";
	AttrDef attrLinks = create object type "Text" attribute "BB_Outgoing_Links";
	current=oldCurrent;
}

string creationPathOfTempModule="/VarCo/20 Sample Project/Administration/" tmpFileName;	
Module newModule = createModule(creationPathOfTempModule, tmpFileName);
createAttributes(newModule);	

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert

Diese Website verwendet Akismet, um Spam zu reduzieren. Erfahre mehr darüber, wie deine Kommentardaten verarbeitet werden.