-
1. Re: Get and Dispose RuntimeEngine for Task Queries?
swiderski.maciej Nov 24, 2013 6:06 AM (in response to vutnal)whenever you create RuntimeEngine you need to dispose it once you're done working on it. Regardless if you use KieSession or TaskService as both will be created and initialized.
Alternatively for query related operations on task service you can create instance of TaskService that will be "standalone" mode meaning not connected to any KieSession. That instance can be used for read only operations like query. To create an instance of it you can either use CDI (if you use CDI) or use HumanTaskServiceFactory to get configurator object that allows you to configure TaskService instance according to your needs.
HTH
-
2. Re: Get and Dispose RuntimeEngine for Task Queries?
vutnal Nov 25, 2013 1:26 AM (in response to swiderski.maciej)Thanks Maciej. This was really helpful.
Can you please provide me some example to use HumanTaskServiceFactory to configure Task Services (Preferably Mina HT Service similar to one used in jbpm5.4)?
-
3. Re: Get and Dispose RuntimeEngine for Task Queries?
swiderski.maciej Nov 25, 2013 1:34 AM (in response to vutnal)in jBPM 6 TaskService is used as local task service by default so it's just a matter of creating the instance of it. Here you can find an example how to do it.
HTH
-
4. Re: Get and Dispose RuntimeEngine for Task Queries?
vutnal Nov 25, 2013 4:08 AM (in response to swiderski.maciej)Thanks Maciej. will explore more on this.