minor improvements

This commit is contained in:
2025-10-28 22:41:29 +02:00
parent 2cf54c36d1
commit 54e24d1f93
2 changed files with 6 additions and 4 deletions

View File

@@ -236,9 +236,12 @@ public class TransactionWorkflow extends WorkflowDefinition {
transaction = process(transaction, "integration"); transaction = process(transaction, "integration");
execution.setVariable("body", Utils.toJson(transaction)); execution.setVariable("body", Utils.toJson(transaction));
return NextAction.moveToState(PURCHASE_INVOICE_PAYMENT, "Integration request successful"); return NextAction.moveToState(PURCHASE_INVOICE_PAYMENT, "Integration request successful");
}catch (Exception e) { } catch (ApiException e) {
log.info(e.getCause().getMessage()); log.info(e.getMessage());
return NextAction.moveToState(FAILED, e.getCause().getMessage()); return NextAction.moveToState(FAILED, e.getMessage());
} catch (Exception e) {
log.info(e.getMessage());
return NextAction.moveToState(FAILED, e.getMessage());
} }
} }

View File

@@ -12,7 +12,6 @@ import zw.qantra.tm.domain.models.TransactionEvent;
import zw.qantra.tm.domain.services.*; import zw.qantra.tm.domain.services.*;
import zw.qantra.tm.domain.services.factories.PaymentProcessorFactory; import zw.qantra.tm.domain.services.factories.PaymentProcessorFactory;
import zw.qantra.tm.domain.services.processors.TransactionProcessorInterface; import zw.qantra.tm.domain.services.processors.TransactionProcessorInterface;
import zw.qantra.tm.domain.services.processors.handlers.LogicPipeline;
import zw.qantra.tm.exceptions.ApiException; import zw.qantra.tm.exceptions.ApiException;
import zw.qantra.tm.utils.Utils; import zw.qantra.tm.utils.Utils;