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?