Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Actionable Attributes:

Jira Legacy
showSummaryfalse
serverJIRA (mqidentity.atlassian.net)
serverId77fb3325-4051-36d9-bcc7-761f62050707
keyDOCS-6

An Actionable Attribute An actionable attribute is a model attribute with a modifier of "KnownBy" pointing to one or multiple Action(s). For example:



Code Block
languagepy
titleExample
String(name: "Image", KnownBy: "SyncImage")

String(name: "State", KnownBy: "SyncImage,SyncPreset")



An actionable attribute defines the active property of a ThingFacets or AppFacets. Any attribute which has modifier "KnownBy" an Action, or a few Actions, is called

In runtime, an actionable attribute . An actionable attribute will activate the associated Action(s) whenever its values change happens through App.

Like for any attribute, 

 

An attribute "KnownBy" an action becomes an actionable attribute. Any changes in the actionable attribute value will activate the corresponding action by creating an instance of that defined action. And this is the only way an action can be activated.

All attributes have both values ("value") and known values ("known"). Known values are only updated by messages received from outside the application, such as from a sensor or a machine. Values are only updated by the application itself. More on values and known values, see here.

In an attribute-action pair, either a change to the "value" or a change to the "known" will trigger the action.

Relationship between Actionable attributes and actionsand their workflows whenever its value is modified.

For more on the relationship between Actions and actionable attributes, see here.