template
CamundaTemplate
Bases: BaseModel
Camunda template object that follows (incompletely) the official template schema.
Attributes:
Name | Type | Description |
---|---|---|
template_schema |
str
|
Alias to |
name |
str
|
|
template_id |
Optional[str]
|
|
applies_to |
Optional[List[str]]
|
|
properties |
Optional[List[CamundaProperty]]
|
|
groups |
List[Group]
|
|
Source code in python_camunda_sdk/templates/template.py
generate_template(cls)
Generate Camunda template from the connector class definition.
Converts connector class into a Camunda template mapping class fields into template inputs.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
cls |
Connector
|
Connector class. |
required |
Example
class MyConnector(OutboundConnector):
name: str = Field(description="Name")
class ConnectorConfig:
name = "MyConnector"
type = "my_connector"
timeout = 1
MyConnector
. The name
field will be converted to an input name
and label
Name
. Attributes of the ConnectorConfig
class will be mapped to
the attributes of the template.
Returns:
Type | Description |
---|---|
CamundaTemplate
|
A camunda template object that can be converted to json for import into Camunda SAAS or desktop modeller. |