|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface defines a named connection with a process that can be used to receive messages from activities and send messages to activities.
Note that messages sent from the workflow engine to clients on a channel may be lost when no client has opened the channel.
Method Summary | |
java.lang.String |
name()
Return the channel name. |
Process |
process()
Return the process this channel belongs to. |
java.util.Map |
receiveMessage()
Wait for the next message from the process on this channel. |
java.util.Map |
receiveMessage(long timeout)
Wait for the next message from the process on this channel within the specified timeout interval. |
void |
sendMessage(java.util.Map msg)
Send a message on this channel to the process. |
Method Detail |
public Process process() throws InvalidKeyException, java.rmi.RemoteException
InvalidKeyException
- if the process no longer exists
java.rmi.RemoteException
- if a system-level error occurspublic java.lang.String name() throws java.rmi.RemoteException
java.rmi.RemoteException
- if a system-level error occurspublic java.util.Map receiveMessage() throws java.rmi.RemoteException
IN
or INOUT
parameters of the sender tool, stored in the
Map
object by formal parameter name.
null
if the process has
been closed or removed
java.rmi.RemoteException
- if a system-level error occurspublic java.util.Map receiveMessage(long timeout) throws java.rmi.RemoteException
IN
or INOUT
parameters of the sender tool, stored in the
Map
object by formal parameter name.
timeout
- the timeout value in milliseconds. A timeout
of zero never expires.
null
if the process has
been closed or removed or the timeout expires
java.rmi.RemoteException
- if a system-level error occurspublic void sendMessage(java.util.Map msg) throws InvalidKeyException, InvalidDataException, java.rmi.RemoteException
The message sent is mapped to the formal OUT
parameters of the receiver tool by matching the parameter names
with the data entry names in the message.
msg
- the message
InvalidKeyException
- if the process no longer exists
InvalidDataException
- if the message contains invalid data, i.e.
entries that do not match the name of a formal parameter
java.rmi.RemoteException
- if a system-level error occurs
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |