cancel
Showing results for 
Search instead for 
Did you mean: 

moment when runtime process instance is visible in history

nicolasfranck
Champ in-the-making
Champ in-the-making
When exactly is an runtime process also visible in the list of historic process instances?

Here is what I'm trying to implement:
- from a runtime process instance send a message to ActiveMQ, to let a script know that a new process is started
- this script fetches the process instance
- These runtime processes are volatile, so I cannot trust this list. I need to use the historic list.

Problem: On the moment the process instance sends it message, and the script catches the message, it cannot
find the process instance yet in the historic process instances list. When does this actually happen? Is there
some "stage" in the life of a process instance where you can be sure of this?

thanks in advance

1 REPLY 1

martin_grofcik
Confirmed Champ
Confirmed Champ
Hello Nicolas,

Process instance is in the history tables after transaction commit. (http://www.activiti.org/userguide/#bpmnConcurrencyAndTransactions).
I would say that you should make message sending asynchronous to finish the first transaction and start the new one.

Regards
Martin