use of org.hisp.dhis.rules.models.RuleEffects in project dhis2-core by dhis2.
the class ShowErrorWarningImplementerTest method getRuleEventAndEnrollmentEffects.
private List<RuleEffects> getRuleEventAndEnrollmentEffects() {
List<RuleEffects> ruleEffectsByEvent = Lists.newArrayList();
ruleEffectsByEvent.add(new RuleEffects(EVENT, ACTIVE_EVENT_ID, getRuleEffects()));
ruleEffectsByEvent.add(new RuleEffects(EVENT, COMPLETED_EVENT_ID, getRuleEffects()));
ruleEffectsByEvent.add(new RuleEffects(ENROLLMENT, ACTIVE_ENROLLMENT_ID, getRuleEffects()));
ruleEffectsByEvent.add(new RuleEffects(ENROLLMENT, COMPLETED_ENROLLMENT_ID, getRuleEffects()));
return ruleEffectsByEvent;
}
use of org.hisp.dhis.rules.models.RuleEffects in project dhis2-core by dhis2.
the class ShowErrorWarningImplementerTest method getRuleEventEffectsLinkedToDataElement.
private List<RuleEffects> getRuleEventEffectsLinkedToDataElement() {
List<RuleEffects> ruleEffectsByEvent = Lists.newArrayList();
ruleEffectsByEvent.add(new RuleEffects(EVENT, ACTIVE_EVENT_ID, getRuleEffectsLinkedToDataElement()));
ruleEffectsByEvent.add(new RuleEffects(EVENT, COMPLETED_EVENT_ID, getRuleEffectsLinkedToDataElement()));
return ruleEffectsByEvent;
}
use of org.hisp.dhis.rules.models.RuleEffects in project dhis2-core by dhis2.
the class ShowErrorWarningImplementerTest method getRuleEventEffectsLinkedTo2DataElementsIn2DifferentProgramStages.
private List<RuleEffects> getRuleEventEffectsLinkedTo2DataElementsIn2DifferentProgramStages() {
List<RuleEffects> ruleEffectsByEvent = Lists.newArrayList();
ruleEffectsByEvent.add(new RuleEffects(EVENT, ACTIVE_EVENT_ID, getRuleEffectsLinkedToDataElement()));
ruleEffectsByEvent.add(new RuleEffects(EVENT, COMPLETED_EVENT_ID, getRuleEffectsLinkedToDataAnotherElement()));
return ruleEffectsByEvent;
}
use of org.hisp.dhis.rules.models.RuleEffects in project dhis2-core by dhis2.
the class SetMandatoryFieldValidatorTest method getRuleEventAndEnrollmentEffects.
private List<RuleEffects> getRuleEventAndEnrollmentEffects() {
List<RuleEffects> ruleEffectsByEvent = Lists.newArrayList();
ruleEffectsByEvent.add(new RuleEffects(EVENT, FIRST_EVENT_ID, getRuleEffects()));
ruleEffectsByEvent.add(new RuleEffects(EVENT, SECOND_EVENT_ID, getRuleEffects()));
ruleEffectsByEvent.add(new RuleEffects(ENROLLMENT, ACTIVE_ENROLLMENT_ID, getRuleEffects()));
ruleEffectsByEvent.add(new RuleEffects(ENROLLMENT, COMPLETED_ENROLLMENT_ID, getRuleEffects()));
return ruleEffectsByEvent;
}
Aggregations