Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

 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++
}


0 votes


Be the first one to answer this question!

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Nov 30 '22, 5:37 p.m.

Question was seen: 681 times

Last updated: Nov 30 '22, 5:37 p.m.

Confirmation Cancel Confirm