@Test public void shouldNot_emmitEvent_when_executionIdIsNotEqualsToProcessInstanceIdAndTaskIdIsNotSet() { ActivitiVariableEventImpl event = new ActivitiVariableEventImpl( ActivitiEventType.VARIABLE_CREATED); event.setExecutionId("id"); event.setProcessInstanceId("anotherId"); boolean shouldEmmitEvent = variableEventFilter.shouldEmmitEvent( event); assertThat(shouldEmmitEvent).isFalse(); }
public boolean shouldEmmitEvent(ActivitiVariableEvent event) { return event.getTaskId() != null || event.getExecutionId().equals(event.getProcessInstanceId()); }
VariableEventFilter { public boolean shouldEmmitEvent(ActivitiVariableEvent event) { return event.getTaskId() != null || event.getExecutionId().equals(event.getProcessInstanceId()); } }
VariableEventFilter { public boolean shouldEmmitEvent(ActivitiVariableEvent event) { return event.getTaskId() != null || event.getExecutionId().equals(event.getProcessInstanceId()); }  }
VariableEventFilter { public boolean shouldEmmitEvent(ActivitiVariableEvent event) { return event.getTaskId() != null || event.getExecutionId().equals(event.getProcessInstanceId()); }  boolean shouldEmmitEvent(ActivitiVariableEvent event); }
VariableEventFilter { public boolean shouldEmmitEvent(ActivitiVariableEvent event) { return event.getTaskId() != null || event.getExecutionId().equals(event.getProcessInstanceId()); }  boolean shouldEmmitEvent(ActivitiVariableEvent event);  }