leftTupleSource = (LeftTupleSource) context.get( leftInput );
}
Rule rule = new Rule( name );
final RuleTerminalNode rtn = new RuleTerminalNode( buildContext.getNextId(),
leftTupleSource,
rule,
null,
0,
buildContext );
Consequence consequence = new Consequence() {
public void evaluate(KnowledgeHelper knowledgeHelper,
WorkingMemory workingMemory) throws Exception {
}
public String getName() {
return "default";
}
};
rule.setConsequence( consequence );
rtn.attach();
context.put( name,
rtn );
} else {
throw new IllegalArgumentException( "Cannot arguments " + args );