It's all about the answers!

Ask a question

RTC 6.0.6 - Java client API - How to call a predefined query with parameters ?


Olivier ROSET (50121) | asked Jul 12 '19, 10:27 a.m.
edited Dec 04 '19, 5:33 a.m.
 Hello,

I write a java program , who call some predefined querys in RTC.
One of this querys require a parameter, the work item id.

How to pass this parameter to the IQueryDescriptor instancied query variable 
I can try to use query.setParameterValues() but it is marked @deprecated.

I use RTC 6.0.6.

Thanks in advance

Accepted answer


permanent link
David Lafreniere (4.8k7) | answered Jul 15 '19, 2:22 p.m.
FORUM MODERATOR / JAZZ DEVELOPER
Looks like you may have to continue to use IQueryDescriptor.setParameterValues() even though it was marked as deprecated way back in 2012 in RTC 4.0.
I see there was a work item extracted to implement some alternative API to use, but this was never finished (tracked in Extract ResolvedQuery abstraction from IQueryDescriptor (198737))
Olivier ROSET selected this answer as the correct answer

Your answer


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.