/** * Determines if the listener held by this holder applies to the specified flow definition. Will do a logical OR * between the registered criteria. * @param flowDefinition the flow * @return true if yes, false otherwise */ public boolean listenerAppliesTo(FlowDefinition flowDefinition) { for (FlowExecutionListenerCriteria criteria : criteriaSet) { if (criteria.appliesTo(flowDefinition)) { return true; } } return false; } }
/** * Determines if the listener held by this holder applies to the specified flow definition. Will do a logical OR * between the registered criteria. * @param flowDefinition the flow * @return true if yes, false otherwise */ public boolean listenerAppliesTo(FlowDefinition flowDefinition) { for (FlowExecutionListenerCriteria criteria : criteriaSet) { if (criteria.appliesTo(flowDefinition)) { return true; } } return false; } }
/** * Determines if the listener held by this holder applies to the specified flow definition. Will do a logical OR * between the registered criteria. * @param flowDefinition the flow * @return true if yes, false otherwise */ public boolean listenerAppliesTo(FlowDefinition flowDefinition) { Iterator it = criteriaSet.iterator(); while (it.hasNext()) { FlowExecutionListenerCriteria criteria = (FlowExecutionListenerCriteria) it.next(); if (criteria.appliesTo(flowDefinition)) { return true; } } return false; } }
/** * Determines if the listener held by this holder applies to the specified flow definition. Will do a logical OR * between the registered criteria. * @param flowDefinition the flow * @return true if yes, false otherwise */ public boolean listenerAppliesTo(FlowDefinition flowDefinition) { Iterator it = criteriaSet.iterator(); while (it.hasNext()) { FlowExecutionListenerCriteria criteria = (FlowExecutionListenerCriteria) it.next(); if (criteria.appliesTo(flowDefinition)) { return true; } } return false; } }
public void testAllFlows() { FlowExecutionListenerCriteria c = factory.allFlows(); assertEquals(true, c.appliesTo(new Flow("foo"))); }