...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<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 | ||||||
---|---|---|---|---|---|---|
| ||||||
<Double# Double(Name=: "RotateValue", KnownBy=: "RotateCameraAction"/>) |
Please refer to <subscribe> and <sequence> for their respective action associations.
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<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 | ||||||
---|---|---|---|---|---|---|
| ||||||
<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.