public Date getCloseTime() { return getEndTime(); }
public Date getCloseTime() { return getEndTime(); }
public HistoryEvent createCaseInstanceCloseEvt(DelegateCaseExecution caseExecution) { final CaseExecutionEntity caseExecutionEntity = (CaseExecutionEntity) caseExecution; // create event instance HistoricCaseInstanceEventEntity evt = loadCaseInstanceEventEntity(caseExecutionEntity); // initialize event initCaseInstanceEvent(evt, caseExecutionEntity, HistoryEventTypes.CASE_INSTANCE_CLOSE); // set end time evt.setEndTime(ClockUtil.getCurrentTime()); if (evt.getStartTime() != null) { evt.setDurationInMillis(evt.getEndTime().getTime() - evt.getStartTime().getTime()); } return evt; }
public HistoryEvent createCaseInstanceCloseEvt(DelegateCaseExecution caseExecution) { final CaseExecutionEntity caseExecutionEntity = (CaseExecutionEntity) caseExecution; // create event instance HistoricCaseInstanceEventEntity evt = loadCaseInstanceEventEntity(caseExecutionEntity); // initialize event initCaseInstanceEvent(evt, caseExecutionEntity, HistoryEventTypes.CASE_INSTANCE_CLOSE); // set end time evt.setEndTime(ClockUtil.getCurrentTime()); if (evt.getStartTime() != null) { evt.setDurationInMillis(evt.getEndTime().getTime() - evt.getStartTime().getTime()); } return evt; }
public Date getCloseTime() { return getEndTime(); }
public HistoryEvent createCaseInstanceCloseEvt(DelegateCaseExecution caseExecution) { final CaseExecutionEntity caseExecutionEntity = (CaseExecutionEntity) caseExecution; // create event instance HistoricCaseInstanceEventEntity evt = loadCaseInstanceEventEntity(caseExecutionEntity); // initialize event initCaseInstanceEvent(evt, caseExecutionEntity, HistoryEventTypes.CASE_INSTANCE_CLOSE); // set end time evt.setEndTime(ClockUtil.getCurrentTime()); if (evt.getStartTime() != null) { evt.setDurationInMillis(evt.getEndTime().getTime() - evt.getStartTime().getTime()); } return evt; }