RTC 6.0.6 - Java client API - How to call a predefined query with parameters ?
![](http://jazz.net/_images/myphoto/0794b2a396fd6c491dea676dcafa6db2.jpg)
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
![](http://jazz.net/_images/myphoto/0794b2a396fd6c491dea676dcafa6db2.jpg)
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))