-
1. Re: Work Item not persisted
mdegan Oct 9, 2013 3:15 AM (in response to coconut788)Hi,
Please share the persistence.xml as that might help in understanding the components that are persisted. Ideally if you have the following entry in persistence.xml, workitem info should be persisted:
<class>org.drools.persistence.info.WorkItemInfo</class> Regards,
Manny
-
2. Re: Work Item not persisted
josdel Oct 9, 2013 5:10 AM (in response to mdegan)After leaving from a workitem the data persisted in the WorkitemInfo table will be deleted
-
3. Re: Work Item not persisted
coconut788 Oct 9, 2013 9:05 AM (in response to josdel)Thank you !
I understand that after leaving the workitem, that data will be deleted. The thing is in console I never see Insertion into workItemInfo or delete either....
-
4. Re: Work Item not persisted
josdel Oct 11, 2013 2:16 AM (in response to coconut788)You can able to get the data in your Workitemhandler, from there you can log or save the data. If you using the Human Task, you can see the data in WorkitemInfo Table. Because the workitem is waiting for the human response.
-
5. Re: Work Item not persisted
coconut788 Oct 11, 2013 11:31 AM (in response to josdel)yes. I am using a human task but I don't have a task service or server. I just created a HumanTaskHandler implementing WorkItemHandler, and complete that workItem when someone hit the button on UI. It should be very simple. But my problem is I cannot see anything in the WorkItemInfo table so when I try to call completeWorkItem, it just cannot find the right workItem to complete.
-
6. Re: Work Item not persisted
josdel Oct 15, 2013 1:36 AM (in response to coconut788)No need of code for completing Human Task workitem. In HumanTaskHandler, there is already existing the code for completing workitem. Also whenever the human task completed, then the workitem will be completed. If u want to customize the code for Human task you just use custom Human Task Handler.
-
7. Re: Work Item not persisted
coconut788 Oct 16, 2013 3:56 PM (in response to josdel)My human task handler implements WorkItemHandler. I complete a workitem outside the handler by using kesession.getWorkItemManager().completeworkItem(id,result).
Actually, my problem is not in complete the workItem. The problem lies in when start the process and a human task, no entry is inserted into WorkItemInfo. It look s like it is a transaction problem.