Skip to content

Commit

Permalink
chore: support Connector SDK 0.11
Browse files Browse the repository at this point in the history
  • Loading branch information
chillleader committed Jul 12, 2023
1 parent 690efb8 commit ce38fe4
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

<!-- connector SDK version -->
<version.connector-core>0.10.0</version.connector-core>
<version.connector-core>0.11.2</version.connector-core>
<version.connector-runtime>0.21.3</version.connector-runtime>

<!-- external libraries -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,7 @@ public class MyConnectorExecutable implements InboundConnectorExecutable {

@Override
public void activate(InboundConnectorContext connectorContext) {
MyConnectorProperties props = connectorContext.getPropertiesAsType(MyConnectorProperties.class);

connectorContext.replaceSecrets(props);
connectorContext.validate(props);

MyConnectorProperties props = connectorContext.bindProperties(MyConnectorProperties.class);
this.connectorContext = connectorContext;

subscription = new MockSubscription(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package io.camunda.connector.inbound;

import io.camunda.connector.api.annotation.Secret;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
Expand All @@ -9,7 +8,6 @@
* Configuration properties for inbound Connector
*/
public class MyConnectorProperties {
@Secret
@NotNull
private String sender;

Expand Down

0 comments on commit ce38fe4

Please sign in to comment.