evaluate
Evaluate the script using the supplied profile variables. Each entry of the profileVariables dictionary is placed into the interpreter as a value accessible throughout the script. The name and type of these should comply with the profile the Arcade evaluator has been constructed with. Values are not persisted across evaluations, meaning all required profile variables must be supplied with each evaluation.
Each value of a key/value pair in the dictionary is converted to a type understood by the interpreter.
Values in the dictionary can be any of the following types
Numbers, integer and floating point types of various sizes. Arcade uses doubles for all internal calculations.
Boolean.
Instant.
LocalDate.
LocalTime.
OffsetDateTime.
com.arcgismaps.mapping.GeoElement (or anything derived from it such as com.arcgismaps.data.Feature, com.arcgismaps.hydrography.EncFeature).
com.arcgismaps.data.FeatureTable, see com.arcgismaps.data.FeatureTableType.
Map, String to supported type.
com.arcgismaps.mapping.GeoModel (or anything derived from it such as com.arcgismaps.mapping.ArcGISMap or com.arcgismaps.mapping.ArcGISScene).
To be explicit on the conversions of compound types.
com.arcgismaps.mapping.GeoElement types are converted to Arcade Feature type.
com.arcgismaps.location.Location is converted to an Arcade Feature type.
com.arcgismaps.mapping.layers.FeatureLayer types are converted to Arcade FeatureSet type.
com.arcgismaps.data.FeatureTable types are converted to Arcade FeatureSet type.
com.arcgismaps.data.Geodatabase is converted to Arcade FeatureSetCollection type.
com.arcgismaps.data.ServiceGeodatabase is converted to Arcade FeatureSetCollection type.
com.arcgismaps.mapping.GeoModel is converted to Arcade FeatureSetCollection type.
Return
The task object representing the asynchronous evaluation of an Arcade script. The value of the task result is an ArcadeEvaluationResult object.
Since
200.1.0
Parameters
The profile variables for the script as key/value pairs.