activiti 官方文档摘要

The Process Engine API and services

The engine API is the most common way of interacting with Activiti. The central starting point is the ProcessEngine, which can be created in several ways as described in the configuration section. From the ProcessEngine, you can obtain the various services that contain the workflow/BPM methods. ProcessEngine and the services objects are thread safe. So you can keep a reference to 1 of those for a whole server.



 

ProcessEngine processEngine =ProcessEngines.getDefaultProcessEngine(); 
 
RuntimeService runtimeService = processEngine.getRuntimeService(); 
RepositoryService repositoryService = processEngine.getRepositoryService(); 
TaskService taskService = processEngine.getTaskService(); 
ManagementService managementService = processEngine.getManagementService(); 
IdentityService identityService = processEngine.getIdentityService(); 
HistoryService historyService = processEngine.getHistoryService(); 
FormService formService = processEngine.getFormService();

猜你喜欢

转载自lizhensan.iteye.com/blog/1887517