Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
rsoika committed Jan 16, 2025
1 parent ef3049b commit a197b68
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
import java.io.ByteArrayInputStream;
import java.io.FileNotFoundException;
import java.math.RoundingMode;
import java.nio.charset.StandardCharsets;
import java.util.Arrays;
import java.util.logging.Logger;

import org.imixs.einvoice.EInvoiceModel;
Expand Down Expand Up @@ -58,6 +60,9 @@ public ItemCollection execute(ItemCollection workitem, ItemCollection event)
EInvoiceModel model = EInvoiceModelFactory.read(new ByteArrayInputStream(xmlData));
resolveItemValues(workitem, model);

// store xml into the text attribute
String xmlText = new String(xmlData, StandardCharsets.UTF_8);
eInvoiceFileData.setAttribute("text", Arrays.asList(xmlText));
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
Expand Down

0 comments on commit a197b68

Please sign in to comment.