From 61bbbe50d45589a4786073b44d3a343aba4a09ef Mon Sep 17 00:00:00 2001 From: Lucio Lelii Date: Thu, 3 Sep 2026 07:52:52 +0200 Subject: [PATCH] Sharpen block descriptions and add placeholder tips Rewrites the MCPAgent and MCPAgentChat descriptions so the catalog says what the blocks are actually for - calling a declared MCP server's tools - and when to prefer them over HTTPServerCall or LLMBlock. Adds a tip and acceptVariableAsPlaceholder to the two human-facing block configurations, spelling out how ${{}} placeholders behave: in the interactive block each one becomes a real named input, while in the decision block they are additional read-only context alongside the forwarded input port. --- .../configurations/HumanDecisionBlockConfiguration.java | 5 ++++- .../configurations/HumanInteractiveBlockConfiguration.java | 4 +++- .../workflow/manager/blocks/types/MCPAgentBlockType.java | 2 +- .../workflow/manager/blocks/types/MCPAgentChatBlockType.java | 2 +- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/main/java/it/cnr/isti/workflow/manager/blocks/configurations/HumanDecisionBlockConfiguration.java b/src/main/java/it/cnr/isti/workflow/manager/blocks/configurations/HumanDecisionBlockConfiguration.java index e5b7f0b..e9b7f5a 100644 --- a/src/main/java/it/cnr/isti/workflow/manager/blocks/configurations/HumanDecisionBlockConfiguration.java +++ b/src/main/java/it/cnr/isti/workflow/manager/blocks/configurations/HumanDecisionBlockConfiguration.java @@ -27,7 +27,10 @@ import lombok.NonNull; public class HumanDecisionBlockConfiguration extends BlockConfiguration { @UiOrder(30) - @LongText(placeholder = "Ask the decision question") + @LongText( + placeholder = "Ask the decision question", + tip = "Use ${{}} placeholders to pull in extra context the person deciding should see, for example: Given ${{cv}}, should this candidate move forward? The block always keeps a separate 'input' port that is forwarded unchanged to whichever option is chosen - placeholders here are additional read-only context, not that forwarded payload.", + acceptVariableAsPlaceholder = true) @NotBlank @Size(max = 2000) @JsonProperty(required = true) diff --git a/src/main/java/it/cnr/isti/workflow/manager/blocks/configurations/HumanInteractiveBlockConfiguration.java b/src/main/java/it/cnr/isti/workflow/manager/blocks/configurations/HumanInteractiveBlockConfiguration.java index 98288e0..059b49d 100644 --- a/src/main/java/it/cnr/isti/workflow/manager/blocks/configurations/HumanInteractiveBlockConfiguration.java +++ b/src/main/java/it/cnr/isti/workflow/manager/blocks/configurations/HumanInteractiveBlockConfiguration.java @@ -21,7 +21,9 @@ public class HumanInteractiveBlockConfiguration extends BlockConfiguration