專案要用到jbpm。由於是不同資料庫schema,所以使用了jta。
當在把jbpm整合到spring的時候用到了spring-extensions(spring-modules)。
貼出來,各位看有什麼不好的地方。
步驟:1.jbpm -> spring
2.配置jta,並把jbpm和自己的bizniz納入到jta裡
[code]
false
org.hibernate.dialect.mysqlinnodbdialect
org.hibernate.cache.hashtablecacheprovider
false
org/jbpm/db/hibernate.queries.hbm.xml
org/jbpm/graph/def/processdefinition.hbm.xml
org/jbpm/graph/def/node.hbm.xml
org/jbpm/graph/def/transition.hbm.xml
org/jbpm/graph/def/event.hbm.xml
org/jbpm/graph/def/action.hbm.xml
org/jbpm/graph/def/superstate.hbm.xml
org/jbpm/graph/def/exceptionhandler.hbm.xml
org/jbpm/instantiation/delegation.hbm.xml
org/jbpm/graph/node/startstate.hbm.xml
org/jbpm/graph/node/endstate.hbm.xml
org/jbpm/graph/node/processstate.hbm.xml
org/jbpm/graph/node/decision.hbm.xml
org/jbpm/graph/node/fork.hbm.xml
org/jbpm/graph/node/join.hbm.xml
org/jbpm/graph/node/state.hbm.xml
org/jbpm/graph/node/tasknode.hbm.xml
org/jbpm/context/def/contextdefinition.hbm.xml
org/jbpm/context/def/variableaccess.hbm.xml
org/jbpm/taskmgmt/def/taskmgmtdefinition.hbm.xml
org/jbpm/taskmgmt/def/swimlane.hbm.xml
org/jbpm/taskmgmt/def/task.hbm.xml
org/jbpm/taskmgmt/def/taskcontroller.hbm.xml
org/jbpm/module/def/moduledefinition.hbm.xml
org/jbpm/bytes/bytearray.hbm.xml
org/jbpm/file/def/filedefinition.hbm.xml
org/jbpm/scheduler/def/createtimeraction.hbm.xml
org/jbpm/scheduler/def/canceltimeraction.hbm.xml
org/jbpm/graph/exe/comment.hbm.xml
org/jbpm/graph/exe/processinstance.hbm.xml
org/jbpm/graph/exe/token.hbm.xml
org/jbpm/graph/exe/runtimeaction.hbm.xml
org/jbpm/module/exe/moduleinstance.hbm.xml
org/jbpm/context/exe/contextinstance.hbm.xml
org/jbpm/context/exe/tokenvariablemap.hbm.xml
org/jbpm/context/exe/variableinstance.hbm.xml
org/jbpm/context/exe/variableinstance/bytearrayinstance.hbm.xml
org/jbpm/context/exe/variableinstance/dateinstance.hbm.xml
org/jbpm/context/exe/variableinstance/doubleinstance.hbm.xml
org/jbpm/context/exe/variableinstance/hibernatelonginstance.hbm.xml
org/jbpm/context/exe/variableinstance/hibernatestringinstance.hbm.xml
org/jbpm/context/exe/variableinstance/longinstance.hbm.xml
org/jbpm/context/exe/variableinstance/nullinstance.hbm.xml
org/jbpm/context/exe/variableinstance/stringinstance.hbm.xml
org/jbpm/msg/message.hbm.xml
org/jbpm/msg/db/textmessage.hbm.xml
org/jbpm/command/executeactioncommand.hbm.xml
org/jbpm/command/executenodecommand.hbm.xml
org/jbpm/command/signalcommand.hbm.xml
org/jbpm/command/taskinstanceendcommand.hbm.xml
org/jbpm/taskmgmt/exe/taskmgmtinstance.hbm.xml
org/jbpm/taskmgmt/exe/taskinstance.hbm.xml
org/jbpm/taskmgmt/exe/pooledactor.hbm.xml
org/jbpm/taskmgmt/exe/swimlaneinstance.hbm.xml
org/jbpm/scheduler/exe/timer.hbm.xml
org/jbpm/logging/log/processlog.hbm.xml
org/jbpm/logging/log/messagelog.hbm.xml
org/jbpm/logging/log/compositelog.hbm.xml
org/jbpm/graph/log/actionlog.hbm.xml
org/jbpm/graph/log/nodelog.hbm.xml
org/jbpm/graph/log/processinstancecreatelog.hbm.xml
org/jbpm/graph/log/processinstanceendlog.hbm.xml
org/jbpm/graph/log/processstatelog.hbm.xml
org/jbpm/graph/log/signallog.hbm.xml
org/jbpm/graph/log/tokencreatelog.hbm.xml
org/jbpm/graph/log/tokenendlog.hbm.xml
org/jbpm/graph/log/transitionlog.hbm.xml
org/jbpm/context/log/variablelog.hbm.xml
org/jbpm/context/log/variablecreatelog.hbm.xml
org/jbpm/context/log/variabledeletelog.hbm.xml
org/jbpm/context/log/variableupdatelog.hbm.xml
org/jbpm/context/log/variableinstance/bytearrayupdatelog.hbm.xml
org/jbpm/context/log/variableinstance/dateupdatelog.hbm.xml
org/jbpm/context/log/variableinstance/doubleupdatelog.hbm.xml
org/jbpm/context/log/variableinstance/hibernatelongupdatelog.hbm.xml
org/jbpm/context/log/variableinstance/hibernatestringupdatelog.hbm.xml
org/jbpm/context/log/variableinstance/longupdatelog.hbm.xml
org/jbpm/context/log/variableinstance/stringupdatelog.hbm.xml
org/jbpm/taskmgmt/log/tasklog.hbm.xml
org/jbpm/taskmgmt/log/taskcreatelog.hbm.xml
org/jbpm/taskmgmt/log/taskassignlog.hbm.xml
org/jbpm/taskmgmt/log/taskendlog.hbm.xml
org/jbpm/taskmgmt/log/swimlanelog.hbm.xml
org/jbpm/taskmgmt/log/swimlanecreatelog.hbm.xml
org/jbpm/taskmgmt/log/swimlaneassignlog.hbm.xml
[/code]
(省略了其他的jbpmconfiguration和flow的配置)
[code]
[/code]
jbpm4事務和spring事務的整合
我們知道,支援嵌入到各種架構環境中使用一直是 jbpm工作流引擎的核心競爭力之一,自jbpm3版本開始,jbpm工作流引擎就在很多應用中被整合到spring等架構中使用,從jbpm4.4開始,jbpm工作流引擎可以支援開發者很自然的將其整合到spring架構中使用 spring架構整合jbpm4,只...
spring和jbpm事務一致性
關於jbpm和spring結合的事務問題 當jbpm使用spring事務時,必須設定關閉jbpm的預設事務,同時設定jbpm從spring事務中獲取session,這樣jbpm才會使用spring的事務。這樣做有個缺點就是所有需要使用jbpmcontext的方法都需要處於spring的事務管理中,否...
spring與jbpm的整合
spring與jbpm的整合 由spring容器產生processengine jbpm的事務交給spring處理 整合步驟 匯入jbpm的jar包 刪除db和hibernate的jar包 在config下建立乙個配置檔案 config jbpm jbpm.cfg.xml jbpm.hibernat...