1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.kew.lifecycle;
17
18 import org.kuali.rice.core.api.config.property.ConfigContext;
19 import org.kuali.rice.core.api.lifecycle.Lifecycle;
20 import org.kuali.rice.core.api.lifecycle.BaseCompositeLifecycle;
21 import org.kuali.rice.core.api.lifecycle.Lifecycle;
22 import org.kuali.rice.kew.mail.EmailReminderLifecycle;
23
24 import java.util.LinkedList;
25 import java.util.List;
26
27
28
29
30
31
32 public class StandaloneLifeCycle extends BaseCompositeLifecycle {
33
34 @Override
35 protected List<Lifecycle> loadLifecycles() throws Exception {
36 List<Lifecycle> lifecycles = new LinkedList<Lifecycle>();
37 if (ConfigContext.getCurrentContextConfig().getXmlPipelineLifeCycleEnabled()) {
38 lifecycles.add(new XmlPipelineLifeCycle());
39 }
40 if (ConfigContext.getCurrentContextConfig().getEmailReminderLifecycleEnabled()) {
41 lifecycles.add(new EmailReminderLifecycle());
42 }
43 return lifecycles;
44 }
45
46 }