-
1. Re: Using TaskService directly vs Task Server/TaskClient architecture
salaboy21 Aug 28, 2012 7:38 AM (in response to drupalspring)That's fine you can embed the task services inside your app.
The only time when you should consider externalizing it is when you want to share the component between different applications and machines.
Cheers
-
2. Re: Using TaskService directly vs Task Server/TaskClient architecture
drupalspring Aug 29, 2012 12:12 AM (in response to salaboy21)Hi Mauricio Salatino ,
Thanks for the reply!
When using the the human task in the Task Server/ TaskClient architecture , we have to register the work item handler for human task before starting the process :
ksession.getWorkItemManager().registerWorkItemHandler("Human Task", hornetQHTWorkItemHandler);
As far as I understand , the executeWorkItem() in hornetQHTWorkItemHandler will connect to the taskServer and insert the related records to the Task database. So . What is the work item handler for the human task if I I use the TaskService directly in my application (i.e without any TaskServer involved)??
-
3. Re: Using TaskService directly vs Task Server/TaskClient architecture
salaboy21 Aug 29, 2012 3:47 AM (in response to drupalspring)Hi,
In master you already have a class called LocalHTWorkItemHandler -> https://github.com/droolsjbpm/jbpm/blob/master/jbpm-human-task/jbpm-human-task-core/src/main/java/org/jbpm/process/workitem/wsht/LocalHTWorkItemHandler.java
If you are using 5.3 you don't have this class, but you can copy the one that I've pointed out and use that. Notice that it extends GenericHTWorkItemHandler
Which is the one now used by all the transports.
As a general practice from now on you should use a workitem which inherits from AbstractWorkItemHandler.
Cheers
-
4. Re: Using TaskService directly vs Task Server/TaskClient architecture
drupalspring Aug 29, 2012 4:15 AM (in response to salaboy21)Mauricio Salatino wrote:
As a general practice from now on you should use a workitem which inherits from AbstractWorkItemHandler.
Cheers
Hi Mauricio ,
Do you mean that if we implement our own handler , we should inherits from AbstractWorkItemHandler ? Because I cannot find there are any concrete class that extends AbstractWorkItemHandler now .
-
5. Re: Using TaskService directly vs Task Server/TaskClient architecture
salaboy21 Aug 29, 2012 4:33 AM (in response to drupalspring)In the latest source code the clases are already provided, but if you are using 5.3 you should copy the class that I've pointed or implement your own extending GenericHTWorkItemHandler.
Cheers