| 1 |
|
|
| 2 |
|
|
| 3 |
|
|
| 4 |
|
|
| 5 |
|
|
| 6 |
|
|
| 7 |
|
|
| 8 |
|
|
| 9 |
|
|
| 10 |
|
|
| 11 |
|
|
| 12 |
|
|
| 13 |
|
|
| 14 |
|
|
| 15 |
|
|
| 16 |
|
|
| 17 |
|
package org.kuali.rice.kew.mail; |
| 18 |
|
|
| 19 |
|
|
| 20 |
|
import org.kuali.rice.core.api.lifecycle.Lifecycle; |
| 21 |
|
import org.kuali.rice.kew.exception.WorkflowException; |
| 22 |
|
import org.kuali.rice.kew.service.KEWServiceLocator; |
| 23 |
|
import org.kuali.rice.ksb.service.KSBServiceLocator; |
| 24 |
|
import org.quartz.Scheduler; |
| 25 |
|
|
| 26 |
|
|
| 27 |
|
|
| 28 |
|
@link |
| 29 |
|
|
| 30 |
|
|
| 31 |
|
@author |
| 32 |
|
|
|
|
|
| 0% |
Uncovered Elements: 12 (12) |
Complexity: 4 |
Complexity Density: 0.57 |
|
| 33 |
|
public class EmailReminderLifecycle implements Lifecycle { |
| 34 |
|
|
| 35 |
|
private boolean started; |
| 36 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 37 |
0
|
public boolean isStarted() {... |
| 38 |
0
|
return started; |
| 39 |
|
} |
| 40 |
|
|
|
|
|
| 0% |
Uncovered Elements: 7 (7) |
Complexity: 2 |
Complexity Density: 0.4 |
|
| 41 |
0
|
public void start() throws Exception {... |
| 42 |
|
|
| 43 |
0
|
Scheduler scheduler = KSBServiceLocator.getScheduler(); |
| 44 |
0
|
if (scheduler == null) { |
| 45 |
0
|
throw new WorkflowException("Failed to locate Quartz Scheduler Service."); |
| 46 |
|
} |
| 47 |
0
|
KEWServiceLocator.getActionListEmailService().scheduleBatchEmailReminders(); |
| 48 |
0
|
started = true; |
| 49 |
|
} |
| 50 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 51 |
0
|
public void stop() throws Exception {... |
| 52 |
0
|
started = false; |
| 53 |
|
} |
| 54 |
|
|
| 55 |
|
} |