Hi all, |
Re: RifDefinition (Doors 9.3)
The following perms come to my eye (without having the possibility to check in DOORS 9.3 for myself): RifDefinition createTemp (RifDefinition) void ::do (RifDefinition&, ModName_, void) // for RifDefinition in ModName_ do ... void ::do (RifDefinition&, Project, void) // for RifDefinition in Project do ... RifDefinition ::. (RifExportRecord, RifExportRecordDef_) RifDefinition ::. (RifImport, RifImportDef_) void deleteTemp (RifDefinition&)
Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS
|
Re: RifDefinition (Doors 9.3) Mathias Mamsch - Mon Feb 14 08:34:12 EST 2011
The following perms come to my eye (without having the possibility to check in DOORS 9.3 for myself): RifDefinition createTemp (RifDefinition) void ::do (RifDefinition&, ModName_, void) // for RifDefinition in ModName_ do ... void ::do (RifDefinition&, Project, void) // for RifDefinition in Project do ... RifDefinition ::. (RifExportRecord, RifExportRecordDef_) RifDefinition ::. (RifImport, RifImportDef_) void deleteTemp (RifDefinition&)
Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS
I was not able to do it. Thank you |
Re: RifDefinition (Doors 9.3) VBdo - Tue Feb 15 05:03:42 EST 2011
Unfortunately I don't have access to a DOORS 9.2-1 installation, which has the RIF perms and did not really play with RIF yet. Your question was: "How can I create a RifDefinition?". I looked at the DXL perms and saw that there are exactly 3 functions that will enable you to create a variable of type RifDefinition. So without trying the following code should do something:
Project p = current
if (null p) {ack "Start this from a project."; halt }
RifDefinition def = null
for def in p do print "Name: " (def.name) " Description: " (def.description) "\n"
Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS
|
Re: RifDefinition (Doors 9.3) Mathias Mamsch - Tue Feb 15 08:04:23 EST 2011
Unfortunately I don't have access to a DOORS 9.2-1 installation, which has the RIF perms and did not really play with RIF yet. Your question was: "How can I create a RifDefinition?". I looked at the DXL perms and saw that there are exactly 3 functions that will enable you to create a variable of type RifDefinition. So without trying the following code should do something:
Project p = current
if (null p) {ack "Start this from a project."; halt }
RifDefinition def = null
for def in p do print "Name: " (def.name) " Description: " (def.description) "\n"
Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS
Your last code selects available rifdefinition. Strictly speaking I would like to write rifdefinition.(for Exporting) Thanks |
Re: RifDefinition (Doors 9.3) Mathias Mamsch - Tue Feb 15 08:04:23 EST 2011
Unfortunately I don't have access to a DOORS 9.2-1 installation, which has the RIF perms and did not really play with RIF yet. Your question was: "How can I create a RifDefinition?". I looked at the DXL perms and saw that there are exactly 3 functions that will enable you to create a variable of type RifDefinition. So without trying the following code should do something:
Project p = current
if (null p) {ack "Start this from a project."; halt }
RifDefinition def = null
for def in p do print "Name: " (def.name) " Description: " (def.description) "\n"
Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS
Ok I had a look at the 9.3 dxl help, and there seems to be missing some information I guess.
RifDefinition rifDef
Project p = current
strErrMsg = createRifDefinition(p, "Definition Name", "Description", "YourRifID", rifDef)
Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS
|
Re: RifDefinition (Doors 9.3) Mathias Mamsch - Tue Feb 15 08:53:35 EST 2011
Ok I had a look at the 9.3 dxl help, and there seems to be missing some information I guess.
RifDefinition rifDef
Project p = current
strErrMsg = createRifDefinition(p, "Definition Name", "Description", "YourRifID", rifDef)
Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS
Have you a other idea? Thanks |
Re: RifDefinition (Doors 9.3) VBdo - Tue Feb 15 09:09:49 EST 2011
Hmm ... maybe try:
Project p = current
RifDefinition pkg = createTemp("My Package Name", "My Description")
string errorMsg = addModuleToRifDefinition(pkg, moduleVersion current Module, "", "", ddcNone)
errorMsg = saveTemp(pkg,p)
Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS
|
Re: RifDefinition (Doors 9.3) Mathias Mamsch - Tue Feb 15 10:30:54 EST 2011
Hmm ... maybe try:
Project p = current
RifDefinition pkg = createTemp("My Package Name", "My Description")
string errorMsg = addModuleToRifDefinition(pkg, moduleVersion current Module, "", "", ddcNone)
errorMsg = saveTemp(pkg,p)
Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS
When I have tried out yours code, I agreed the following mistake:
string mName = "/New_Project/00 Test"
ModName_ modN = null
Module m = null
modN = module(mName)
Project p(string New_Project)
RifDefinition pkg = createTemp("My Package Name", "My Description")
string errorMsg = addModuleToRifDefinition(pkg, moduleVersion(mName), "", "", ddcNone)
errorMsg = saveTemp(pkg,p)
|
Re: RifDefinition (Doors 9.3) VBdo - Wed Feb 16 08:21:51 EST 2011
When I have tried out yours code, I agreed the following mistake:
string mName = "/New_Project/00 Test"
ModName_ modN = null
Module m = null
modN = module(mName)
Project p(string New_Project)
RifDefinition pkg = createTemp("My Package Name", "My Description")
string errorMsg = addModuleToRifDefinition(pkg, moduleVersion(mName), "", "", ddcNone)
errorMsg = saveTemp(pkg,p)
Hmm that project definition looks strange: You are making a function forward declaration out of p. I think you meant:
Project p = project "/New_Project"
string mName = "/New_Project/00 Test"
ModuleVersion mv = moduleVersion module mName
RifDefinition pkg = createTemp("My Package Name", "My Description")
string errorMsg = addModuleToRifDefinition(pkg, mv, "", "", ddcNone)
errorMsg = saveTemp(pkg,p)
Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS
|
Re: RifDefinition (Doors 9.3) Mathias Mamsch - Wed Feb 16 11:11:26 EST 2011
Hmm that project definition looks strange: You are making a function forward declaration out of p. I think you meant:
Project p = project "/New_Project"
string mName = "/New_Project/00 Test"
ModuleVersion mv = moduleVersion module mName
RifDefinition pkg = createTemp("My Package Name", "My Description")
string errorMsg = addModuleToRifDefinition(pkg, mv, "", "", ddcNone)
errorMsg = saveTemp(pkg,p)
Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS
Hi again,
RifDefinition pkg
RifModuleDefinition rmdef
Project p = project "/test"
string s
string mName = "/test/test"
ModuleProperties mp
ModuleVersion mv = moduleVersion (module mName)
mv = moduleVersion (module mName)
for pkg in p do{
createRifDefinition(p, "Definition Name", "Description", "YourRifID", pkg)
for rmdef in pkg do {
addModuleToRifDefinition(pkg, mv, "ion Name", "ipti", ddcNone)
}
}
|
Re: RifDefinition (Doors 9.3) VBdo - Thu Feb 24 04:34:01 EST 2011
Hi again,
RifDefinition pkg
RifModuleDefinition rmdef
Project p = project "/test"
string s
string mName = "/test/test"
ModuleProperties mp
ModuleVersion mv = moduleVersion (module mName)
mv = moduleVersion (module mName)
for pkg in p do{
createRifDefinition(p, "Definition Name", "Description", "YourRifID", pkg)
for rmdef in pkg do {
addModuleToRifDefinition(pkg, mv, "ion Name", "ipti", ddcNone)
}
}
Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS |
Re: RifDefinition (Doors 9.3) Mathias Mamsch - Thu Feb 24 05:23:38 EST 2011 Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS Thank you |