You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by "Dark.Rider85" <da...@yahoo.de> on 2011/10/26 15:59:57 UTC

[SCXML] element

Hi!
I dealt with the <invoke> element of scxml a little. That element is 
used to call external services. I was thinking about calling an external 
service of the type "scxml" but I have no idea how to do that properly. 
I consulted the working draft but it did not really help me. I have 
problems in understanding the way to use it. Do I have to provide an 
implementation which extends "Invoke"? Is there any simple example which 
illustrates the proper use of the invoke element? Or should I use 
another way to call that external service of the type scxml?

Thanks in advance!

Best regards

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Re: [SCXML] element

Posted by Rahul Akolkar <ra...@gmail.com>.
On Wed, Oct 26, 2011 at 9:59 AM, Dark.Rider85 <da...@yahoo.de> wrote:
> Hi!
> I dealt with the <invoke> element of scxml a little. That element is used to
> call external services. I was thinking about calling an external service of
> the type "scxml" but I have no idea how to do that properly.
<snip/>

Type "scxml" is reserved and has specific semantics of invoking
another state machine. If your external service isn't one, you should
use a different type that you define and register an Invoker
implementation for that type with the executor.


> I consulted the
> working draft but it did not really help me. I have problems in
> understanding the way to use it. Do I have to provide an implementation
> which extends "Invoke"? Is there any simple example which illustrates the
> proper use of the invoke element? Or should I use another way to call that
> external service of the type scxml?
>
<snap/>

The interface is called org.apache.commons.scxml.invoke.Invoker, you
can read more here [1] and click on the "Frames" click top right to
browse the rest of that Java package.

-Rahul

[1] http://commons.apache.org/scxml/0.9/apidocs/org/apache/commons/scxml/invoke/Invoker.html


> Thanks in advance!
>
> Best regards
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org