From e101f1429f316b1634d10be96fc89b93323f3f34 Mon Sep 17 00:00:00 2001 From: Igor Petrov Date: Mon, 26 Feb 2024 16:57:27 +0200 Subject: [PATCH] f --- .../google-drive-connector.json | 311 --------- ...oogle-drive-outbound-connector-hybrid.json | 6 +- .../google-drive-outbound-connector.json | 6 +- .../gdrive/model/request/Resource.java | 14 +- .../google-sheets-connector.json | 638 ------------------ ...ogle-sheets-outbound-connector-hybrid.json | 2 +- .../google-sheets-outbound-connector.json | 2 +- .../model/request/input/CreateRow.java | 2 +- 8 files changed, 21 insertions(+), 960 deletions(-) delete mode 100644 connectors/google/google-drive/element-templates/google-drive-connector.json delete mode 100644 connectors/google/google-sheets/element-templates/google-sheets-connector.json diff --git a/connectors/google/google-drive/element-templates/google-drive-connector.json b/connectors/google/google-drive/element-templates/google-drive-connector.json deleted file mode 100644 index 880815ebcd..0000000000 --- a/connectors/google/google-drive/element-templates/google-drive-connector.json +++ /dev/null @@ -1,311 +0,0 @@ -{ - "$schema": "https://unpkg.com/@camunda/zeebe-element-templates-json-schema/resources/schema.json", - "name": "Google Drive Outbound Connector", - "id": "io.camunda.connectors.GoogleDrive.v1", - "version": 2, - "documentationRef": "https://docs.camunda.io/docs/components/connectors/out-of-the-box-connectors/googledrive/", - "description": "Create folder or a file from template", - "category": { - "id": "connectors", - "name": "Connectors" - }, - "appliesTo": [ - "bpmn:Task" - ], - "elementType": { - "value": "bpmn:ServiceTask" - }, - "groups": [ - { - "id": "authentication", - "label": "Authentication" - }, - { - "id": "operation", - "label": "Select operation" - }, - { - "id": "operationDetails", - "label": "Operation details" - }, - { - "id": "output", - "label": "Output mapping" - }, - { - "id": "errors", - "label": "Error handling" - } - ], - "properties": [ - { - "type": "Hidden", - "value": "io.camunda:google-drive:1", - "binding": { - "type": "zeebe:taskDefinition:type" - } - }, - { - "id": "authenticationType", - "label": "Type", - "group": "authentication", - "type": "Dropdown", - "value": "bearer", - "choices": [ - { - "name": "Bearer token", - "value": "bearer" - }, - { - "name": "Refresh token", - "value": "refresh" - } - ], - "binding": { - "type": "zeebe:input", - "name": "authentication.authType", - "key": "authentication.authType" - } - }, - { - "label": "Bearer token", - "description": "Enter Google API Bearer token that is authorized to interact with desired Drive", - "group": "authentication", - "type": "String", - "binding": { - "type": "zeebe:input", - "name": "authentication.bearerToken" - }, - "constraints": { - "notEmpty": true - }, - "condition": { - "property": "authenticationType", - "equals": "bearer" - } - }, - { - "label": "Client ID", - "description": "Enter Google API Client ID", - "group": "authentication", - "type": "String", - "binding": { - "type": "zeebe:input", - "name": "authentication.oauthClientId" - }, - "constraints": { - "notEmpty": true - }, - "condition": { - "property": "authenticationType", - "equals": "refresh" - } - }, - { - "label": "Client secret", - "description": "Enter Google API client Secret", - "group": "authentication", - "type": "String", - "binding": { - "type": "zeebe:input", - "name": "authentication.oauthClientSecret" - }, - "constraints": { - "notEmpty": true - }, - "condition": { - "property": "authenticationType", - "equals": "refresh" - } - }, - { - "label": "Refresh token", - "description": "Enter Google API refresh token that is authorized to interact with desired Drive", - "group": "authentication", - "type": "String", - "binding": { - "type": "zeebe:input", - "name": "authentication.oauthRefreshToken" - }, - "constraints": { - "notEmpty": true - }, - "condition": { - "property": "authenticationType", - "equals": "refresh" - } - }, - { - "id": "resourceType", - "group": "operation", - "type": "Dropdown", - "value": "folder", - "choices": [ - { - "name": "Create folder", - "value": "folder" - }, - { - "name": "Create file from template", - "value": "file" - } - ], - "binding": { - "type": "zeebe:input", - "name": "resource.type", - "key": "resource.type" - } - }, - { - "label": "File name", - "description": "Enter name for your file", - "group": "operationDetails", - "type": "String", - "feel": "optional", - "binding": { - "type": "zeebe:input", - "name": "resource.name" - }, - "constraints": { - "notEmpty": true, - "maxLength": 255 - }, - "condition": { - "property": "resourceType", - "equals": "file" - } - }, - { - "label": "Folder name", - "description": "Enter name for your folder", - "group": "operationDetails", - "type": "String", - "feel": "optional", - "binding": { - "type": "zeebe:input", - "name": "resource.name" - }, - "constraints": { - "notEmpty": true, - "maxLength": 255 - }, - "condition": { - "property": "resourceType", - "equals": "folder" - } - }, - { - "label": "Template ID", - "description": "Enter ID of the template you are creating a file from", - "group": "operationDetails", - "type": "String", - "feel": "optional", - "binding": { - "type": "zeebe:input", - "name": "resource.template.id" - }, - "constraints": { - "notEmpty": true - }, - "condition": { - "property": "resourceType", - "equals": "file" - } - }, - { - "label": "Parent folder ID", - "description": "Enter ID of the parent folder where new folder will be created", - "group": "operationDetails", - "type": "String", - "feel": "optional", - "optional": true, - "binding": { - "type": "zeebe:input", - "name": "resource.parent" - }, - "condition": { - "property": "resourceType", - "equals": "folder" - } - }, - { - "label": "Parent folder ID", - "description": "Enter ID of the parent folder where new file will be created", - "group": "operationDetails", - "type": "String", - "feel": "optional", - "optional": true, - "binding": { - "type": "zeebe:input", - "name": "resource.parent" - }, - "condition": { - "property": "resourceType", - "equals": "file" - } - }, - { - "label": "Template variables", - "description": "Use this field to pass and update variables in your template as JSON", - "group": "operationDetails", - "type": "Text", - "feel": "required", - "binding": { - "type": "zeebe:input", - "name": "resource.template.variables" - }, - "condition": { - "property": "resourceType", - "equals": "file" - } - }, - { - "label": "Additional properties or metadata", - "description": "Use this field to pass additional Google Drive parameters as JSON.", - "group": "operationDetails", - "type": "Text", - "optional": true, - "feel": "required", - "binding": { - "type": "zeebe:input", - "name": "resource.additionalGoogleDriveProperties", - "key": "resource.additionalGoogleDriveProperties" - } - }, - { - "label": "Result variable", - "description": "Enter name of variable to store the response in. Details in the documentation", - "group": "output", - "type": "String", - "binding": { - "type": "zeebe:taskHeader", - "key": "resultVariable" - } - }, - { - "label": "Result expression", - "description": "Expression to map the response into process variables. Details in the documentation", - "group": "output", - "type": "Text", - "feel": "required", - "binding": { - "type": "zeebe:taskHeader", - "key": "resultExpression" - } - }, - { - "label": "Error expression", - "description": "Expression to handle errors. Details in the documentation", - "group": "errors", - "type": "Text", - "feel": "required", - "binding": { - "type": "zeebe:taskHeader", - "key": "errorExpression" - } - } - ], - "icon": { - "contents": "data:image/svg+xml;utf8,%3Csvg width='18' height='18' viewBox='0 0 87.3 78' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m6.6 66.85 3.85 6.65c.8 1.4 1.95 2.5 3.3 3.3l13.75-23.8h-27.5c0 1.55.4 3.1 1.2 4.5z' fill='%230066da'/%3E%3Cpath d='m43.65 25-13.75-23.8c-1.35.8-2.5 1.9-3.3 3.3l-25.4 44a9.06 9.06 0 0 0 -1.2 4.5h27.5z' fill='%2300ac47'/%3E%3Cpath d='m73.55 76.8c1.35-.8 2.5-1.9 3.3-3.3l1.6-2.75 7.65-13.25c.8-1.4 1.2-2.95 1.2-4.5h-27.502l5.852 11.5z' fill='%23ea4335'/%3E%3Cpath d='m43.65 25 13.75-23.8c-1.35-.8-2.9-1.2-4.5-1.2h-18.5c-1.6 0-3.15.45-4.5 1.2z' fill='%2300832d'/%3E%3Cpath d='m59.8 53h-32.3l-13.75 23.8c1.35.8 2.9 1.2 4.5 1.2h50.8c1.6 0 3.15-.45 4.5-1.2z' fill='%232684fc'/%3E%3Cpath d='m73.4 26.5-12.7-22c-.8-1.4-1.95-2.5-3.3-3.3l-13.75 23.8 16.15 28h27.45c0-1.55-.4-3.1-1.2-4.5z' fill='%23ffba00'/%3E%3C/svg%3E" - } -} diff --git a/connectors/google/google-drive/element-templates/google-drive-outbound-connector-hybrid.json b/connectors/google/google-drive/element-templates/google-drive-outbound-connector-hybrid.json index 83b7e7fc60..888d91f9bd 100644 --- a/connectors/google/google-drive/element-templates/google-drive-outbound-connector-hybrid.json +++ b/connectors/google/google-drive/element-templates/google-drive-outbound-connector-hybrid.json @@ -160,10 +160,10 @@ }, "type" : "Dropdown", "choices" : [ { - "name" : "FILE", + "name" : "Create file from template", "value" : "FILE" }, { - "name" : "FOLDER", + "name" : "Create folder", "value" : "FOLDER" } ] }, { @@ -184,7 +184,7 @@ "id" : "resource.parent", "label" : "Parent folder ID", "description" : "Your resources will be created here. If left empty, a new resource will appear in the root folder", - "optional" : false, + "optional" : true, "feel" : "optional", "group" : "operationDetails", "binding" : { diff --git a/connectors/google/google-drive/element-templates/google-drive-outbound-connector.json b/connectors/google/google-drive/element-templates/google-drive-outbound-connector.json index 63140a881a..117abd4763 100644 --- a/connectors/google/google-drive/element-templates/google-drive-outbound-connector.json +++ b/connectors/google/google-drive/element-templates/google-drive-outbound-connector.json @@ -155,10 +155,10 @@ }, "type" : "Dropdown", "choices" : [ { - "name" : "FILE", + "name" : "Create file from template", "value" : "FILE" }, { - "name" : "FOLDER", + "name" : "Create folder", "value" : "FOLDER" } ] }, { @@ -179,7 +179,7 @@ "id" : "resource.parent", "label" : "Parent folder ID", "description" : "Your resources will be created here. If left empty, a new resource will appear in the root folder", - "optional" : false, + "optional" : true, "feel" : "optional", "group" : "operationDetails", "binding" : { diff --git a/connectors/google/google-drive/src/main/java/io/camunda/connector/gdrive/model/request/Resource.java b/connectors/google/google-drive/src/main/java/io/camunda/connector/gdrive/model/request/Resource.java index 75df2beb25..27cd16d337 100644 --- a/connectors/google/google-drive/src/main/java/io/camunda/connector/gdrive/model/request/Resource.java +++ b/connectors/google/google-drive/src/main/java/io/camunda/connector/gdrive/model/request/Resource.java @@ -6,10 +6,14 @@ */ package io.camunda.connector.gdrive.model.request; +import static io.camunda.connector.generator.java.annotation.TemplateProperty.PropertyType.Dropdown; + import com.fasterxml.jackson.databind.JsonNode; import io.camunda.connector.generator.dsl.Property.FeelMode; import io.camunda.connector.generator.java.annotation.TemplateProperty; +import io.camunda.connector.generator.java.annotation.TemplateProperty.DropdownPropertyChoice; import io.camunda.connector.generator.java.annotation.TemplateProperty.PropertyCondition; +import io.camunda.connector.generator.java.annotation.TemplateProperty.PropertyConstraints; import jakarta.validation.Valid; import jakarta.validation.constraints.NotEmpty; import jakarta.validation.constraints.NotNull; @@ -21,8 +25,13 @@ public class Resource { id = "type", label = "Operation", group = "operation", - feel = FeelMode.optional, - defaultValue = "FOLDER") + type = Dropdown, + defaultValue = "FOLDER", + constraints = @PropertyConstraints(notEmpty = true), + choices = { + @DropdownPropertyChoice(label = "Create folder", value = "FOLDER"), + @DropdownPropertyChoice(label = "Create file from template", value = "FILE") + }) @NotNull private Type type; @@ -41,6 +50,7 @@ public class Resource { "Your resources will be created here. " + "If left empty, a new resource will appear in the root folder", group = "operationDetails", + optional = true, feel = FeelMode.optional) private String parent; diff --git a/connectors/google/google-sheets/element-templates/google-sheets-connector.json b/connectors/google/google-sheets/element-templates/google-sheets-connector.json deleted file mode 100644 index 26f5c78761..0000000000 --- a/connectors/google/google-sheets/element-templates/google-sheets-connector.json +++ /dev/null @@ -1,638 +0,0 @@ -{ - "$schema": "https://unpkg.com/@camunda/zeebe-element-templates-json-schema/resources/schema.json", - "name": "Google Sheets Outbound Connector", - "id": "io.camunda.connectors.GoogleSheets.v1", - "version": 2, - "documentationRef": "https://docs.camunda.io/docs/components/connectors/out-of-the-box-connectors/google-sheets/", - "description": "Work with spreadsheets", - "category": { - "id": "connectors", - "name": "Connectors" - }, - "appliesTo": [ - "bpmn:Task" - ], - "elementType": { - "value": "bpmn:ServiceTask" - }, - "groups": [ - { - "id": "authentication", - "label": "Authentication" - }, - { - "id": "operation", - "label": "Select operation" - }, - { - "id": "operationDetails", - "label": "Operation details" - }, - { - "id": "output", - "label": "Output mapping" - }, - { - "id": "errors", - "label": "Error handling" - } - ], - "properties": [ - { - "type": "Hidden", - "value": "io.camunda:google-sheets:1", - "binding": { - "type": "zeebe:taskDefinition:type" - } - }, - { - "id": "authenticationType", - "label": "Type", - "group": "authentication", - "type": "Dropdown", - "value": "bearer", - "choices": [ - { - "name": "Bearer token", - "value": "bearer" - }, - { - "name": "Refresh token", - "value": "refresh" - } - ], - "binding": { - "type": "zeebe:input", - "name": "authentication.authType", - "key": "authentication.authType" - } - }, - { - "label": "Bearer token", - "description": "Enter Google API Bearer token that is authorized to interact with desired spreadsheet", - "group": "authentication", - "type": "String", - "binding": { - "type": "zeebe:input", - "name": "authentication.bearerToken" - }, - "constraints": { - "notEmpty": true - }, - "condition": { - "property": "authenticationType", - "equals": "bearer" - } - }, - { - "label": "Client ID", - "description": "Enter Google API Client ID", - "group": "authentication", - "type": "String", - "binding": { - "type": "zeebe:input", - "name": "authentication.oauthClientId" - }, - "constraints": { - "notEmpty": true - }, - "condition": { - "property": "authenticationType", - "equals": "refresh" - } - }, - { - "label": "Client secret", - "description": "Enter Google API client Secret", - "group": "authentication", - "type": "String", - "binding": { - "type": "zeebe:input", - "name": "authentication.oauthClientSecret" - }, - "constraints": { - "notEmpty": true - }, - "condition": { - "property": "authenticationType", - "equals": "refresh" - } - }, - { - "label": "Refresh token", - "description": "Enter Google API refresh token that is authorized to interact with desired spreadsheet", - "group": "authentication", - "type": "String", - "binding": { - "type": "zeebe:input", - "name": "authentication.oauthRefreshToken" - }, - "constraints": { - "notEmpty": true - }, - "condition": { - "property": "authenticationType", - "equals": "refresh" - } - }, - { - "id": "operationType", - "group": "operation", - "type": "Dropdown", - "value": "createSpreadsheet", - "choices": [ - { - "name": "Create spreadsheet", - "value": "createSpreadsheet" - }, - { - "name": "Add values to spreadsheet", - "value": "addValues" - }, - { - "name": "Get spreadsheet details", - "value": "spreadsheetsDetails" - }, - { - "name": "Create worksheet", - "value": "createWorksheet" - }, - { - "name": "Get worksheet data", - "value": "getWorksheetData" - }, - { - "name": "Delete worksheet", - "value": "deleteWorksheet" - }, - { - "name": "Create empty column or row", - "value": "createEmptyColumnOrRow" - }, - { - "name": "Create row", - "value": "createRow" - }, - { - "name": "Delete column", - "value": "deleteColumn" - }, - { - "name": "Get row by index", - "value": "getRowByIndex" - } - ], - "binding": { - "type": "zeebe:input", - "name": "operation.type", - "key": "operation.type" - } - }, - { - "label": "Parent folder ID", - "description": "Enter ID of the parent folder where new spreadsheet will be created", - "group": "operationDetails", - "type": "String", - "feel": "optional", - "optional": true, - "binding": { - "type": "zeebe:input", - "name": "operation.parent" - }, - "condition": { - "property": "operationType", - "equals": "createSpreadsheet" - } - }, - { - "label": "Spreadsheet ID", - "description": "Enter the ID of the spreadsheet", - "group": "operationDetails", - "type": "String", - "feel": "optional", - "optional": false, - "binding": { - "type": "zeebe:input", - "name": "operation.spreadsheetId" - }, - "condition": { - "property": "operationType", - "oneOf": [ - "createWorksheet", - "getRowByIndex", - "createEmptyColumnOrRow", - "deleteWorksheet", - "deleteColumn", - "getWorksheetData", - "spreadsheetsDetails", - "createRow", - "addValues" - ] - }, - "constraints": { - "notEmpty": true - } - }, - { - "label": "Spreadsheet name", - "description": "Enter name for the new spreadsheet", - "group": "operationDetails", - "type": "String", - "feel": "optional", - "optional": false, - "binding": { - "type": "zeebe:input", - "name": "operation.spreadsheetName" - }, - "constraints": { - "notEmpty": true - }, - "condition": { - "property": "operationType", - "equals": "createSpreadsheet" - } - }, - { - "label": "Worksheet ID", - "description": "Enter the ID of the worksheet", - "group": "operationDetails", - "type": "String", - "feel": "optional", - "optional": false, - "binding": { - "type": "zeebe:input", - "name": "operation.worksheetId" - }, - "constraints": { - "notEmpty": true, - "pattern": { - "value": "^([0-9]*$)", - "message": "Must be a number." - } - }, - "condition": { - "property": "operationType", - "oneOf": [ - "deleteWorksheet", - "createEmptyColumnOrRow", - "deleteColumn" - ] - } - }, - { - "label": "Worksheet name", - "description": "Enter name for the worksheet", - "group": "operationDetails", - "type": "String", - "feel": "optional", - "optional": false, - "binding": { - "type": "zeebe:input", - "name": "operation.worksheetName" - }, - "constraints": { - "notEmpty": true - }, - "condition": { - "property": "operationType", - "oneOf": [ - "createWorksheet", - "getWorksheetData" - ] - } - }, - { - "label": "Worksheet name", - "description": "Enter the name of the worksheet", - "group": "operationDetails", - "type": "String", - "feel": "optional", - "optional": true, - "binding": { - "type": "zeebe:input", - "name": "operation.worksheetName" - }, - "constraints": { - "notEmpty": false - }, - "condition": { - "property": "operationType", - "oneOf": [ - "getRowByIndex", - "createRow", - "addValues" - ] - } - }, - { - "label": "Worksheet index", - "description": "Enter index of the place where to add worksheet (leave empty if add to the end of sheet list) Details in the documentation", - "group": "operationDetails", - "type": "String", - "feel": "optional", - "optional": true, - "binding": { - "type": "zeebe:input", - "name": "operation.worksheetIndex" - }, - "constraints": { - "notEmpty": false, - "pattern": { - "value": "^([0-9]*$)", - "message": "Must be a number." - } - }, - "condition": { - "property": "operationType", - "equals": "createWorksheet" - } - }, - { - "label": "Dimension", - "description": "Choose what to add: column or row", - "group": "operationDetails", - "type": "Dropdown", - "optional": false, - "choices": [ - { - "name": "Column", - "value": "COLUMNS" - }, - { - "name": "Row", - "value": "ROWS" - } - ], - "binding": { - "type": "zeebe:input", - "name": "operation.dimension" - }, - "condition": { - "property": "operationType", - "equals": "createEmptyColumnOrRow" - }, - "constraints": { - "notEmpty": true - } - }, - { - "label": "Row index", - "description": "Enter row index. Details in the documentation", - "group": "operationDetails", - "type": "String", - "feel": "optional", - "optional": false, - "binding": { - "type": "zeebe:input", - "name": "operation.rowIndex" - }, - "constraints": { - "notEmpty": true, - "pattern": { - "value": "^([0-9]*$)", - "message": "Must be a number." - } - }, - "condition": { - "property": "operationType", - "equals": "getRowByIndex" - } - }, - { - "label": "Row index", - "description": "Enter the index of the row to add . Details in the documentation", - "group": "operationDetails", - "type": "String", - "feel": "optional", - "optional": true, - "binding": { - "type": "zeebe:input", - "name": "operation.rowIndex" - }, - "constraints": { - "notEmpty": false, - "pattern": { - "value": "^([0-9]*$)", - "message": "Must contains only numbers." - } - }, - "condition": { - "property": "operationType", - "equals": "createRow" - } - }, - { - "id": "columnIndexFormat", - "label": "Index format", - "description": "Choose the type of the index. Details in the documentation", - "group": "operationDetails", - "type": "Dropdown", - "optional": false, - "choices": [ - { - "name": "Letters", - "value": "LETTERS" - }, - { - "name": "Numbers", - "value": "NUMBERS" - } - ], - "binding": { - "type": "zeebe:input", - "name": "operation.columnIndexType" - }, - "condition": { - "property": "operationType", - "equals": "deleteColumn" - }, - "constraints": { - "notEmpty": true - } - }, - { - "label": "Column letter index", - "description": "Enter the index of the column. Details in the documentation", - "group": "operationDetails", - "type": "String", - "feel": "optional", - "optional": false, - "binding": { - "type": "zeebe:input", - "name": "operation.columnLetterIndex" - }, - "constraints": { - "notEmpty": true, - "pattern": { - "value": "[A-Z]+", - "message": "Must contains only capital letters." - } - }, - "condition": { - "property": "columnIndexFormat", - "equals": "LETTERS" - } - }, - { - "label": "Column numeric index", - "description": "Enter the index of the column. Details in the documentation", - "group": "operationDetails", - "type": "String", - "feel": "optional", - "optional": false, - "binding": { - "type": "zeebe:input", - "name": "operation.columnNumberIndex" - }, - "constraints": { - "notEmpty": true, - "pattern": { - "value": "^([0-9]*$)", - "message": "Must contains only numbers." - } - }, - "condition": { - "property": "columnIndexFormat", - "equals": "NUMBERS" - } - }, - { - "label": "Start index", - "description": "Enter start index (leave empty if add to the end of the sheet). Details in the documentation", - "group": "operationDetails", - "type": "String", - "feel": "optional", - "optional": true, - "binding": { - "type": "zeebe:input", - "name": "operation.startIndex" - }, - "constraints": { - "notEmpty": false, - "pattern": { - "value": "^([0-9]*$)", - "message": "Must be a number." - } - }, - "condition": { - "property": "operationType", - "equals": "createEmptyColumnOrRow" - } - }, - { - "label": "End index", - "description": "Enter End index (leave empty if add to the end of the sheet) Details in the documentation", - "group": "operationDetails", - "type": "String", - "feel": "optional", - "optional": true, - "binding": { - "type": "zeebe:input", - "name": "operation.endIndex" - }, - "constraints": { - "notEmpty": false, - "pattern": { - "value": "^([0-9]*$)", - "message": "Must be a number." - } - }, - "condition": { - "property": "operationType", - "equals": "createEmptyColumnOrRow" - } - }, - { - "label": "Cell ID", - "description": "Enter the ID of the cell. Details in the documentation", - "group": "operationDetails", - "type": "String", - "feel": "optional", - "optional": false, - "binding": { - "type": "zeebe:input", - "name": "operation.cellId" - }, - "constraints": { - "notEmpty": true - }, - "condition": { - "property": "operationType", - "equals": "addValues" - } - }, - { - "label": "Enter values", - "description": "Enter the array of values. Learn more about the required format", - "group": "operationDetails", - "type": "Text", - "feel": "required", - "optional": false, - "binding": { - "type": "zeebe:input", - "name": "operation.values" - }, - "constraints": { - "notEmpty": true - }, - "condition": { - "property": "operationType", - "equals": "createRow" - } - }, - { - "label": "Value", - "description": "Enter the value", - "group": "operationDetails", - "type": "String", - "feel": "optional", - "optional": false, - "binding": { - "type": "zeebe:input", - "name": "operation.value" - }, - "constraints": { - "notEmpty": true - }, - "condition": { - "property": "operationType", - "equals": "addValues" - } - }, - { - "label": "Result variable", - "description": "Enter name of variable to store the response in. Details in the documentation", - "group": "output", - "type": "String", - "binding": { - "type": "zeebe:taskHeader", - "key": "resultVariable" - } - }, - { - "label": "Result expression", - "description": "Expression to map the response into process variables. Details in the documentation", - "group": "output", - "type": "Text", - "feel": "required", - "binding": { - "type": "zeebe:taskHeader", - "key": "resultExpression" - } - }, - { - "label": "Error expression", - "description": "Expression to handle errors. Details in the documentation", - "group": "errors", - "type": "Text", - "feel": "required", - "binding": { - "type": "zeebe:taskHeader", - "key": "errorExpression" - } - } - ], - "icon": { - "contents": "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/Pgo8IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMC8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9UUi8yMDAxL1JFQy1TVkctMjAwMTA5MDQvRFREL3N2ZzEwLmR0ZCI+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgaWQ9ImJvZHlfMSIgd2lkdGg9IjE4IiBoZWlnaHQ9IjE0Ij4KCjxnIHRyYW5zZm9ybT0ibWF0cml4KDAuMTU5MDkwOSAwIDAgMC4xNTkwOTA5IDMuOTA5MDkxIC0wKSI+CiAgICA8cGF0aCBkPSJNNDIgMEw2NCAyMkw1MyAyNEw0MiAyMkw0MCAxMUw0MiAweiIgc3Ryb2tlPSJub25lIiBmaWxsPSIjMTg4MDM4IiBmaWxsLXJ1bGU9Im5vbnplcm8iIC8+CiAgICA8cGF0aCBkPSJNNDIgMjJMNDIgMEw2IDBDIDIuNjg1IDAgMCAyLjY4NSAwIDZMMCA2TDAgODJDIDAgODUuMzE1IDIuNjg1IDg4IDYgODhMNiA4OEw1OCA4OEMgNjEuMzE1IDg4IDY0IDg1LjMxNSA2NCA4Mkw2NCA4Mkw2NCAyMkw0MiAyMnoiIHN0cm9rZT0ibm9uZSIgZmlsbD0iIzM0QTg1MyIgZmlsbC1ydWxlPSJub256ZXJvIiAvPgogICAgPHBhdGggZD0iTTEyIDM0TDEyIDYzTDUyIDYzTDUyIDM0TDEyIDM0ek0yOS41IDU4TDE3IDU4TDE3IDUxTDI5LjUgNTF6TTI5LjUgNDZMMTcgNDZMMTcgMzlMMjkuNSAzOXpNNDcgNThMMzQuNSA1OEwzNC41IDUxTDQ3IDUxek00NyA0NkwzNC41IDQ2TDM0LjUgMzlMNDcgMzl6IiBzdHJva2U9Im5vbmUiIGZpbGw9IiNGRkZGRkYiIGZpbGwtcnVsZT0ibm9uemVybyIgLz4KPC9nPgo8L3N2Zz4=" - } -} \ No newline at end of file diff --git a/connectors/google/google-sheets/element-templates/google-sheets-outbound-connector-hybrid.json b/connectors/google/google-sheets/element-templates/google-sheets-outbound-connector-hybrid.json index 595f4db83b..ee10094053 100644 --- a/connectors/google/google-sheets/element-templates/google-sheets-outbound-connector-hybrid.json +++ b/connectors/google/google-sheets/element-templates/google-sheets-outbound-connector-hybrid.json @@ -471,7 +471,7 @@ "constraints" : { "notEmpty" : true }, - "feel" : "optional", + "feel" : "required", "group" : "operationDetails", "binding" : { "name" : "operation.values", diff --git a/connectors/google/google-sheets/element-templates/google-sheets-outbound-connector.json b/connectors/google/google-sheets/element-templates/google-sheets-outbound-connector.json index 2cb0f0f9eb..b8ca6e00ed 100644 --- a/connectors/google/google-sheets/element-templates/google-sheets-outbound-connector.json +++ b/connectors/google/google-sheets/element-templates/google-sheets-outbound-connector.json @@ -466,7 +466,7 @@ "constraints" : { "notEmpty" : true }, - "feel" : "optional", + "feel" : "required", "group" : "operationDetails", "binding" : { "name" : "operation.values", diff --git a/connectors/google/google-sheets/src/main/java/io/camunda/connector/gsheets/model/request/input/CreateRow.java b/connectors/google/google-sheets/src/main/java/io/camunda/connector/gsheets/model/request/input/CreateRow.java index 5b113e1c70..6b3f8615bb 100644 --- a/connectors/google/google-sheets/src/main/java/io/camunda/connector/gsheets/model/request/input/CreateRow.java +++ b/connectors/google/google-sheets/src/main/java/io/camunda/connector/gsheets/model/request/input/CreateRow.java @@ -52,7 +52,7 @@ public record CreateRow( description = "Enter the array of values. Learn more about the required format", group = "operationDetails", - feel = FeelMode.optional, + feel = FeelMode.required, constraints = @PropertyConstraints(notEmpty = true), binding = @PropertyBinding(name = "operation.values")) @NotEmpty