A tryRules command consists of zero or more rules.
A rule consists of zero or more commands.
The rules of a tryRules command are processed in top-down order. If one of the commands in a rule
fails, the tryRules command stops processing of this rule, backtracks and tries the next rule,
and so on, until a rule is found that runs all its commands to completion without failure (the
rule succeeds). If a rule succeeds the remaining rules of the current tryRules command are
skipped. If no rule succeeds the record remains unchanged, but a warning may be issued (the
warning can be turned off) or an exception may be thrown (which is logged and ignored in
Because a command can itself be a tryRules command, there can be tryRules commands with commands,
nested inside tryRules, inside tryRules, recursively. This helps to implement arbitrarily complex
functionality for advanced usage.
Creates and returns a command rooted at the given morphline JSON config.
The command will feed records into child. The command will have
parent as it's parent. Additional parameters can be passed via the morphline