Java Code Examples for org.camunda.bpm.engine.impl.pvm.process.ActivityImpl#addBuiltInListener()
The following examples show how to use
org.camunda.bpm.engine.impl.pvm.process.ActivityImpl#addBuiltInListener() .
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: HistoryParseListener.java From camunda-bpm-platform with Apache License 2.0 | 5 votes |
protected void addActivityHandlers(ActivityImpl activity) { ensureHistoryLevelInitialized(); if (historyLevel.isHistoryEventProduced(HistoryEventTypes.ACTIVITY_INSTANCE_START, null)) { activity.addBuiltInListener(PvmEvent.EVENTNAME_START, ACTIVITY_INSTANCE_START_LISTENER, 0); } if (historyLevel.isHistoryEventProduced(HistoryEventTypes.ACTIVITY_INSTANCE_END, null)) { activity.addBuiltInListener(PvmEvent.EVENTNAME_END, ACTIVITY_INSTANCE_END_LISTENER); } }
Example 2
Source File: AddSendEventListenerToBpmnParseListener.java From camunda-spring-boot-amqp-microservice-cloud-example with Apache License 2.0 | 4 votes |
@Override public void parseIntermediateThrowEvent(Element intermediateEventElement, ScopeImpl scope, ActivityImpl activity) { activity.addBuiltInListener(PvmEvent.EVENTNAME_START, new SendEventListener()); }
Example 3
Source File: MetricsBpmnParseListener.java From camunda-bpm-platform with Apache License 2.0 | 4 votes |
protected void addListeners(ActivityImpl activity) { activity.addBuiltInListener(ExecutionListener.EVENTNAME_START, ACTIVITY_INSTANCE_START_COUNTER); activity.addBuiltInListener(ExecutionListener.EVENTNAME_END, ACTIVITY_INSTANCE_END_COUNTER); }