此内容没有您所选择的语言版本。
3.8. Configuring an MVEL ruleBase
- To configure an MVEL ruleBase, see the code below:
<?xml version="1.0"?> <smooks-resource-list xmlns="http://www.milyn.org/xsd/smooks-1.1.xsd" xmlns:rules="http://www.milyn.org/xsd/smooks/rules-1.0.xsd"> <rules:ruleBases> <rules:ruleBase name="order" src="/org/milyn/validation/order/rules/order-rules.csv" provider="org.milyn.rules.mvel.MVELProvider"/> </rules:ruleBases> </smooks-resource-list>
- You must store your MVEL rules in CSV files. The easiest way to edit these files is through a spreadsheet application such as LibreOffice Calc or Gnumeric. Each rule record contains a rule name and an MVEL expression.
- If you wish to create comment and header rows, prefix the first field with a hash (#) character.