Java Code Examples for org.camunda.bpm.engine.impl.persistence.entity.EventSubscriptionEntity#getExecutionId()
The following examples show how to use
org.camunda.bpm.engine.impl.persistence.entity.EventSubscriptionEntity#getExecutionId() .
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: SignalEventHandler.java From camunda-bpm-platform with Apache License 2.0 | 5 votes |
@Override public void handleEvent(EventSubscriptionEntity eventSubscription, Object payload, Object payloadLocal, String businessKey, CommandContext commandContext) { if (eventSubscription.getExecutionId() != null) { handleIntermediateEvent(eventSubscription, payload, payloadLocal, commandContext); } else { handleStartEvent(eventSubscription, (Map<String, Object>) payload, businessKey, commandContext); } }
Example 2
Source File: SignalEventReceivedCmd.java From camunda-bpm-platform with Apache License 2.0 | 5 votes |
protected List<EventSubscriptionEntity> filterIntermediateSubscriptions(List<EventSubscriptionEntity> subscriptions) { List<EventSubscriptionEntity> result = new ArrayList<EventSubscriptionEntity>(); for (EventSubscriptionEntity subscription : subscriptions) { if (subscription.getExecutionId() != null) { result.add(subscription); } } return result; }
Example 3
Source File: SignalEventReceivedCmd.java From camunda-bpm-platform with Apache License 2.0 | 5 votes |
protected List<EventSubscriptionEntity> filterStartSubscriptions(List<EventSubscriptionEntity> subscriptions) { List<EventSubscriptionEntity> result = new ArrayList<EventSubscriptionEntity>(); for (EventSubscriptionEntity subscription : subscriptions) { if (subscription.getExecutionId() == null) { result.add(subscription); } } return result; }
Example 4
Source File: ThrowSignalEventActivityBehavior.java From camunda-bpm-platform with Apache License 2.0 | 4 votes |
protected boolean isStartEventSubscription(EventSubscriptionEntity signalEventSubscriptionEntity) { return signalEventSubscriptionEntity.getExecutionId() == null; }
Example 5
Source File: BpmnDeployer.java From camunda-bpm-platform with Apache License 2.0 | 4 votes |
protected boolean isSubscriptionForStartEvent(EventSubscriptionEntity subscriptionEntity) { return subscriptionEntity.getExecutionId() == null; }
Example 6
Source File: BpmnDeployer.java From camunda-bpm-platform with Apache License 2.0 | 4 votes |
protected boolean isSubscriptionForIntermediateEvent(EventSubscriptionEntity subscriptionEntity) { return subscriptionEntity.getExecutionId() != null; }