cancel
Showing results for 
Search instead for 
Did you mean: 

Combination of TaskQuery and NativeTaskQuery

hybaken
Champ in-the-making
Champ in-the-making
Hello is there way to combine TaskQuery and NativeTaskQuery and also HistoricTaskInstanceQuery and NativeHistoricTaskInstanceQuery?

I read topic http://forums.activiti.org/content/using-both-taskquery-and-nativetaskquery

but I dont prefer rewriting all my code with conditions to sql.
5 REPLIES 5

trademak
Star Contributor
Star Contributor
I don't understand. No you can't combine them.

Best regards,

hybaken
Champ in-the-making
Champ in-the-making
ok, seems i just missed in guide.

Can you pls provide me some example how i can use both at once?
I mean something like
historicTaskInstanceQuery.taskOwner(taskOwner);
AND
nativeHistoricTaskInstanceQuery.sql(query);
and it return me list of tasks filtered by both conditions

hybaken
Champ in-the-making
Champ in-the-making
Maybe I did not write it clear,

is possible append criteria from historicTaskInstanceQuery to nativeHistoricTaskInstanceQuery or nativeHistoricTaskInstanceQuery to historicTaskInstanceQuery?

jbarrez
Star Contributor
Star Contributor
No. Using nativeQueries, you are on your own. The only thing it does is making sure it's executed within the correct Activiti environment settings.

hybaken
Champ in-the-making
Champ in-the-making
Oki,  thx
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.