Hi

Can you use SearchContext to prepare SearchCondition (this is when ParamConverterProvider is checked) and then pass this condition to a thread ?

Cheers, Sergey
On 14/10/15 08:20, Vjacheslav V. Borisov wrote:
Hi,

i am writing service, which starts separate thread, and  want to use FIQL
in this thread
@Context SearchContext is unavailiable on this thread,

and i am using this code to construct SearchCondition:
     public static SearchCondition getSearchCondition(String fiqlExpression,
Class clazz) {
         SearchCondition searchCondition;
         FiqlParser fiqlParser = new FiqlParser<>(clazz);
         searchCondition = fiqlParser.parse(fiqlExpression);
         return searchCondition;
     }
but onfortunately, it does not attaches ParamConverterProvider -s, so i
cannot use dates, custom types in queries

Does it possible to attach SearchContext to separate thread or attach
ParamConverterProvider to FiqlParser?



--
Sergey Beryozkin

Talend Community Coders
http://coders.talend.com/

Reply via email to