/** * Gets the <code>OrderStatus</code> for the given <code>OrderID</code>. * * <p>The given <code>OrderID</code> may be any part of the order chain. For example, if an order is replaced, * either the original <code>OrderID</code> or the current <code>OrderID</code> will return the same value, * although only the current <code>OrderID</code> is open. * * @param inOrderID an <code>OrderID</code> value or <code>null</code> if the given order cannot be found * @return an <code>OrderStatus</code> value */ protected final OrderStatus getOrderStatus(OrderID inOrderID) { ReportBase latestReport = orderHistoryManager.getLatestReportFor(inOrderID); if(latestReport == null) { return null; } return latestReport.getOrderStatus(); } /**
&& inReport.getOrderID() != null) { OrderID id = inReport.getOrderID(); OrderStatus status = inReport.getOrderStatus(); if (Originator.Server == ((ExecutionReport) inReport) .getOriginator()
if(inReport.getOrderStatus() == null || inReport.getOrderID() == null) { Messages.SKIPPNG_MALFORMED_REPORT.warn(this, history); if(inReport.getOrderStatus().isCancellable()) { "{} represents an open order ({}), updating live order list for {}", //$NON-NLS-1$ inReport.getOrderID(), inReport.getOrderStatus(), history); openOrders.put(inReport.getOrderID(), "{} represents a closed order ({}) updating live order list for {}", //$NON-NLS-1$ inReport.getOrderID(), inReport.getOrderStatus(), history); openOrders.remove(inReport.getOrderID());
if(execType == null) { OrderStatus orderStatus = report.getOrderStatus();
!handledOrders.contains(report.getOrderID())) { latestReportTable.addCell(order.getLatestReport().getOrderID().getValue()); latestReportTable.addCell(order.getLatestReport().getOrderStatus().name()); latestReportTable.addCell(DateUtils.dateToString(order.getLatestReport().getSendingTime())); latestReportTable.addCell(order.getOrderIdChain().toString()); for(ReportBase report : openOrders.values()) { latestReportTable.addCell(report.getOrderID().getValue()); latestReportTable.addCell(report.getOrderStatus().name()); latestReportTable.addCell(DateUtils.dateToString(report.getSendingTime())); latestReportTable.addCell(report instanceof ExecutionReport ? ((ExecutionReport)report).getSide().name() : none);