SpEL (Advanced)

Data Hub uses the Spring Expression Language (SpEL) to greatly enhance the power of its data handling and manipulation capabilities.

During the composition process, one of your options is to use SpEL to assist with the creation of the canonical item. Using the <expression spel="true"></expression> tag in your extension XML file, you can concatenate raw model reference attributes together, for example, to create a new canonical item. For a detailed description of how to use SpEL during composition,, see Compose number 3.

SpEL has a broad range of functionality. All of it is supported by Data Hub. The supported features are:

  • Literal expressions
  • Boolean and relational operators
  • Regular expressions
  • Class expressions
  • Accessing properties, arrays, lists, maps
  • Method invocation
  • Relational operators
  • Assignment
  • Calling constructors
  • Bean references
  • Array construction
  • Inline lists
  • Inline maps
  • Ternary operator
  • Variables
  • User defined functions
  • Collection projection
  • Collection selection
  • Templated expressions

For more information about these features, see http://docs.spring.io/spring/docs/current/spring-framework-reference/html/expressions.htmlInformation published on non-SAP site