404

[ Avaa Bypassed ]




Upload:

Command:

botdev@3.144.39.40: ~ $
**To get a flow definition**

The following ``get-flow-template`` example gets a definition for a flow (workflow). ::

    aws iotthingsgraph get-flow-template \
        --id "urn:tdm:us-west-2/123456789012/default:Workflow:MyFlow"

Output::

    {
        "description": {
            "summary": {
                "id": "urn:tdm:us-west-2/123456789012/default:Workflow:MyFlow",
                "revisionNumber": 1,
                "createdAt": 1559247540.292
            },
            "definition": {
                "language": "GRAPHQL",
                "text": "{\nquery MyFlow($camera: string!, $screen: string!) @workflowType(id: \"urn:tdm:us-west-2/123456789012/default:Workflow:MyFlow\") @annotation(type: \"tgc:FlowEvent\", id: \"sledged790c1b2bcd949e09da0c9bfc077f79d\", x: 1586, y: 653) @triggers(definition: \"{MotionSensor(description: \\\"\\\") @position(x: 1045, y: 635.6666564941406) {\\n  condition(expr: \\\"devices[name == \\\\\\\"motionSensor\\\\\\\"].events[name == \\\\\\\"StateChanged\\\\\\\"].lastEvent\\\")\\n  action(expr: \\\"\\\")\\n}}\") {\n  variables {\n    cameraResult @property(id: \"urn:tdm:aws/examples:property:CameraStateProperty\")\n  }\n  steps {\n    step(name: \"Camera\", outEvent: [\"sledged790c1b2bcd949e09da0c9bfc077f79d\"]) @position(x: 1377, y: 638.6666564941406) {\n      DeviceActivity(deviceModel: \"urn:tdm:aws/examples:deviceModel:Camera\", out: \"cameraResult\", deviceId: \"${camera}\") {\n        capture\n      }\n    }\n    step(name: \"Screen\", inEvent: [\"sledged790c1b2bcd949e09da0c9bfc077f79d\"]) @position(x: 1675.6666870117188, y: 637.9999847412109) {\n      DeviceActivity(deviceModel: \"urn:tdm:aws/examples:deviceModel:Screen\", deviceId: \"${screen}\") {\n        display(imageUrl: \"${cameraResult.lastClickedImage}\")\n      }\n    }\n  }\n}\n}"
            },
            "validatedNamespaceVersion": 5
        }
    }

For more information, see `Working with Flows <https://docs.aws.amazon.com/thingsgraph/latest/ug/iot-tg-workflows.html>`__ in the *AWS IoT Things Graph User Guide*.

Filemanager

Name Type Size Permission Actions
associate-entity-to-thing.rst File 577 B 0644
create-flow-template.rst File 648 B 0644
create-system-instance.rst File 964 B 0644
create-system-template.rst File 745 B 0644
delete-flow-template.rst File 485 B 0644
delete-namespace.rst File 522 B 0644
delete-system-instance.rst File 503 B 0644
delete-system-template.rst File 482 B 0644
deploy-system-instance.rst File 789 B 0644
deprecate-flow-template.rst File 497 B 0644
deprecate-system-template.rst File 494 B 0644
describe-namespace.rst File 529 B 0644
dissociate-entity-from-thing.rst File 473 B 0644
get-entities.rst File 1003 B 0644
get-flow-template-revisions.rst File 687 B 0644
get-flow-template.rst File 2.01 KB 0644
get-namespace-deletion-status.rst File 562 B 0644
get-system-instance.rst File 1.81 KB 0644
get-system-template-revisions.rst File 808 B 0644
get-system-template.rst File 1.33 KB 0644
get-upload-status.rst File 699 B 0644
list-flow-execution-messages.rst File 841 B 0644
list-tags-for-resource.rst File 612 B 0644
search-entities.rst File 1.96 KB 0644
search-flow-executions.rst File 935 B 0644
search-flow-templates.rst File 907 B 0644
search-system-instances.rst File 3.02 KB 0644
search-system-templates.rst File 813 B 0644
search-things.rst File 835 B 0644
tag-resource.rst File 524 B 0644
undeploy-system-instance.rst File 1.07 KB 0644
untag-resource.rst File 508 B 0644
update-flow-template.rst File 720 B 0644
update-system-template.rst File 821 B 0644
upload-entity-definitions.rst File 581 B 0644