Skip to content

Commit

Permalink
logging sepa
Browse files Browse the repository at this point in the history
  • Loading branch information
rsoika committed Feb 6, 2025
1 parent 3f93944 commit 618f31f
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,11 @@ public ItemCollection execute(ItemCollection invoice, ItemCollection event)
throws AdapterException, PluginException {

String key = sepaWorkflowService.computeKey(invoice, event);

logger.info("......Update SEPA export for: '" + key + "'...");
ItemCollection sepaExport;
try {
sepaExport = sepaWorkflowService.findSEPAExport(key);
if (sepaExport != null) {
logger.fine("......Update SEPA export for: '" + key + "'...");
// remove invoice from SePA export
List<String> refList = sepaExport.getItemValue("$workitemref");
if (refList.contains(invoice.getUniqueID())) {
Expand All @@ -61,8 +60,7 @@ public ItemCollection execute(ItemCollection invoice, ItemCollection event)
sepaWorkflowService.processSEPAExport(sepaExport);
}
} else {
throw new PluginException(PluginException.class.getName(), ERROR_MISSING_DATA,
"SEPA Export not found for key '" + key + "'");
// No action needed
}
} catch (QueryException | AccessDeniedException | ProcessingErrorException | ModelException e1) {
throw new PluginException(PluginException.class.getName(), ERROR_MISSING_DATA,
Expand Down

0 comments on commit 618f31f

Please sign in to comment.