Show TOC

State Attributes Class HierarchyLocate this document in the navigation structure

All state variables that are derived from the Attribute class are identified by an ID and a description, which are defined in the constructor Attribute(String ID, String Description). ID is a unique identifier of the attribute; for InputAttribute, ID defaults to the session variable name. The value of the Description variable appears in the Application Composer.

The diagram below illustrates the attribute class hierarchy.

Custom State Attributes

These methods are reserved for use by the processing engine:
  • public void setContext(SmappStateProcessingContext context)
  • protected SmappStateProcessingContext getContext()

SmappStateProcessingContext is the running context of the application, set by the processing engine using the setContext method. The SmappStateProcessingContext object provides access to the data source that stores session variables.