The rulebase metadata contains information necessary to execute the rules in a rulebase. The metadata can include:
actf:scriptlang
attribute.
Supporting scripts are then defined within the actf:scripts
tag.
This is an ideal location to define functions that are used repeatedly by the scripting engine.
Also, Adding Scripts to Rules
can permit validation rules to articulate complex and semantically rich criteria.