davsclaus opened a new pull request, #78: URL: https://github.com/apache/camel-jbang-examples/pull/78
Rung two of CAMEL-24808. Six examples under `transform/`, four new and two rewritten and moved in, all on the shop's order from rung one: - **json-transform**: jsonpath reads the order id and the number of lines into headers, jq builds the warehouse pick list with only sku and quantity per line. - **xml-to-json**: a supplier's XML order in the inbox becomes the shop's JSON with the Jackson XML and JSON data formats, no mapping code. The way back needs a class for the root element and is left for the bean examples, which the README says. - **csv-to-json**: a CSV of invoices in the inbox is read with the CSV data format, the header line naming the fields, split into one message per invoice, logged as JSON and written to the outbox as one file per invoice. - **data-mapping**: the order mapped field by field to the courier's shipment format by `shipment-mapping.groovy`, loaded with `resource:file:`: renamed fields, a nested recipient, one parcel per line, a computed total, a service chosen from the country. - **groovy** (from `language/`): two orders, one with a valid customer email and one without, checked by a Groovy expression with Apache Commons Validator, a third-party library declared in `application.properties`. - **xslt** (from `transformation/`): the supplier's XML order becomes the warehouse packing slip through `packing-slip.xsl`, one item per line and the total pieces. Each has the ladder README, metadata with `level: transform` and `teaches`, a Citrus YAML test the Camel CLI runs, and a CI matrix entry. All validate as canonical YAML, the log lines in the READMEs are the ones the routes print, and the six tests pass locally through `camel test run`. The csv-to-json outbox is ignored by git. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01Bp3538HRBPMQkb5ta9xRaj -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
