> > I have seen that you can interact from WM to Java
> > in one of the following ways:
> >
> > * through variables set on the context
> > * through the $data variable
> >
> > Any other ways?
> >
> > Sorry if this is obvious,
>
> No, it is a good question...
>
> The only way to invoke a method from within a .wm file would
> be to pass a
> reference to that object in the Context. Now, I don't think
> that is a very
> good design to do that in your example. Instead, you should
> define a util
> method that has that object in it and pass that into the
> context where you
> need it.
Ok, how about defining a subclass of RunData (and modifying or
extending RunDataFactory) that adds my set of utility functions?
If this is possible, then I could just do
$data.myGreatMethod(foo, bar);
Would this be a humongous hack?
> -jon
Thanks,
--
Gonzalo A. Diethelm
[EMAIL PROTECTED]
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]