Connector Types
Connectors are the Cloudomation Engine functions that allow your flow scripts to interact with the outside world - anything and everything outside of the Engine platform. Whenever you want to issue a command to a program, run a script on a remote system, or get query a database - all that is performed through connectors.
There are different connector types, each for a particular type of endpoint / protocol.
Connectors are called through the Engine function this.connect(). Each call creates a separate execution of type "connection", with its own inputs and outputs.
For example, you can call a REST API using the Engine REST connector type:
import flow_api
def handler(system: flow_api.System, this: flow_api.Execution, inputs: dict):
inputs = {
'url': 'https://httpbin.org/post',
'method': 'post',
'data': 'payload',
}
child_execution = this.connect(connector_type='REST', **inputs, run=False)
child_execution.run_async()
# do other stuff
child_execution.wait()
outputs = child_execution.get('output_value')
this.log(outputs)
return this.success('all done')
The inputs required and outputs supplied by a connection depend on the connector type. Below your find documentation on each of the currently available connector types.