@Override
public void run() {
WorkflowStore store = null;
try {
store = Services.get().get(WorkflowStoreService.class).create();
store.beginTrx();
WorkflowJob.Status[] wfStatusArr = WorkflowJob.Status.values();
for (WorkflowJob.Status aWfStatusArr : wfStatusArr) {
statusCounts.put(aWfStatusArr.name(), store.getWorkflowCountWithStatus(aWfStatusArr.name()));
statusWindowCounts.put(aWfStatusArr.name(), store.getWorkflowCountWithStatusInLastNSeconds(
aWfStatusArr.name(), statusWindow));