Process Engine API和服务
引擎API是与Flowable交互的最常见方式。主要起点是ProcessEngine,可以按照配置部分中所述的几种方法创建它。从ProcessEngine,您可以获得包含工作流/ BPM方法的各种服务。ProcessEngine和服务对象是线程安全的,因此您可以为整个服务器保留对其中之一的引用。
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();
DynamicBpmnService dynamicBpmnService = processEngine.getDynamicBpmnService();
ProcessEngine processEngine = ProcessEngines.getDefaultProcessEngine()
作者:Jeebiz 创建时间:2020-03-20 13:10
更新时间:2024-08-05 18:41
更新时间:2024-08-05 18:41