@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 resumedItem(DtRunbookItem runbookItem) { StepExecutionStatus itemStatus = (StepExecutionStatus) execStatus.getItemStatus(runbookItem.getItemId()); itemStatus.setComplete(false); itemStatus.setState(ExecState.RESUMED); store.update(itemStatus); return itemStatus; }