Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(generator): add retry count property #1469

Merged
merged 1 commit into from
Dec 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@
"properties" : [ {
"value" : "io.camunda:connector-automationanywhere:1",
"binding" : {
"type" : "zeebe:taskDefinition:type"
"property" : "type",
"type" : "zeebe:taskDefinition"
},
"type" : "Hidden"
}, {
Expand Down Expand Up @@ -340,17 +341,30 @@
"type" : "zeebe:taskHeader"
},
"type" : "Text"
}, {
"id" : "retryCount",
"label" : "Retries",
"description" : "Number of retries",
"value" : "3",
"feel" : "optional",
"group" : "retries",
"binding" : {
"property" : "retries",
"type" : "zeebe:taskDefinition"
},
"type" : "String"
}, {
"id" : "retryBackoff",
"label" : "Retry backoff",
"description" : "ISO-8601 duration to wait between retries",
"value" : "PT0S",
"feel" : "optional",
"group" : "retries",
"binding" : {
"key" : "retryBackoff",
"type" : "zeebe:taskHeader"
},
"type" : "Hidden"
"type" : "String"
} ],
"icon" : {
"contents" : "data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PScwIDAgNjUyIDY1Micgc3R5bGU9J2VuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgNjUyIDY1MjsnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+CiAgICA8ZGVmcz4KICAgICAgICA8c3R5bGUgdHlwZT0ndGV4dC9jc3MnPi5zdDB7Y2xpcC1wYXRoOnVybCgjU1ZHSURfMl8pO2ZpbGw6dXJsKCNTVkdJRF8zXyk7fSAuc3Qxe29wYWNpdHk6MC4zO30KICAgICAgICAgICAgLnN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NC0yLjMtMi4yLTMuNGMtMC4zLTAuNS0wLjYtMS0xLTEuNGMtMTMuMS0xMi4yLTI4LjQtMjEuNS00NC45LTI3LjZMMTg3LjMsMzgwLjN6IE02OS41LDM3Ni43Yy05LjgsNS43LTE4LjgsMTIuNy0yNi45LDIwLjZsLTEyLjIsMzIuOGMwLjItMC4yLDAuMy0wLjQsMC41LTAuN2MxMC43LTE4LDI1LjktMzMuMSw0My45LTQzLjYgYzE4LjYtMTAuOCwzOS45LTE2LjYsNjEuNi0xNi42YzEyLjEsMCwyNS4xLDEuOSwzNy42LDUuOWwtNC43LTEyLjRjLTEwLjctMi43LTIxLjctNC4xLTMyLjktNC4xIEMxMTIuOSwzNTguNyw4OS44LDM2NC45LDY5LjUsMzc2LjcnCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0cmFuc2Zvcm09J21hdHJpeCgxLCAwLCAwLCAxLCAwLCAwKScgc3R5bGU9J292ZXJmbG93OiB2aXNpYmxlOycvPgogICAgICAgICAgICAgICAgICAgICAgICA8L2NsaXBQYXRoPgogICAgICAgICAgICAgICAgICAgICAgICA8bGluZWFyR3JhZGllbnQgaWQ9J1NWR0lEXzZfJyBncmFkaWVudFVuaXRzPSd1c2VyU3BhY2VPblVzZScgeDE9Jy01LjQwNDInIHkxPSc3NDEuNDczJwogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgeDI9JzEuNTEzMScgeTI9Jzc0MS40NzMnCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBncmFkaWVudFRyYW5zZm9ybT0nbWF0cml4KDI5LjI3NDggMCAwIC0yOS4yNzQ4IDE4OC43MTUyIDIyMTAwLjg0NzcpJz4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxzdG9wIG9mZnNldD0nMCcgc3R5bGU9J3N0b3AtY29sb3I6I0ZGRkZGRicvPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPHN0b3Agb2Zmc2V0PScwLjMyODUnIHN0eWxlPSdzdG9wLWNvbG9yOiNGRkZGRkYnLz4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxzdG9wIG9mZnNldD0nMC4zNzQ1JyBzdHlsZT0nc3RvcC1jb2xvcjojRkJGQkZCJy8+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8c3RvcCBvZmZzZXQ9JzAuNDIzMycgc3R5bGU9J3N0b3AtY29sb3I6I0VFRUVFRScvPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPHN0b3Agb2Zmc2V0PScwLjQ3MzUnIHN0eWxlPSdzdG9wLWNvbG9yOiNEOUQ5RDknLz4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxzdG9wIG9mZnNldD0nMC41MjQ2JyBzdHlsZT0nc3RvcC1jb2xvcjojQkNCQkJCJy8+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8c3RvcCBvZmZzZXQ9JzAuNTc2NCcgc3R5bGU9J3N0b3AtY29sb3I6Izk2OTU5NScvPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPHN0b3Agb2Zmc2V0PScwLjYyODgnIHN0eWxlPSdzdG9wLWNvbG9yOiM2ODY2NjYnLz4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxzdG9wIG9mZnNldD0nMC42ODA4JyBzdHlsZT0nc3RvcC1jb2xvcjojMzMyRjMwJy8+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8c3RvcCBvZmZzZXQ9JzAuNjk0OCcgc3R5bGU9J3N0b3AtY29sb3I6IzIzMUYyMCcvPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPHN0b3Agb2Zmc2V0PScwLjkzMDEnIHN0eWxlPSdzdG9wLWNvbG9yOiNGRkZGRkYnLz4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxzdG9wIG9mZnNldD0nMScgc3R5bGU9J3N0b3AtY29sb3I6I0ZGRkZGRicvPgogICAgICAgICAgICAgICAgICAgICAgICA8L2xpbmVhckdyYWRpZW50PgogICAgICAgICAgICAgICAgICAgICAgICA8cmVjdCB4PSczMC41JyB5PSczNTguNycgY2xhc3M9J3N0Micgd2lkdGg9JzE4JyBoZWlnaHQ9JzE4Jy8+CiAgICAgICAgICAgICAgICAgICAgPC9nPgogICAgICAgICAgICAgICAgPC9nPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgICAgIDxnLz4KICAgIDwvZz4KPC9zdmc+"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@
"value" : "io.camunda:http-json:1",
"group" : "taskDefinitionType",
"binding" : {
"type" : "zeebe:taskDefinition:type"
"property" : "type",
"type" : "zeebe:taskDefinition"
},
"type" : "String"
}, {
Expand Down Expand Up @@ -449,17 +450,30 @@
"type" : "zeebe:taskHeader"
},
"type" : "Text"
}, {
"id" : "retryCount",
"label" : "Retries",
"description" : "Number of retries",
"value" : "3",
"feel" : "optional",
"group" : "retries",
"binding" : {
"property" : "retries",
"type" : "zeebe:taskDefinition"
},
"type" : "String"
}, {
"id" : "retryBackoff",
"label" : "Retry backoff",
"description" : "ISO-8601 duration to wait between retries",
"value" : "PT0S",
"feel" : "optional",
"group" : "retries",
"binding" : {
"key" : "retryBackoff",
"type" : "zeebe:taskHeader"
},
"type" : "Hidden"
"type" : "String"
} ],
"icon" : {
"contents" : "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE3LjAzMzUgOC45OTk5N0MxNy4wMzM1IDEzLjQ0NzUgMTMuNDI4MSAxNy4wNTI5IDguOTgwNjUgMTcuMDUyOUM0LjUzMzE2IDE3LjA1MjkgMC45Mjc3NjUgMTMuNDQ3NSAwLjkyNzc2NSA4Ljk5OTk3QzAuOTI3NzY1IDQuNTUyNDggNC41MzMxNiAwLjk0NzA4MyA4Ljk4MDY1IDAuOTQ3MDgzQzEzLjQyODEgMC45NDcwODMgMTcuMDMzNSA0LjU1MjQ4IDE3LjAzMzUgOC45OTk5N1oiIGZpbGw9IiM1MDU1NjIiLz4KPHBhdGggZD0iTTQuOTMxMjYgMTQuMTU3MUw2Ljc4MTA2IDMuNzE0NzFIMTAuMTM3NUMxMS4xOTE3IDMuNzE0NzEgMTEuOTgyNCAzLjk4MzIzIDEyLjUwOTUgNC41MjAyN0MxMy4wNDY1IDUuMDQ3MzYgMTMuMzE1IDUuNzMzNTggMTMuMzE1IDYuNTc4OTJDMTMuMzE1IDcuNDQ0MTQgMTMuMDcxNCA4LjE1NTIyIDEyLjU4NDEgOC43MTIxNUMxMi4xMDY3IDkuMjU5MTMgMTEuNDU1MyA5LjYzNzA1IDEwLjYyOTggOS44NDU5TDEyLjA2MTkgMTQuMTU3MUgxMC4zMzE1TDkuMDMzNjQgMTAuMDI0OUg3LjI0MzUxTDYuNTEyNTQgMTQuMTU3MUg0LjkzMTI2Wk03LjQ5NzExIDguNTkyODFIOS4yNDI0OEM5Ljk5ODMyIDguNTkyODEgMTAuNTkwMSA4LjQyMzc0IDExLjAxNzcgOC4wODU2MUMxMS40NTUzIDcuNzM3NTMgMTEuNjc0MSA3LjI2NTEzIDExLjY3NDEgNi42Njg0MkMxMS42NzQxIDYuMTkxMDYgMTEuNTI0OSA1LjgxODExIDExLjIyNjUgNS41NDk1OUMxMC45MjgyIDUuMjcxMTMgMTAuNDU1OCA1LjEzMTkgOS44MDkzNiA1LjEzMTlIOC4xMDg3NEw3LjQ5NzExIDguNTkyODFaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K"
Expand Down
18 changes: 16 additions & 2 deletions connectors/http/rest/element-templates/http-json-connector.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@
"properties" : [ {
"value" : "io.camunda:http-json:1",
"binding" : {
"type" : "zeebe:taskDefinition:type"
"property" : "type",
"type" : "zeebe:taskDefinition"
},
"type" : "Hidden"
}, {
Expand Down Expand Up @@ -444,17 +445,30 @@
"type" : "zeebe:taskHeader"
},
"type" : "Text"
}, {
"id" : "retryCount",
"label" : "Retries",
"description" : "Number of retries",
"value" : "3",
"feel" : "optional",
"group" : "retries",
"binding" : {
"property" : "retries",
"type" : "zeebe:taskDefinition"
},
"type" : "String"
}, {
"id" : "retryBackoff",
"label" : "Retry backoff",
"description" : "ISO-8601 duration to wait between retries",
"value" : "PT0S",
"feel" : "optional",
"group" : "retries",
"binding" : {
"key" : "retryBackoff",
"type" : "zeebe:taskHeader"
},
"type" : "Hidden"
"type" : "String"
} ],
"icon" : {
"contents" : "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE3LjAzMzUgOC45OTk5N0MxNy4wMzM1IDEzLjQ0NzUgMTMuNDI4MSAxNy4wNTI5IDguOTgwNjUgMTcuMDUyOUM0LjUzMzE2IDE3LjA1MjkgMC45Mjc3NjUgMTMuNDQ3NSAwLjkyNzc2NSA4Ljk5OTk3QzAuOTI3NzY1IDQuNTUyNDggNC41MzMxNiAwLjk0NzA4MyA4Ljk4MDY1IDAuOTQ3MDgzQzEzLjQyODEgMC45NDcwODMgMTcuMDMzNSA0LjU1MjQ4IDE3LjAzMzUgOC45OTk5N1oiIGZpbGw9IiM1MDU1NjIiLz4KPHBhdGggZD0iTTQuOTMxMjYgMTQuMTU3MUw2Ljc4MTA2IDMuNzE0NzFIMTAuMTM3NUMxMS4xOTE3IDMuNzE0NzEgMTEuOTgyNCAzLjk4MzIzIDEyLjUwOTUgNC41MjAyN0MxMy4wNDY1IDUuMDQ3MzYgMTMuMzE1IDUuNzMzNTggMTMuMzE1IDYuNTc4OTJDMTMuMzE1IDcuNDQ0MTQgMTMuMDcxNCA4LjE1NTIyIDEyLjU4NDEgOC43MTIxNUMxMi4xMDY3IDkuMjU5MTMgMTEuNDU1MyA5LjYzNzA1IDEwLjYyOTggOS44NDU5TDEyLjA2MTkgMTQuMTU3MUgxMC4zMzE1TDkuMDMzNjQgMTAuMDI0OUg3LjI0MzUxTDYuNTEyNTQgMTQuMTU3MUg0LjkzMTI2Wk03LjQ5NzExIDguNTkyODFIOS4yNDI0OEM5Ljk5ODMyIDguNTkyODEgMTAuNTkwMSA4LjQyMzc0IDExLjAxNzcgOC4wODU2MUMxMS40NTUzIDcuNzM3NTMgMTEuNjc0MSA3LjI2NTEzIDExLjY3NDEgNi42Njg0MkMxMS42NzQxIDYuMTkxMDYgMTEuNTI0OSA1LjgxODExIDExLjIyNjUgNS41NDk1OUMxMC45MjgyIDUuMjcxMTMgMTAuNDU1OCA1LjEzMTkgOS44MDkzNiA1LjEzMTlIOC4xMDg3NEw3LjQ5NzExIDguNTkyODFaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,16 @@ public class CommonProperties {
"Expression to handle errors. Details in the <a href=\"https://docs.camunda.io/docs/components/connectors/use-connectors/\" target=\"_blank\">documentation</a>.")
.feel(FeelMode.required);

public static final PropertyBuilder RETRY_COUNT =
StringProperty.builder()
.id("retryCount")
.label("Retries")
.description("Number of retries")
.group("retries")
.value("3");

public static final PropertyBuilder RETRY_BACKOFF =
HiddenProperty.builder()
StringProperty.builder()
.id("retryBackoff")
.label("Retry backoff")
.description("ISO-8601 duration to wait between retries")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

import io.camunda.connector.generator.dsl.OutboundElementTemplate.ElementType;
import io.camunda.connector.generator.dsl.Property.FeelMode;
import io.camunda.connector.generator.dsl.PropertyBinding.ZeebeTaskDefinitionType;
import io.camunda.connector.generator.dsl.PropertyBinding.ZeebeTaskDefinition;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
Expand Down Expand Up @@ -61,15 +61,14 @@ public OutboundElementTemplateBuilder type(String type, boolean configurable) {
PropertyGroup.builder().id("taskDefinitionType").label("Task definition type").build());
property =
StringProperty.builder()
.binding(ZeebeTaskDefinitionType.INSTANCE)
.binding(ZeebeTaskDefinition.TYPE)
.value(type)
.id("taskDefinitionType")
.group("taskDefinitionType")
.feel(FeelMode.disabled)
.build();
} else {
property =
HiddenProperty.builder().binding(ZeebeTaskDefinitionType.INSTANCE).value(type).build();
property = HiddenProperty.builder().binding(ZeebeTaskDefinition.TYPE).value(type).build();
}
properties.add(property);
return this;
Expand Down Expand Up @@ -168,7 +167,7 @@ public OutboundElementTemplate build() {

private boolean isTypeAssigned() {
return this.properties.stream()
.anyMatch(property -> property.binding.type().equals(ZeebeTaskDefinitionType.NAME));
.anyMatch(property -> property.binding.equals(ZeebeTaskDefinition.TYPE));
}

private void verifyUniquePropertyIds() {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,14 @@ public String type() {
}
}

final class ZeebeTaskDefinitionType implements PropertyBinding {
record ZeebeTaskDefinition(String property) implements PropertyBinding {

public static final String NAME = "zeebe:taskDefinition:type";

private ZeebeTaskDefinitionType() {}

public static ZeebeTaskDefinitionType INSTANCE = new ZeebeTaskDefinitionType();
public static ZeebeTaskDefinition TYPE = new ZeebeTaskDefinition("type");
public static ZeebeTaskDefinition RETRIES = new ZeebeTaskDefinition("retries");

@Override
public String type() {
return NAME;
return "zeebe:taskDefinition";
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
package io.camunda.connector.generator.dsl;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.camunda.connector.generator.dsl.PropertyBinding.ZeebeTaskDefinition;
import io.camunda.connector.generator.dsl.PropertyBinding.ZeebeTaskHeader;
import java.util.ArrayList;
import java.util.Collections;
Expand Down Expand Up @@ -53,6 +54,7 @@ public record PropertyGroup(String id, String label, @JsonIgnore List<Property>
.id("retries")
.label("Retries")
.properties(
CommonProperties.RETRY_COUNT.binding(ZeebeTaskDefinition.RETRIES).build(),
CommonProperties.RETRY_BACKOFF.binding(new ZeebeTaskHeader("retryBackoff")).build())
.build();

Expand Down
Loading