commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Javier Rodríguez Escolar" <javiesco...@gmail.com>
Subject Re: [SCXML]invoke method with arguments
Date Mon, 07 Jul 2008 15:35:28 GMT
Hello,

I don't know if it represents the best possible option, but one alternative
could be as follows:

-Create a custom action (i.e InvokeMethod) extending from Action and
implementing the ExternalContent interface.

-Implement the "execute" method so as it takes all the attributes defined in
the InvokeMethod element (class name, method name, ...) and use the
Java.lang.Class to call this method. Extending from ExternalContent will
allow you define the arguments as child nodes in the SCXML definition and
get them as a list of (external namespaced) child nodes in your "execute"
method.

Regards,

Javi.


2008/7/7 amina mimouni <amina.mimouni@gmail.com>:

> Hello,
>
> I have question about how invoking method with argument in scxml by Java
> libraries or xml declaration
>
> regards,
>
> Amina
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message