-
1. Re: SyncWSHumanTaskHandler vs WSHumanTaskHandler
salaboy21 May 14, 2012 8:58 AM (in response to devilkazuya99)1 of 1 people found this helpfulHi TC,
I'm in charge of writing those docs, but I'm still working on unifying all these classes, if you take a look on master those classes are deprecated now. I will be writing in the following weeks these documents which will include the specification of a new set of WorkItemHandlers for Human Tasks. You can take a look a these classes in github. They are called:
AbstractHTWorkItemHandler -> GenericHTWorkItemHandler & AsyncGenericHTWorkItemHandler -> Then the concrete implementation for the different transports: HornetQHTWorkItemHandler and Mina...
Cheers
-
2. Re: SyncWSHumanTaskHandler vs WSHumanTaskHandler
devilkazuya99 May 14, 2012 9:23 AM (in response to salaboy21)Cool. I'll have a look.
You guys are the best.
-
3. Re: SyncWSHumanTaskHandler vs WSHumanTaskHandler
salaboy21 May 14, 2012 9:27 AM (in response to devilkazuya99)We are trying to improve the code base so if you test it and see weird things please report them to us and we will work on them
Cheers
-
4. Re: SyncWSHumanTaskHandler vs WSHumanTaskHandler
devilkazuya99 May 30, 2012 3:56 AM (in response to salaboy21)Hi Mauricio,
I am using jbpm 5.3.0 now. As SyncWSHumanTaskHandler is deprecated now, do you have code sample of using (Sync) LocalTaskService for HumanTask?
My previous code:
SyncWSHumanTaskHandler syncWSHumanTaskHandler = new SyncWSHumanTaskHandler(localTaskService, ks);
syncWSHumanTaskHandler.setLocal(true);
// syncWSHumanTaskHandler.setClient(localTaskService);
ks.getWorkItemManager().registerWorkItemHandler("Human Task", syncWSHumanTaskHandler);
-
5. Re: SyncWSHumanTaskHandler vs WSHumanTaskHandler
fguerin May 30, 2012 5:33 AM (in response to devilkazuya99)Hi,
I am using jbpm 5.3.0 too. Like TC ONG i would like to implement LocalTaskService for HumanTask but i don't find any implementation examples with the last release of jbpm.
If someone have some examples with the last release ?
Thanks,
-
6. Re: SyncWSHumanTaskHandler vs WSHumanTaskHandler
fguerin May 30, 2012 11:04 AM (in response to devilkazuya99)Nobody can help on this ?
TC ONG did you find the solution ?
Thanks,
-
7. Re: SyncWSHumanTaskHandler vs WSHumanTaskHandler
devilkazuya99 May 30, 2012 10:14 PM (in response to fguerin) -
8. Re: SyncWSHumanTaskHandler vs WSHumanTaskHandler
fguerin May 31, 2012 4:51 AM (in response to devilkazuya99)Thanks,
I implement it like this:
org.jbpm.task.service.TaskService taskService = new org.jbpm.task.service.TaskService(getEntityManagerFactory(), SystemEventListenerFactory.getSystemEventListener());
LocalTaskService localTaskService = new LocalTaskService(taskService);
SyncWSHumanTaskHandler syncWSHumanTaskHandler = new SyncWSHumanTaskHandler();
syncWSHumanTaskHandler.setLocal(true);
syncWSHumanTaskHandler.setClient(localTaskService);
getKnowledgeSession().getWorkItemManager().registerWorkItemHandler("Human Task", syncWSHumanTaskHandler);
JbpmHelper.taskService = localTaskService;
So i think it should be fine, i will test it this afternoon.
Mauricio should have the answer for the deprecated case.
-
9. Re: SyncWSHumanTaskHandler vs WSHumanTaskHandler
salaboy21 May 31, 2012 7:48 AM (in response to fguerin)Same as StackOverFlow
You can always find unit tests that shows the functionality:https://github.com/droolsjbpm/jbpm/blob/master/jbpm-human-task/jbpm-human-task-core/src/test/java/org/jbpm/process/workitem/wsht/local/sync/WSHumanTaskHandlerLocalSyncTest.javaThat test shows how to use the new classes.
We are trying to keep all the implementation aligned with the same names for all the transports and for the async and sync implementations. The new Human Task WorkItemHandlers are called: AbstractHTWorkItemHandler -> GenericHTWorkItemHandler & AsyncGenericHTWorkItemHandler -> Then the concrete implementation for the different transports: LocalHTWorkItemHandler, HornetQHTWorkItemHandler and Mina...
Using LocalTaskService is ok. Cheers
-
10. Re: SyncWSHumanTaskHandler vs WSHumanTaskHandler
salaboy21 May 31, 2012 7:49 AM (in response to salaboy21)I'm trying to keep the Test as aligned as possible with the "new" implementations (not the deprecated ones), so bare with me until I can write some examples and update the docs. Hopefully next week I will have some hours to work on that.
Cheers
-
11. Re: SyncWSHumanTaskHandler vs WSHumanTaskHandler
wtimpany Jun 8, 2012 6:54 AM (in response to devilkazuya99)Am I missing something, I can not find the "org.jbpm.process.workitem.wsht.LocalHTWorkItemHandler" class in the jbpm-5.3.0.Final distribution?
-
12. Re: SyncWSHumanTaskHandler vs WSHumanTaskHandler
fguerin Jun 8, 2012 8:08 AM (in response to wtimpany)Hello William,
You don't miss something, the class LocalHTWorkItemHandler is not present in the jbpm-5.3.0 final version.
I said the same on Stackoverflow.
For the moment i keep the exemple above because i don't find another solution.
-
13. Re: SyncWSHumanTaskHandler vs WSHumanTaskHandler
milhaim Jun 8, 2012 8:14 AM (in response to wtimpany)I have the same issue I found the source of LocalHTWorkItemHandler here :
unfortunately it's version 5.4.0-SNAPSHOT of jbpm I don't think it's included in 5.3.final