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:
After leaving from a workitem the data persisted in the WorkitemInfo table will be deleted
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....
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.
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.
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.
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.