Working with the RemoteInvoke Project

The RemoteInvoke project contains two processes: Invocable.bwp and RemoteInvoke.bwp. These two processes show how to use TIBCO ActiveMatrix BusinessWorks Plug-in for ActiveSpaces to remotely invoke the InvocableReceiver activity in a space.

RemoteInvoke.bwp Process

The RemoteInvoke.bwp process starts the remote client to invoke a member in the space. This process is designed with the following activities:

The following table describes the activities in this process:

Activity Description
Timer Starts the process.
Sleep Suspends the process on the current transition for a specified time to wait for the InvocableReceiver activity in the Invocable.bwp process to initialize within the specified time.
RemoteInvoke Remotely invokes a member in the space by using a specific Invoke method.

Invocable.bwp Process

The Invocable.bwp process receives the invocation request and responds with an invocation result. The process is designed with the following activities:

The following table describes the activities in this process:

Activity Description
InvocableReceiver Listens to the RemoteInvoke activity and receives the invocation request.
InvocableResponse Returns a tuple to the RemoteInvoke activity.