ThingSpeak · Arazzo Workflow

ThingSpeak Sweep Executed TalkBack Commands

Version 1.0.0

List a TalkBack queue, then delete the first command to keep the queue tidy.

1 workflow 1 source API 1 provider
View Spec View on GitHub IoTInternet of ThingsAnalyticsTime SeriesMQTTMATLABSensorsTelemetryArazzoWorkflows

Provider

thingspeak

Workflows

sweep-executed-talkback-commands
List a TalkBack queue and delete its first command.
Lists the commands in the queue, captures the first command id, and deletes that command.
2 steps inputs: apiKey, talkbackId outputs: deleteStatus, deletedCommandId
1
listCommands
listCommands
List all commands in the queue, including executed ones.
2
deleteCommand
deleteCommand
Delete the first command in the queue to keep it tidy.

Source API Descriptions

Arazzo Workflow Specification

thingspeak-sweep-executed-talkback-commands-workflow.yml Raw ↑
arazzo: 1.0.1
info:
  title: ThingSpeak Sweep Executed TalkBack Commands
  summary: List a TalkBack queue, then delete the first command to keep the queue tidy.
  description: >-
    A housekeeping flow for a TalkBack queue. It lists all commands in the queue,
    including executed ones, takes the first command's id, and deletes it so stale
    commands do not accumulate. Every step spells out its request inline so the flow
    can be read and executed without opening the underlying OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: talkbackApi
  url: ../openapi/thingspeak-talkback-api-openapi.yml
  type: openapi
workflows:
- workflowId: sweep-executed-talkback-commands
  summary: List a TalkBack queue and delete its first command.
  description: >-
    Lists the commands in the queue, captures the first command id, and deletes
    that command.
  inputs:
    type: object
    required:
    - talkbackId
    - apiKey
    properties:
      talkbackId:
        type: integer
        description: Numeric id of the TalkBack queue.
      apiKey:
        type: string
        description: TalkBack API Key (api_key query parameter).
  steps:
  - stepId: listCommands
    description: >-
      List all commands in the queue, including executed ones.
    operationId: listCommands
    parameters:
    - name: talkback_id
      in: path
      value: $inputs.talkbackId
    - name: api_key
      in: query
      value: $inputs.apiKey
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      firstCommandId: $response.body#/0/id
      commands: $response.body
  - stepId: deleteCommand
    description: >-
      Delete the first command in the queue to keep it tidy.
    operationId: deleteCommand
    parameters:
    - name: talkback_id
      in: path
      value: $inputs.talkbackId
    - name: command_id
      in: path
      value: $steps.listCommands.outputs.firstCommandId
    - name: api_key
      in: query
      value: $inputs.apiKey
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      deleteStatus: $statusCode
  outputs:
    deletedCommandId: $steps.listCommands.outputs.firstCommandId
    deleteStatus: $steps.deleteCommand.outputs.deleteStatus