Java Code Examples for org.camunda.bpm.engine.impl.persistence.entity.ProcessDefinitionEntity#addListener()
The following examples show how to use
org.camunda.bpm.engine.impl.persistence.entity.ProcessDefinitionEntity#addListener() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: LocalBpmnParseListener.java From wecube-platform with Apache License 2.0 | 5 votes |
@Override public void parseProcess(Element processElement, ProcessDefinitionEntity processDefinition) { log.info("add listener {} {}", ExecutionListener.EVENTNAME_START, processInstanceStartListener.getClass().getSimpleName()); log.info("add listener {} {}", ExecutionListener.EVENTNAME_END, processInstanceEndListener.getClass().getSimpleName()); processDefinition.addListener(ExecutionListener.EVENTNAME_START, processInstanceStartListener); processDefinition.addListener(ExecutionListener.EVENTNAME_END, processInstanceEndListener); }
Example 2
Source File: PublishDelegateParseListener.java From camunda-bpm-spring-boot-starter with Apache License 2.0 | 5 votes |
@Override public void parseProcess(Element processElement, ProcessDefinitionEntity processDefinition) { if (executionListener != null) { for (String event : EXECUTION_EVENTS) { processDefinition.addListener(event, executionListener); } } }
Example 3
Source File: PublishDelegateParseListener.java From camunda-bpm-platform with Apache License 2.0 | 5 votes |
@Override public void parseProcess(Element processElement, ProcessDefinitionEntity processDefinition) { if (executionListener != null) { for (String event : EXECUTION_EVENTS) { processDefinition.addListener(event, executionListener); } } }