Skip to the content.

wfa.executeQueryPing.md

Purpose

This actiontype runs a sql query on a relational database waiting for returning a result or not. Output values can captured as runtime variable when a result has been received.

Use Cases

Fields

Parameter Description Type Mandatory Encrypted
query SQL query to run string Y N
hasResult Flag indicating if the SQL query should retun a result string Y N
setRuntimeVariables Flag indicating if an expected result will be set as a runtime string N N
connection Connection where to run the SQL query string Y N
wait Number of seconds to wait between checks number N N
timeout Number of seconds to wait for a result string N N

Notes

Example

  - number: 1
    type: "wfa.executeQueryPing"
    name: "action1"
    description: "Wait for a record in Table1"
    component: ""
    condition: ""
    iteration: ""
    errorExpected: "N"
    errorStop: "N"
    parameters:
    - name: "query"
      value : "select Field1, Field2, Field3 from Table1"
    - name: "hasResult"
      value : "Y"
    - name: "setRuntimeVariables"
      value : "Y"
    - name: "connection"
      value : "sql.executeQuery.2"
    - name: "wait"
      value : "10"
    - name: "timeout"
      value : "1200"