This is an automated email from the ASF dual-hosted git repository.

heneveld pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/brooklyn-server.git

commit 8333e01bc83eae5243cc34d65364411faf099042
Author: Alex Heneveld <[email protected]>
AuthorDate: Tue Aug 22 12:21:54 2023 +0100

    add more info in ui on the 'fail' step with a value
---
 .../org/apache/brooklyn/core/workflow/steps/flow/FailWorkflowStep.java | 3 +++
 1 file changed, 3 insertions(+)

diff --git 
a/core/src/main/java/org/apache/brooklyn/core/workflow/steps/flow/FailWorkflowStep.java
 
b/core/src/main/java/org/apache/brooklyn/core/workflow/steps/flow/FailWorkflowStep.java
index 906b624a54..ca7baba771 100644
--- 
a/core/src/main/java/org/apache/brooklyn/core/workflow/steps/flow/FailWorkflowStep.java
+++ 
b/core/src/main/java/org/apache/brooklyn/core/workflow/steps/flow/FailWorkflowStep.java
@@ -56,6 +56,9 @@ public class FailWorkflowStep extends WorkflowStepDefinition {
         if (value==null && cause!=null && !context.hasInput(VALUE)) {
             value = WorkflowFailException.getValueFromCausalChain(cause);
         }
+        if (value!=null) {
+            context.noteOtherMetadata("Value", value);
+        }
 
         throw new WorkflowFailException(message, cause, value);
     }

Reply via email to