Is there a way to add member functions to a Drools declared type? That is, I'd like to say something like:
declare Foo
bar : int
plugh : String
function String greeting()
{
return "Hello "+plugh+"!";
}
end
That doesn't work (or I wouldn't be writing this post), but do I just have the syntax wrong, or is there no way to do that in Drools?
JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)