Java Code Examples for org.camunda.bpm.engine.impl.persistence.entity.EventSubscriptionEntity#setEventName()
The following examples show how to use
org.camunda.bpm.engine.impl.persistence.entity.EventSubscriptionEntity#setEventName() .
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: EventSubscriptionDeclaration.java From camunda-bpm-platform with Apache License 2.0 | 6 votes |
/** * Creates and inserts a subscription entity depending on the message type of this declaration. */ public EventSubscriptionEntity createSubscriptionForExecution(ExecutionEntity execution) { EventSubscriptionEntity eventSubscriptionEntity = new EventSubscriptionEntity(execution, eventType); String eventName = resolveExpressionOfEventName(execution); eventSubscriptionEntity.setEventName(eventName); if (activityId != null) { ActivityImpl activity = execution.getProcessDefinition().findActivity(activityId); eventSubscriptionEntity.setActivity(activity); } eventSubscriptionEntity.insert(); LegacyBehavior.removeLegacySubscriptionOnParent(execution, eventSubscriptionEntity); return eventSubscriptionEntity; }
Example 2
Source File: PublishSubscribeAdapter.java From flowing-retail with Apache License 2.0 | 5 votes |
protected void addMessageSubscription(final ActivityExecution context, String eventName) { ExecutionEntity executionEntity = (ExecutionEntity)context; EventSubscriptionEntity eventSubscriptionEntity = new EventSubscriptionEntity(executionEntity, EventType.MESSAGE); eventSubscriptionEntity.setEventName(eventName); eventSubscriptionEntity.setActivity(executionEntity.getActivity()); eventSubscriptionEntity.insert(); }
Example 3
Source File: CommandPubEventSubAdapter.java From flowing-retail-old with Apache License 2.0 | 5 votes |
protected void addMessageSubscription(final ActivityExecution execution, String eventName) { ExecutionEntity executionEntity = (ExecutionEntity)execution; EventSubscriptionEntity eventSubscriptionEntity = new EventSubscriptionEntity(executionEntity, EventType.MESSAGE); eventSubscriptionEntity.setEventName(eventName); eventSubscriptionEntity.setActivity(executionEntity.getActivity()); eventSubscriptionEntity.insert(); }
Example 4
Source File: EventSubscriptionDeclaration.java From camunda-bpm-platform with Apache License 2.0 | 5 votes |
public EventSubscriptionEntity createSubscriptionForStartEvent(ProcessDefinitionEntity processDefinition) { EventSubscriptionEntity eventSubscriptionEntity = new EventSubscriptionEntity(eventType); VariableScope scopeForExpression = StartProcessVariableScope.getSharedInstance(); String eventName = resolveExpressionOfEventName(scopeForExpression); eventSubscriptionEntity.setEventName(eventName); eventSubscriptionEntity.setActivityId(activityId); eventSubscriptionEntity.setConfiguration(processDefinition.getId()); eventSubscriptionEntity.setTenantId(processDefinition.getTenantId()); return eventSubscriptionEntity; }
Example 5
Source File: EventSubscriptionDeclaration.java From camunda-bpm-platform with Apache License 2.0 | 4 votes |
public void updateSubscription(EventSubscriptionEntity eventSubscription) { String eventName = resolveExpressionOfEventName(eventSubscription.getExecution()); eventSubscription.setEventName(eventName); eventSubscription.setActivityId(activityId); }