It's all about the answers!

Ask a question

DXL in DOORs to check specific outlink and return the number of occurrences for a certain word


Rajkumar Sekar (11) | asked Nov 30 '22, 5:37 p.m.

 Thanks for any help.

I am currently trying to get a DXL script to return all occurrences for a certain word in the module in the outlink. The outlink "test" will need to be a wild card, if possible, to find all other outlnks that have the word "test" unsure on if that's possible. The attribute in the outlink will be "Compliance". Maybe need a while loop?

Link outlnk

string tmn = "" string Status = ""

int Count = 0

for outlnk in obj-> "*" do { tmn = fullName source(outlnk) Object tgt = source(outlnk) if(matches("Test", tmn)) { Status = tgt."Compliance" if (Status == "Compliant"){ Count++ } } } display Count""

I tried to get the above code to work with the below while loop. But can not figure out the correct syntax.

Regexp Check = regexp2 "Compliant"

while (!null Status && Check Status) { Status = Status[end 0 + 1:] Count++
}


Be the first one to answer this question!


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.