From 49baa1316c8d43d845aea5ef3a3271bd44a19fa2 Mon Sep 17 00:00:00 2001 From: Ivica Cardic Date: Tue, 26 Nov 2024 06:23:32 +0100 Subject: [PATCH] 1674 - Update Condition definition to include names for multiple items of type object --- .../ConditionTaskDispatcherDefinitionFactory.java | 8 ++++---- .../src/test/resources/definition/condition_v1.json | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/server/libs/modules/task-dispatchers/condition/src/main/java/com/bytechef/task/dispatcher/condition/ConditionTaskDispatcherDefinitionFactory.java b/server/libs/modules/task-dispatchers/condition/src/main/java/com/bytechef/task/dispatcher/condition/ConditionTaskDispatcherDefinitionFactory.java index 72154e4024..299bb36a47 100644 --- a/server/libs/modules/task-dispatchers/condition/src/main/java/com/bytechef/task/dispatcher/condition/ConditionTaskDispatcherDefinitionFactory.java +++ b/server/libs/modules/task-dispatchers/condition/src/main/java/com/bytechef/task/dispatcher/condition/ConditionTaskDispatcherDefinitionFactory.java @@ -73,7 +73,7 @@ public class ConditionTaskDispatcherDefinitionFactory implements TaskDispatcherD .placeholder("Add AND Condition") .expressionEnabled(false) .items( - object() + object("boolean") .label("Boolean Expression") .expressionEnabled(false) .properties( @@ -98,7 +98,7 @@ public class ConditionTaskDispatcherDefinitionFactory implements TaskDispatcherD .description( "The boolean value to compare with the first one.") .defaultValue(false)), - object() + object("dateTime") .label("Date & Time Expression") .expressionEnabled(false) .properties( @@ -123,7 +123,7 @@ public class ConditionTaskDispatcherDefinitionFactory implements TaskDispatcherD .description( "The date & time value to compare with the first one.") .defaultValue(null)), - object() + object("number") .label("Number Expression") .expressionEnabled(false) .properties( @@ -159,7 +159,7 @@ public class ConditionTaskDispatcherDefinitionFactory implements TaskDispatcherD .defaultValue(0) .displayCondition( "%s != '%s'".formatted(OPERATION, Operation.EMPTY.name()))), - object() + object("string") .label("String Expression") .expressionEnabled(false) .properties( diff --git a/server/libs/modules/task-dispatchers/condition/src/test/resources/definition/condition_v1.json b/server/libs/modules/task-dispatchers/condition/src/test/resources/definition/condition_v1.json index a90556d898..28fdc4907a 100644 --- a/server/libs/modules/task-dispatchers/condition/src/test/resources/definition/condition_v1.json +++ b/server/libs/modules/task-dispatchers/condition/src/test/resources/definition/condition_v1.json @@ -63,7 +63,7 @@ "hidden" : null, "metadata" : { }, "required" : null, - "name" : null, + "name" : "boolean", "type" : "OBJECT", "defaultValue" : null, "description" : null, @@ -174,7 +174,7 @@ "hidden" : null, "metadata" : { }, "required" : null, - "name" : null, + "name" : "dateTime", "type" : "OBJECT", "defaultValue" : null, "description" : null, @@ -269,7 +269,7 @@ "hidden" : null, "metadata" : { }, "required" : null, - "name" : null, + "name" : "number", "type" : "OBJECT", "defaultValue" : null, "description" : null, @@ -394,7 +394,7 @@ "hidden" : null, "metadata" : { }, "required" : null, - "name" : null, + "name" : "string", "type" : "OBJECT", "defaultValue" : null, "description" : null,