Welcome to the Jazz Community Forum
RTC 6.0.6 - Java client API - How to call a predefined query with parameters ?

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

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))