-
Talinn, Estonia
-
-
support@lnsolutions.ee
The XRechnung LNSolutions addon extends Alfresco with full support for German XRechnung electronic invoices. It automatically detects XRechnung XML documents, enriches them with metadata, and generates high-quality HTML and PDF renditions via a dedicated Transform Engine (T‑Engine).
The solution consists of three main components:
xr:xrechnungMetadata, and integration with the T‑Engine. WEB-INF/lib or custom Docker image)To request a trial license, use:
Request XRechnung trial license
lnsolutions-alfresco-license-1.0.0.jar to:
<TOMCAT>/webapps/alfresco/WEB-INF/lib/ (non-Docker)xrechnung-lnsolutions-platform-1.0-SNAPSHOT.jar to:
<TOMCAT>/webapps/alfresco/WEB-INF/lib/ (non-Docker)lnsolutions-alfresco-license).In alfresco-global.properties (or equivalent Docker environment), add the XRechnung T‑Engine URL:
# URL of the XRechnung Transform Engine
localTransform.xrechnung.url=http://xrechnung-tengine:8091
Adjust the host/port to your environment (e.g. http://localhost:8091 for standalone testing).
docker run -d -p 8091:8091 --name xrechnung-tengine xrechnung-tengine:latest
curl http://localhost:8091/ready
java -jar xrechnung-tengine-1.0-SNAPSHOT.jar
curl http://localhost:8091/ready
Configure the following environment variables for the T‑Engine (e.g. in a .env file or service configuration):
XRECHNUNG_TRANSFORM_CONFIG=/opt/xrechnung-tengine/config/xrechnung-transform-config.json
CORE_AIO_TRANSFORM_URL=http://transform-core-aio:8090/transform
LICENSE_VALIDATION_URL=http://<alfresco-host>:8080/alfresco/service/lnsolutions/admin/license-status
The T‑Engine calls LICENSE_VALIDATION_URL before each transform to enforce your license via Alfresco.
xr:xrechnungMetadata).Digital Invoice Profile, Digital Invoice Profile Description (Short), and Is Digital Invoice.http://<alfresco-host>:8080/alfresco/service/lnsolutions/node/xrechnung-html?id={nodeId}

The addon also supports a PDF pipeline: XRechnung XML → HTML (T‑Engine) → PDF (Alfresco pdfRenderer).

The XRechnung addon uses the XRechnung Metadata aspect (xr:xrechnungMetadata) as the technical indicator that a document is a valid XRechnung invoice.
xr:isDigitalInvoice): Boolean flag that is set when a document is detected as XRechnung.xr:digitalInvoiceProfile): Stores the detected digital invoice profile identifier.xr:digitalInvoiceProfileDescShort): Short, human‑readable label for the detected profile (e.g. displayed as “Digital Invoice Profile Description (Short)” in Alfresco).The XRechnungDetectionBehavior listens to document creation and updates for cm:content nodes. When an uploaded XML file matches the XRechnung patterns (based on its content, metadata, or filename), the behavior automatically adds the xr:xrechnungMetadata aspect and sets xr:isDigitalInvoice = true.
Only documents that carry this XRechnung indicator (the xr:xrechnungMetadata aspect with xr:isDigitalInvoice=true) are treated as XRechnung by the HTML/PDF transformation pipeline. Generic XML files remain unaffected until they are positively identified as XRechnung.

If you want to evaluate the XRechnung addon before purchasing a full license, request a trial here:
Request XRechnung Trial License
Or contact us for a permanent license.