@Override public void started() { if (emitOutput) { System.out.println( '\n' + "-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-"); System.out.println(" RunBook : " + runbook.getRunBookPath() + " | " + " STARTED"); System.out.println( "-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-" + '\n'); } execStatus.setStartTime(System.currentTimeMillis()); store.create(execStatus); }
@Override public StepExecutionStatus executingItem(DtRunbookItem runbookItem) { if (emitOutput) { System.out.println( '\n' + "-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-"); System.out.println(" Step : " + runbookItem.getId() + " | " + " STARTED"); System.out.println( "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -" + '\n'); } StepExecutionStatus itemStatus = new StepExecutionStatus(runbookItem.getItemId()); itemStatus.setStartTime(System.currentTimeMillis()); execStatus.addItemStatus(runbookItem.getItemId(), itemStatus); store.create(itemStatus); return itemStatus; }