minor improvements
This commit is contained in:
@@ -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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user