improving save logic
This commit is contained in:
@@ -164,8 +164,8 @@ public class TransactionWorkflow extends WorkflowDefinition {
|
|||||||
execution.setVariable("body", Utils.toJson(transaction));
|
execution.setVariable("body", Utils.toJson(transaction));
|
||||||
return NextAction.moveToState(SALES_INVOICE, "Polling complete");
|
return NextAction.moveToState(SALES_INVOICE, "Polling complete");
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.info(e.getMessage());
|
log.info(e.getCause().getMessage());
|
||||||
return NextAction.moveToState(FAILED, e.getMessage());
|
return NextAction.moveToState(FAILED, e.getCause().getMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user