New to Kestra?
Use blueprints to kickstart your first workflows.
Audit financial and healthcare XML data feeds for malformations, validate bidirectional serialization fidelity, and alert Slack on payload corruption.
Critical financial transactions (ISO 20022 SEPA payment messages, SWIFT confirmations), healthcare interchanges (HL7 CDA / FHIR clinical feeds), and supply chain networks (UBL e-invoices, cXML purchase orders) depend universally on XML data exchange. When partner endpoints deliver malformed payloads with unclosed tags, encoding mismatches, or truncated records, downstream analytical pipelines and core accounting ledgers abruptly crash or fail reconciliation.
This sentinel workflow automates the health verification and integrity gating of incoming XML feeds. Using Kestra native XML serialization tasks (XmlToIon and IonToXml), the workflow parses raw XML payloads, validates record volumes against expected delivery thresholds, performs bidirectional round-trip conversion testing to guarantee zero data loss, classifies integrity into tri-state operational tiers via Pebble conditions, isolates corrupted drops into dead-letter quarantine storage, and dispatches real-time triage alerts to operations teams via Slack.
Schedule trigger awakens the workflow every 15 minutes to inspect incoming XML feeds.io.kestra.plugin.core.storage.Write.io.kestra.plugin.serdes.xml.XmlToIon parses XML nodes and converts hierarchical document trees into standardized Amazon Ion records, validating syntax and counting parsed transactions.io.kestra.plugin.serdes.xml.IonToXml converts the parsed Ion records back into structured XML with the configured root element (payments), confirming that serialization properties and schema structures remain intact.Labels execution task assesses extracted record counts and simulation parameters, categorizing health status into COMPLIANT_INGESTION, WARNING_BATCH_MISMATCH, or CRITICAL_MALFORMED_XML.Switch flow-control task routes execution based on the evaluated integrity tier: malformed files trigger immediate Slack incident alerts and payload quarantine, while compliant batches trigger notification of downstream pipeline readiness.Log task outputs structured audit telemetry detailing record counts, intermediate storage URIs, and execution timestamps.XmlToIon, IonToXml) eliminate external XML CLI dependencies and heavy container runtimes.SLACK_WEBHOOK_URL: Incoming webhook URL for posting XML integrity alerts to the operations channel (required).SLACK_WEBHOOK_URL secret in your Kestra namespace.simulate_malformed_feed: false) to verify clean parsing, round-trip serialization, and audit logging.simulate_malformed_feed: true and execute to verify that the sentinel catches corrupted feeds, generates quarantine artifacts, and dispatches Slack incident alerts.COMPLIANT_INGESTION branch to automatically ingest validated records.CRITICAL_MALFORMED_XML branch for high-priority payment gateways.