Versions Compared

Key

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

...

Code Block
languagexml
titleAction Named Element
linenumberstrue
<Action#
Action(Name=: "RotateCameraAction", Documentation=: "Simple Action to Rotate IP-based Camera by x degrees"/>) 

An Action must define executable code in any Atomic Domain Languages (Workflow, FacetScript, TQL, Subscribe, Sequence) or any of their combinations, within one of the following elements:

...

Code Block
languagexml
titleAction Named Element
linenumberstrue
<Double#
Double(Name=: "RotateValue", KnownBy=: "RotateCameraAction"/>)

Please refer to <subscribe> and <sequence> for their respective action associations.

...

Code Block
languagexml
titleAction Result
linenumberstrue
<Output#
Output(name=: "Result", as=: "ActionResult">):
  <Value>Value:
    State: <State>"[%:[%:@Output:%]/if([:IOK:]) then 'ON' else 'OFF':%]</State>"
    Image: <Image>"[%:[%:@Output:%]/if([:IOK:]) then Invoke/GetImage/Message/Value/text() else '/img/no-image.jpg':%]</Image>
  </Value>
</Output>"

Note: the output of the workflow can update any attribute of the model. This is not limited to the actionable attribute.

...

Code Block
languagexml
titleInstantiate a Device using TQL Query
linenumberstrue
<Query>#
Query:
 <Save Save(format=: "version,current">):
    <RfidReader ReaderId=RfidReader(ReaderId: "R1", URL=: "perif://">):
        <RFID value=RFID(value: "$Null()", version=: "1"/>
    </RfidReader>
  </Save>
</Query>)

See also Automatic Action trigger.