@Override public StepExecutionStatus pausedItem(DtRunbookItem runbookItem) { StepExecutionStatus itemStatus = new StepExecutionStatus(runbookItem.getItemId()); itemStatus.setStartTime(System.currentTimeMillis()); itemStatus.setState(ExecState.PAUSED); execStatus.addItemStatus(runbookItem.getItemId(), itemStatus); store.update(execStatus); return itemStatus; }
@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; }