private void setupRulemanager() throws Exception { manager = RuleUtil.getRuleManager(); RuleUtil.addImportsAndGlobals(manager); RuleUtil.addHello1Rule(manager); RuleUtil.addTestFlows(manager); manager.add( new RuleBaseElementId(RuleBaseElementType.Rule, "logtest"), "when\n Event ( name == \"test-context\")\n then \n example.doSomething(\"42\");"); }