[rules-users] Call a function from a function?

Michael Katai mk.others at gmx.at
Mon May 19 08:58:01 EDT 2008


Hello!

Is it possible to call a Function in a Function?

For example:

  rule
    when
    then
      func1(data1, data2);
  end

  function void func1(MyClass1 data1, MyClass2 data2)
  {
    func2(data1, data2);
  }

  function void func2(MyClass1 data1, MyClass2 data2)
  {
  }

When I do so, i get the error message:

func1 : Function Compilation error
func1 (line:x): The method func2(MyClass1, MyClass2) is undefined for the
type Func1

Any suggestions?
michael




More information about the rules-users mailing list