public class SimpleSCXMLInvoker extends Object implements Invoker, Serializable
Invoker
for SCXML documents. Invoked SCXML document
may not contain external namespace elements, further invokes etc.Constructor and Description |
---|
SimpleSCXMLInvoker() |
Modifier and Type | Method and Description |
---|---|
void |
cancel()
Cancel this invocation.
|
SCXMLIOProcessor |
getChildIOProcessor()
Get the child IO Processor to register for communication with
the parent session.
|
String |
getInvokeId()
.
|
void |
invoke(String source,
Map<String,Object> params)
Begin this invocation.
|
void |
parentEvent(TriggerEvent evt)
Forwards the event triggered on the parent state machine
on to the invoked activity.
|
void |
setInvokeId(String invokeId)
Set the invoke ID provided by the parent state machine executor
Implementations must use this ID for constructing the event name for
the special "done" event (and optionally, for other event names
as well).
|
void |
setParentSCXMLExecutor(SCXMLExecutor parentSCXMLExecutor)
Sets the parent SCXMLExecutor through which this Invoker is initiated
|
public SimpleSCXMLInvoker()
public String getInvokeId()
getInvokeId
in interface Invoker
public void setInvokeId(String invokeId)
setInvokeId
in interface Invoker
invokeId
- The invoke ID provided by the parent state machine executor.public void setParentSCXMLExecutor(SCXMLExecutor parentSCXMLExecutor)
setParentSCXMLExecutor
in interface Invoker
parentSCXMLExecutor
- the parent SCXMLExecutorpublic SCXMLIOProcessor getChildIOProcessor()
getChildIOProcessor
in interface Invoker
public void invoke(String source, Map<String,Object> params) throws InvokerException
invoke
in interface Invoker
source
- The source URI of the activity being invoked.params
- The <param> valuesInvokerException
- In case there is a fatal problem with
invoking the source.public void parentEvent(TriggerEvent evt) throws InvokerException
parentEvent
in interface Invoker
evt
- an external event which triggered during the last
time quantumInvokerException
- In case there is a fatal problem with
processing the events forwarded by the
parent state machine.public void cancel() throws InvokerException
cancel
in interface Invoker
InvokerException
- In case there is a fatal problem with
canceling this invoke.Copyright © 2005–2015 The Apache Software Foundation. All rights reserved.