From 5fc000e14b7e2ea6705ce2c4e4e145c67c7bffe1 Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Thu, 26 Sep 2013 08:15:26 +0200 Subject: [PATCH] Add sample rulebook --- test.rulebook | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 test.rulebook diff --git a/test.rulebook b/test.rulebook new file mode 100644 index 0000000..197a68b --- /dev/null +++ b/test.rulebook @@ -0,0 +1,31 @@ +remote + => $type = "error" + => $scope = "software" + => @DoSomethingAboutError + => #errors + => $type = "task" + => $attr[command] = "convert" + => $attr[original_filetype] = "ogg" + => :RoundRobin + => *abcde-fghij-00000-00001 + => *abcde-fghij-00000-00002 + => $attr[category] = "video" and ($attr[original_filetype] = "mpeg" or $attr[original_filetype] = "mpg") + => :RoundRobin(*mpeg_nodes) + => $attr[command] = "whois" + => :WhoisDistributor(*whois_nodes) + => $attr[command] = "dummy" + => :RoundRobin + => @ExtensionMethodOne => #dummy_results + => @ExtensionMethodTwo => #dummy_results + => $tags has "flag" + => @LogFlag + +self + => $type = "error" or $type = "warning" + => #errors + +errors + => *logging_nodes + +dummy_results + => @SaveToDatabase