diff --git a/README.md b/README.md index e944b2731..4ba21dab3 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ > * [README](./README.md) (title, description) > * [Element Template](./element-templates/template-connector.json) > * [POM](./pom.xml) (artifact name, id, description) -> * [Connector Function](./src/main/java/io/camunda/connector/MyConnectorFunction.java) (rename, implement) +> * [Connector Function](./src/main/java/io/camunda/connector/MyConnectorFunction.java) (rename, implement, update `OutboundConnector` annotation) > * [Service Provider Interface (SPI)](./src/main/resources/META-INF/services/io.camunda.connector.api.ConnectorFunction#L1) (rename) > > ...and delete this hint. diff --git a/src/main/java/io/camunda/connector/MyConnectorFunction.java b/src/main/java/io/camunda/connector/MyConnectorFunction.java index a9fd1113a..81664b2e3 100644 --- a/src/main/java/io/camunda/connector/MyConnectorFunction.java +++ b/src/main/java/io/camunda/connector/MyConnectorFunction.java @@ -1,10 +1,15 @@ package io.camunda.connector; +import io.camunda.connector.api.annotation.OutboundConnector; import io.camunda.connector.api.outbound.OutboundConnectorContext; import io.camunda.connector.api.outbound.OutboundConnectorFunction; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +@OutboundConnector( + name = "MYCONNECTOR", + inputVariables = {"myProperty", "authentication"}, + type = "io.camunda:my-connector:1") public class MyConnectorFunction implements OutboundConnectorFunction { private static final Logger LOGGER = LoggerFactory.getLogger(MyConnectorFunction.class);