Search in sources :

Example 1 with Log

use of com.storedobject.job.Log in project SODevelopment by syampillai.

the class SchedulerLogViewer method process.

@Override
protected boolean process() {
    close();
    Schedule s = jobField.getObject();
    DatePeriod p = periodField.getValue();
    StringList cols = StringList.create("Status", "Message", "Date", "StartedAt", "CompletedAt");
    ObjectBrowser<Log> logs = new ObjectBrowser<>(Log.class, cols, EditorAction.VIEW, s.getName() + " (" + s.getDescription() + ")");
    logs.load("Schedule=" + s.getId() + " AND Date " + p.getDBCondition());
    logs.execute();
    return true;
}
Also used : StringList(com.storedobject.common.StringList) Log(com.storedobject.job.Log) Schedule(com.storedobject.job.Schedule) DatePeriod(com.storedobject.core.DatePeriod) ObjectBrowser(com.storedobject.ui.ObjectBrowser)

Aggregations

StringList (com.storedobject.common.StringList)1 DatePeriod (com.storedobject.core.DatePeriod)1 Log (com.storedobject.job.Log)1 Schedule (com.storedobject.job.Schedule)1 ObjectBrowser (com.storedobject.ui.ObjectBrowser)1