Generate outbound template
You can generate templates for use in Camunda SaaS or Camunda Modeler from you outbound connectors.
Python Camunda SDK includes a generate_template
command-line tool to help you.
$ generate_template --help
Usage: generate_template [OPTIONS] CONNECTOR FILENAME
Generates a template from a CONNECTOR and saves it to FILENAME.
CONNECTOR must be a a full class name including the module name, e.g.
mymodule.submodule.MyConnector.
Options:
--help Show this message and exit.
For example, if LogConnector
is a part of the example
module, we can run
$ generate_template example.LogConnector example/log.json
Generated template for example.LogConnector
Tip
You can skip to Create process to learn how to load the template to Modeler.
Template conversion
LogConnector
class have been converted to a template:
name
of the template was picked up fromConnectorConfig.name
zeebe:taskDefinition:type
was set toConnectorConfig.type
(not visible in Modeler).message
field of theLogConnector
was converted into azeebe:input
property.- A
zeebe:taskHeader
with key 'resultVariable' was added to allow users define the name of the variable where the output of theLogConnector.run
method will be stored.