cancel
Showing results for 
Search instead for 
Did you mean: 

How about the process execution mechanism

lifejoice
Champ in-the-making
Champ in-the-making
I am studying activiti 5.6, and have some doubt about it. Can anyone tell me?

1. I define a process in Eclipse, and generate a bpmn xml file. I deploy to DB, it will insert a record in ACT_RE_DEPLOYMENT table.
But I want to know if each time the process flow to next task, the ACTIVITI ENGINE will extract the bpmn xml file again to obtain
the next task? Because I can't find any table record all task of the process.
2. I find jbpm has a event table, but activiti not. How does the ACTIVITI ENGINE deal with event? Also need to extract the bpmn xml
file?
4 REPLIES 4

ronald_van_kuij
Champ on-the-rise
Champ on-the-rise
1: no, it is parsed deploytime
2: the _RU (runtime) and _HI (history) tables contain similar information.

lifejoice
Champ in-the-making
Champ in-the-making
thanks ronald.van.kuijk. Ask some more questions.

1. I see the source code, and it looks like that the ENGINE will save the bpmn20.xml file in ACT_GE_BYTEARRAY as byte, is it?
2. The ENGINE also will save the process definition picture in ACT_GE_BYTEARRAY as byte, is it?
3. Is it use the DeploymentCache to cache the deployment?

franklin
Champ in-the-making
Champ in-the-making
Hi lifejoice, you're right!

1. I see the source code, and it looks like that the ENGINE will save the bpmn20.xml file in ACT_GE_BYTEARRAY as byte, is it?
2. The ENGINE also will save the process definition picture in ACT_GE_BYTEARRAY as byte, is it?

There are always two rows on this table per deployment.

3. Is it use the DeploymentCache to cache the deployment?

Yes, you're right again. There is a cache inside this class.

Precissely by this attribute:
protected Map<String, ProcessDefinitionEntity> processDefinitionCache = new HashMap<String, ProcessDefinitionEntity>();

lifejoice
Champ in-the-making
Champ in-the-making
hello, FrankLin:

Thanks for your reply. It's useful.