AnsweredAssumed Answered

Record in ACT_HI_ACTINST was rollback

Question asked by shanegirl on Jan 9, 2014
Latest reply on Jan 9, 2014 by frederikheremans1
Dear Activiti Developer,

In the workflow definition, we configure the ServiceTask with asynchronous to true.
There is a few ExecutionListener configured in the ServiceTask, and one of the execution listener executed with exception. After the default retries 3 times, I check DB, there is no record created in ACT_HI_ACTINST. However, record was created in ACT_RU_EXECUTION only.

Based on my understanding, when the flow is stop at a step which required human intervention (e.g: UserTask),  record will be created in both ACT_RU_EXECUTION and ACT_HI_ACTINST table, which the last record in ACT_HI_ACTINST is sync with record in ACT_RU_EXECUTION table. Based on the situation above, record has been rollback and the servicetask record was not created in ACT_HI_ACTINST table. Is this consider as a bug? If not, is there any configuration we can do or customize so that record in ACT_HI_ACTINST will not be rollback? We need the record as we need to keep track the first start time which the service task was executed.

Please advise.

Thanks in advance.