Difference between revisions of "Binding"
From AMTech WikiDocs
(Created page with "The process of assigning a value to a resource type (thing, observation, notification) property during an action configuration is referenced as "Binding"; there ate 3 types of...") |
|||
(7 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | The process of assigning a value to a resource type (thing, observation, notification) property during an action configuration is referenced as "Binding"; there | + | The process of assigning a value to a resource type (thing, observation, notification) property during an action configuration is referenced as "Binding"; there are 3 types of binding: |
− | + | * Constants | |
− | + | [[File:Binding-constants.png|thumbnail|center|constant]] | |
− | + | * Value selected from a resource property. Only properties of the same data type are shown | |
− | ;the context | + | [[File:Binding-propertis.png|thumbnail|center|selection from propeties]] |
+ | * Javascript code | ||
+ | [[File:Binding-js.png|thumbnail|center|680px|javascript]] | ||
+ | ;the context where the reasoner gets executed is injected into the javascript function, Ctrl+Space shows code completion options |
Latest revision as of 10:29, 23 April 2021
The process of assigning a value to a resource type (thing, observation, notification) property during an action configuration is referenced as "Binding"; there are 3 types of binding:
- Constants
- Value selected from a resource property. Only properties of the same data type are shown
- Javascript code
- the context where the reasoner gets executed is injected into the javascript function, Ctrl+Space shows code completion options