Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 740 Bytes

README.md

File metadata and controls

24 lines (17 loc) · 740 Bytes

About

This is an example that illustrates how Smooks can be used to validate xml message fragments.

What this example illustrates is:

  1. How to create a set of Regex and MVEL "ruleBases" (in the "rules" folder).
  2. How to define localized messages for the rules defined in your ruleBases.
  3. How to config your ruleBases in your Smooks configuration.
  4. How to target validation rules at specfic message fragments.

See:

  1. The "Main" class in src/main/java/example/Main.java.
  2. The input message in input-message.xml.
  3. The code in the src/main/java folder tree (.java).
  4. smooks-config.xml.
  5. The rules in rule message bundles in the "rules/i18n" folder.

How to run?

  1. mvn clean package
  2. mvn exec:exec