less than 1 minute read

1. org.jbpm 包下的 JbpmContext 类

close()  
    --> autoSave()  
        --> save(ProcessInstance)  
            --> services.save(ProcessInstance, JbpmContext)

  services 是 JbpmContext 类的 Services 类变量

2. org.jbpm.svc 包下的 Services 类

save(ProcessInstance, JbpmContext)  
	--> for (saveOperation: SaveOperations)   
		saveOperation.save(ProcessInstance, JbpmContext)  

  saveOperation 是 SaveOpration 类型,且如果不带参构造的话,SaveOperations 列表会等于 defaultSaveOperations 列表,而 defaultSaveOperations 列表中有一项是 HibernateSaveOperation

3. org.jbpm.svc.save 包下的 HibernateSaveOperation 类

save(ProcessInstance, JbpmContext)  
	-->session.save(ProcessInstance)

  已经能够说明问题了吧……

Categories:

Updated:

Comments