java - JBPM6: How to resume a process from the last successful node after the server crash? -


i'm trying implement failover strategy when executing jbpm6 processes. setup following:

  • i'm using jbpm6.2.0-final (latest stable release) persistence enabled
  • i'm constructing instance of org.kie.spring.factorybeans.runtimemanagerfactorybean type singleton ksession start/abort processes , complete/abort work items
  • all beans wired spring 3.2
  • db2 used database engine
  • i use tomcat 7.0.27

in positive scenario working expect. know how resume process in case of server crash. reproduce started process (described bpmn2 file), got @ middle step , killed tomcat process. after see uncompleted process instance in process_instance_info table , uncompleted work item in work_item_info table. there session in session_info table.

my question is: show me example of code take remaining process , resume starting last node (if possible).

update forgot mention i'm not using jbpm-console, i'm embedding jbpm javaee application.

if initialize runtimemanager on init of application server should take care of reloading , resuming processes. need not worry reloading again yourself.


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -