0% found this document useful (0 votes)
167 views7 pages

CamelCase, XPath and Palette Functions

This document provides an overview of Camel Simple Expression Language (Simple) used in Apache Camel for message routing. Simple allows accessing message contents and properties using built-in variables and expressions. Common expressions include accessing the message body, headers, properties, and generating formatted dates. Simple supports XPath for selecting nodes and includes arithmetic and logical operators. The document also mentions Palette functions in Camel for tasks like simulation, content modification, and data conversion between formats like CSV, EDI and JSON.

Uploaded by

ashikalin
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
167 views7 pages

CamelCase, XPath and Palette Functions

This document provides an overview of Camel Simple Expression Language (Simple) used in Apache Camel for message routing. Simple allows accessing message contents and properties using built-in variables and expressions. Common expressions include accessing the message body, headers, properties, and generating formatted dates. Simple supports XPath for selecting nodes and includes arithmetic and logical operators. The document also mentions Palette functions in Camel for tasks like simulation, content modification, and data conversion between formats like CSV, EDI and JSON.

Uploaded by

ashikalin
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

SAP CPI TRAINING

MESSAGE STRUCTURE

Properties
Headers

Body
CAMEL SIMPLE EXPRESSION LANGUAGE
 Simple is a, ’simple’ expression language, that ships with the Apache Camel integration framework
 Simple is mainly used to access the contents of the message being processed and its exchange, and
to construct condition expressions in the Router step.
 Simple Expression format
 ${built in variable}
FREQUENTLY USED EXPRESSIONS
id • The ID of the message

body • The payload of the input message


header.name • The contents of the named header
property.name • The contents of the named exchange property
date:now:pattern • The formatted current date and time
exception.message • The text of the current exception
error.message • The text of the current error
XPATH EXPRESSIONS
•XPath stands for XML Path Language
•Expression Syntax
• / - Start from Root Node
• . – Select Current Node

•Supports Arithmetic and Logical Operators


• =, !=, >, <, >=, <=, and, or

•Example
• /root/row/num1[0]
• /root/row/num2 >20
PALETTE FUNCTIONS
•Simulation
•Content Modifier
•Converters
• CSV
• EDI
• JSON

•Decoder
•Encoder
QUESTIONS?

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy