@Test public void should_EmmitEvent_when_executionIdIsNotEqualsToProcessInstanceIdAndTaskIdIsSet() { ActivitiVariableEventImpl event = new ActivitiVariableEventImpl( ActivitiEventType.VARIABLE_CREATED); event.setExecutionId("id"); event.setProcessInstanceId("anotherId"); event.setTaskId("taskId"); boolean shouldEmmitEvent = variableEventFilter.shouldEmmitEvent(event); assertThat(shouldEmmitEvent).isTrue(); }
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);  }