Search in sources :

Example 1 with RuleEffects

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;
}
Also used : RuleEffects(org.hisp.dhis.rules.models.RuleEffects)

Example 2 with RuleEffects

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;
}
Also used : RuleEffects(org.hisp.dhis.rules.models.RuleEffects)

Example 3 with RuleEffects

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;
}
Also used : RuleEffects(org.hisp.dhis.rules.models.RuleEffects)

Example 4 with RuleEffects

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;
}
Also used : RuleEffects(org.hisp.dhis.rules.models.RuleEffects)

Aggregations

RuleEffects (org.hisp.dhis.rules.models.RuleEffects)4