private void processStatusResult(ViewComputationResultModel fullResult, PerViewStatusResult statusResult) {
ViewCalculationResultModel calculationResult = fullResult.getCalculationResult(DEFAULT_CALC_CONFIG);
Collection<ComputationTargetSpecification> allTargets = calculationResult.getAllTargets();
for (ComputationTargetSpecification targetSpec : allTargets) {
ComputationTargetType targetType = targetSpec.getSpecification().getType();
if (isValidTargetType(targetType)) {
Map<Pair<String, ValueProperties>, ComputedValueResult> values = calculationResult.getValues(targetSpec);
for (Map.Entry<Pair<String, ValueProperties>, ComputedValueResult> valueEntry : values.entrySet()) {
String valueName = valueEntry.getKey().getFirst();
String currency = getCurrency(targetSpec.getUniqueId(), targetType);
s_logger.debug("{} currency returned for id:{} targetType:{}", currency, targetSpec.getUniqueId(), targetType);
if (currency != null) {
ComputedValueResult computedValue = valueEntry.getValue();
if (isGoodValue(computedValue)) {
statusResult.put(new ViewStatusKeyBean(_securityType, valueName, currency, targetType.getName()), ViewStatus.VALUE);
}
} else {
s_logger.error("Discarding result as NULL return as Currency for id: {} targetType:{}", targetSpec.getUniqueId(), targetType);
}
}