how process instance know, the next step to execute

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-01-2015 09:55 AM
I would like to know how bpm files processed.
When We Configure xml file like below then what happens .
<bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration">
<property name="deploymentResources" >
<list>
<value>classpath*:/com/workflow/bpmn/*.bpmn20.xml</value>
</list>
</property>
</bean>
Does bpm files parsed and stored in database and when next step to process in process instance , it will see the next step from database or from the war file ?
When 2 versions of bpm files are available then, how it sees the next step to process, because in war file there will be only one file for giving deployment key and I observed that if there are some process instances available for old version of bpm, and you complete the task , then it takes the next step of old version . If it is processed from the war file then how it knows the old version of bpm , because war is having only new bpm and if it is stored in the database , then which table holds the bpm file, I see only the name of the bpm file.
Thanks a lot
Meenakshi
- Labels:
-
Archive

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-03-2015 04:32 PM
http://activiti.org/userguide/index.html
ACT_RE_PROCDEF table contains the basic information of process definitions, the actual bpm file is stored in the ACT_GE_BYTEARRAY table. Process instances information are saved in ACT_HI_PROCINST table which contains a reference to the process definition (including the specific version) used.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-04-2015 08:12 PM
So whenever server is restarted the bytecode taken from the database, parsed and loaded in to the memory?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-04-2015 10:16 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-05-2015 05:27 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-05-2015 10:23 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-05-2015 11:17 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-07-2015 09:10 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-08-2015 05:46 AM
So whenever I invoke the sub workflow through callActivity , that time sub workflow will be parsed and loaded into the memory, Is this not the performance hit?
And in multi jvm environment, how it works , if one JVM is already loaded one bpm in memory and second time , if it goes to second JVM, then even if it is second time operation and not loaded in second jvm it will again parse and load in memory?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-13-2015 08:53 AM
In a multi JVM environment, all engines will have their own process definition cache, so yes, every engine loads the process definition.
Best regards,
