Module com.esri.arcgisruntime
Package com.esri.arcgisruntime.arcade
Class ArcadeConsoleMessageContext
java.lang.Object
com.esri.arcgisruntime.arcade.ArcadeConsoleMessageContext
Provides information about the execution context where an Arcade console function is invoked.
- Since:
- 100.14.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionGets a dictionary of optional context information where Arcade console function is invoked.Gets theArcadeProfilewhich invoked the Arcade console function.
-
Method Details
-
getInformation
Gets a dictionary of optional context information where Arcade console function is invoked.If this is an
ArcadeProfile.ATTRIBUTE_RULE_CONSTRAINTorArcadeProfile.ATTRIBUTE_RULE_CALCULATION, expectgetInformation()to include the following keys:- "ruleName" - The name of the attribute rule which invoked the Arcade console function.
- "tableName" - The name of the
ArcGISFeatureTableevaluating the attribute rule.
- Returns:
- a dictionary of optional context information where Arcade console function is invoked
- Since:
- 100.14.0
-
getProfile
Gets theArcadeProfilewhich invoked the Arcade console function.Arcade console messages may be sent from different execution contexts, for example:
-
ArcadeProfile.ATTRIBUTE_RULE_CONSTRAINTindicates evaluation of an Attribute Rule Constraint. See documentation for Attribute Rule Constraint. -
ArcadeProfile.ATTRIBUTE_RULE_CALCULATIONindicates evaluation of an Attribute Rule Calculation. See documentation for Attribute Rule Calculation. -
ArcadeProfile.LABELINGindicates evaluation of aLabelDefinition.getExpression()orLabelAngle.getAngleExpression(). -
ArcadeProfile.POPUPindicates evaluation of an expression used to populate popup fields. -
ArcadeProfile.RESTRICTEDindicates no optional functionality is allowed and is the preferred default for anArcadeEvaluator. -
ArcadeProfile.UNRESTRICTEDindicates optional functionalities are allowed and is the legacy default.
- Returns:
- the
ArcadeProfilewhich invoked the Arcade console function - Since:
- 100.14.0
-
-