Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
SubAgendaRule |
|
| 1.0;1 |
1 | package org.kuali.rice.krms.framework.engine; | |
2 | ||
3 | import org.kuali.rice.krms.api.Agenda; | |
4 | import org.kuali.rice.krms.api.ExecutionEnvironment; | |
5 | import org.kuali.rice.krms.api.Rule; | |
6 | ||
7 | public class SubAgendaRule implements Rule { | |
8 | ||
9 | private Agenda agenda; | |
10 | ||
11 | 0 | public SubAgendaRule(Agenda agenda) { |
12 | 0 | this.agenda = agenda; |
13 | 0 | } |
14 | ||
15 | @Override | |
16 | public boolean evaluate(ExecutionEnvironment environment) { | |
17 | 0 | agenda.execute(environment); |
18 | 0 | return true; |
19 | } | |
20 | ||
21 | } |