06-17-2019 02:00 PM
Hi all
I have a problem with getting history of process execution.
My process: startEvent -> task1 -> task2 ->endEvent, where task1 and task2 are service tasks
There is a table ACT_HI_ACTINST, but into it rows are added only when process finished successfully.
When i got an error in task2, do i have a chance to get from some history table info, that process was started, finished task1 and got error on task2?
Thanks in advance
07-04-2019 03:04 AM
You should add an error handling in your process definition related to the event error that you want to catch.
So I suggest to add a new flow in your process similar to the following one:
https://www.activiti.org/userguide/#bpmnErrorEventDefinition
Then you can use the HistoryService to retrieve all your needed informations during the execution of your workflow instance.
07-04-2019 03:04 AM
You should add an error handling in your process definition related to the event error that you want to catch.
So I suggest to add a new flow in your process similar to the following one:
https://www.activiti.org/userguide/#bpmnErrorEventDefinition
Then you can use the HistoryService to retrieve all your needed informations during the execution of your workflow instance.
07-11-2019 05:12 AM
Hi, Piergiorgio Lucidi thanks for replay
I didn't want to over complicate my process definition, but didn't find any other option
Explore our Alfresco products with the links below. Use labels to filter content by product module.