From e8325d50311b8187b394f77a30cea06919d4b2c7 Mon Sep 17 00:00:00 2001 From: Florian Fritze Date: Fri, 10 Nov 2023 07:57:48 +0100 Subject: [PATCH] rollback the external system workflow --- .../workflow/internalspi/HttpSendReceiveClientStep.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/edu/harvard/iq/dataverse/workflow/internalspi/HttpSendReceiveClientStep.java b/src/main/java/edu/harvard/iq/dataverse/workflow/internalspi/HttpSendReceiveClientStep.java index 93ee5e60c9b..6f5ef00a150 100644 --- a/src/main/java/edu/harvard/iq/dataverse/workflow/internalspi/HttpSendReceiveClientStep.java +++ b/src/main/java/edu/harvard/iq/dataverse/workflow/internalspi/HttpSendReceiveClientStep.java @@ -50,6 +50,7 @@ public WorkflowStepResult run(WorkflowContext context) { return new Pending(); } else { String responseBody = mtd.getResponseBodyAsString(); + this.rollback(context, null); return new Failure("Error communicating with server. Server response: " + responseBody + " (" + responseStatus + ")."); }