opId = new OperationId();
}
long opInstanceId = (request.opInstanceId == null) ? 100L : request.opInstanceId;
updateTimeStamps();
LogStatus status = progression[where];
OperationLogEntry entry;
if (status == LogStatus.SUCCESS) {
entry = new OperationLogEntry(
opId,
"My Operation",
opInstanceId,
status,
startTime,
statusTime,
"The operation completed successfully",
new ArrayList<OperationLogMessage>());
where = 0;
} else {
entry = new OperationLogEntry(
opId,
"My Operation",
opInstanceId,
status,
startTime,
statusTime,
"",
new ArrayList<OperationLogMessage>());
++where;
}
entry.setTimeReceived(timeReceived);
callback.logWasRetrieved(Arrays.asList(entry));
}