Reflection and the Model Schema
var view = insight.getView();
var app = view.getApp();
var schema = app.getModelSchema();
var myarray = schema.getEntity(‘myarray’);
- Scalars: Single data items.
- Sets: A single dimension collection of unordered data items.
- Arrays: A single or multi-dimensional associative array of data items where the possible index values for a given dimension of the array are represented by a set entity.
Each scalar, set, and array entity has a further type for the data value or values residing in the entity. The main value types are BOOLEAN, INTEGER, REAL, STRING, DECISION_VARIABLE and CONSTRAINT. Xpress Insight adds several more value types (VARIABLE_TYPE, CONSTRAINT_TYPE, MODEL, and PROBLEM_STATUS) to represent the augmented data it collects. Parameters are represented as an array(string) of strings.
The union of entity and data types is enumerated by the insight.enums.DataType
namespace.
The type of an entity is returned by getType
. For scalar entities, this returns a value type. For set entities, this returns SET. For array entities this returns ARRAY. In both cases, the value type of the entity can be queried with getElementType
.
© 2001-2025 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.