MCPcopy Create free account
hub / github.com/L1yp/van-app / FlowableConfig

Class FlowableConfig

src/main/java/com/l1yp/conf/FlowableConfig.java:32–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30 ProcessCompletedEventListener processCompletedEventListener;
31
32 @Resource
33 TaskCreatedEventListener taskCreatedEventListener;
34
35 @Override
36 public void configure(SpringProcessEngineConfiguration engineConfiguration) {
37
38 BpmnXMLConverter.addConverter(new SequenceFlowXMLConverter());
39 engineConfiguration.setCreateDiagramOnDeploy(false);
40 engineConfiguration.setEnableSafeBpmnXml(false);
41 List<Interceptor> interceptors = new ArrayList<>();
42 interceptors.add(statementInteceptor);
43 engineConfiguration.setCustomMybatisInterceptors(interceptors);
44 engineConfiguration.setEnableEventDispatcher(true); // default to true
45 engineConfiguration.initEventDispatcher();
46 FlowableEventDispatcher eventDispatcher = engineConfiguration.getEventDispatcher();
47 eventDispatcher.addEventListener(processCompletedEventListener);
48 eventDispatcher.addEventListener(taskCreatedEventListener);
49 }
50
51
52}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected