Java Code Examples for org.activiti.engine.impl.persistence.entity.EventSubscriptionEntity#getEventName()
The following examples show how to use
org.activiti.engine.impl.persistence.entity.EventSubscriptionEntity#getEventName() .
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: EventSubscriptionsByNameMatcher.java From activiti6-boot2 with Apache License 2.0 | 6 votes |
@Override @SuppressWarnings("unchecked") public boolean isRetained(EventSubscriptionEntity eventSubscriptionEntity, Object parameter) { Map<String, String> params = (Map<String, String>) parameter; String type = params.get("eventType"); String eventName = params.get("eventName"); String tenantId = params.get("tenantId"); if (eventSubscriptionEntity.getEventType() != null && eventSubscriptionEntity.getEventType().equals(type) && eventSubscriptionEntity.getEventName() != null && eventSubscriptionEntity.getEventName().equals(eventName)) { if (tenantId != null && !tenantId.equals(ProcessEngineConfiguration.NO_TENANT_ID)) { return eventSubscriptionEntity.getTenantId() != null && eventSubscriptionEntity.getTenantId().equals(tenantId); } else { return ProcessEngineConfiguration.NO_TENANT_ID.equals(eventSubscriptionEntity.getTenantId()) || eventSubscriptionEntity.getTenantId() == null; } } return false; }
Example 2
Source File: SignalEventSubscriptionByProcInstAndEventNameMatcher.java From activiti6-boot2 with Apache License 2.0 | 5 votes |
@Override public boolean isRetained(EventSubscriptionEntity eventSubscriptionEntity, Object parameter) { Map<String, String> params = (Map<String, String>) parameter; String processInstanceId = params.get("processInstanceId"); String eventName = params.get("eventName"); return eventSubscriptionEntity.getEventType() != null && eventSubscriptionEntity.getEventType().equals(SignalEventSubscriptionEntity.EVENT_TYPE) && eventSubscriptionEntity.getEventName() != null && eventSubscriptionEntity.getEventName().equals(eventName) && eventSubscriptionEntity.getProcessInstanceId() != null && eventSubscriptionEntity.getProcessInstanceId().equals(processInstanceId); }
Example 3
Source File: SignalEventSubscriptionByNameAndExecutionMatcher.java From activiti6-boot2 with Apache License 2.0 | 5 votes |
@Override public boolean isRetained(EventSubscriptionEntity eventSubscriptionEntity, Object parameter) { Map<String, String> params = (Map<String, String>) parameter; String executionId = params.get("executionId"); String name = params.get("eventName"); return eventSubscriptionEntity.getEventType() != null && eventSubscriptionEntity.getEventType().equals(SignalEventSubscriptionEntity.EVENT_TYPE) && eventSubscriptionEntity.getExecutionId() != null && eventSubscriptionEntity.getExecutionId().equals(executionId) && eventSubscriptionEntity.getEventName() != null && eventSubscriptionEntity.getEventName().equals(name); }
Example 4
Source File: MessageEventSubscriptionsByProcInstAndEventNameMatcher.java From activiti6-boot2 with Apache License 2.0 | 5 votes |
@Override public boolean isRetained(EventSubscriptionEntity eventSubscriptionEntity, Object param) { Map<String, String> paramMap = (Map<String, String>) param; String processInstanceId = paramMap.get("processInstanceId"); String eventName = paramMap.get("eventName"); return eventSubscriptionEntity.getEventType() != null && eventSubscriptionEntity.getEventType().equals(MessageEventSubscriptionEntity.EVENT_TYPE) && eventSubscriptionEntity.getEventName() != null && eventSubscriptionEntity.getEventName().equals(eventName) && eventSubscriptionEntity.getProcessInstanceId() != null && eventSubscriptionEntity.getProcessInstanceId().equals(processInstanceId); }
Example 5
Source File: SignalEventSubscriptionByEventNameMatcher.java From activiti6-boot2 with Apache License 2.0 | 5 votes |
@Override public boolean isRetained(EventSubscriptionEntity eventSubscriptionEntity, Object parameter) { Map<String, String> params = (Map<String, String>) parameter; String eventName = params.get("eventName"); String tenantId = params.get("tenantId"); return eventSubscriptionEntity.getEventType() != null && eventSubscriptionEntity.getEventType().equals(SignalEventSubscriptionEntity.EVENT_TYPE) && eventSubscriptionEntity.getEventName() != null && eventSubscriptionEntity.getEventName().equals(eventName) && (eventSubscriptionEntity.getExecutionId() == null || (eventSubscriptionEntity.getExecutionId() != null && eventSubscriptionEntity.getExecution() != null && eventSubscriptionEntity.getExecution().getSuspensionState() == SuspensionState.ACTIVE.getStateCode()) ) && ( (params.containsKey("tenantId") && tenantId.equals(eventSubscriptionEntity.getTenantId())) || (!params.containsKey("tenantId") && StringUtils.isEmpty(eventSubscriptionEntity.getTenantId())) ); }