DXL, ibm DOORS
Looping through module, then through every object history, I am trying to assign to "_Owner" attribute the author from obj history who modified last time "_ReqStatus" attribute, if "_Owner" is empty.
This is what I tried:
Module m = current
History h
HistoryType ht
Object o
string attributName
string authorName
string newOwner
noError()
for o in entire m do {
for h in o do
{
string owner = ""
attributName=""
attributName = h.attrName
authorName=""
owner = o."_Owner"
if isDeleted(o) then continue
if((attributName=="_ReqStatus"))
{
authorName=h.author
//print authorName
//print "
"
if(null owner)
{
print identifier(o)
print "
"
newOwner = authorName
print newOwner"
"
owner = newOwner
print owner
break
}
}
}
}
ErrMess = lastError()
The output for print owner
is as expected. My problem is that in-DOORS attribute is not filling at all with any value.
_Owner
attribute type is Ennumeration and attribute properties look like this, but I don't know if it matters:
"_Owner" attr properties
question from:
https://stackoverflow.com/questions/65621762/dxlcannot-assign-to-an-attribute-some-properties-found-in-history 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…