Take
The Take activity is used to retrieve and remove tuples from a space.
General
In the General tab, you can specify the activity name, a space connection, and whether to enable the Compare And Take and Async Operation options.
The following table describes the fields in the General tab of the Take activity:
Field | Module Property? | Description |
---|---|---|
Name | No | Specifies the name to be displayed as the label for the activity in the process. |
Space Connection | Yes | Click the
icon to select a space connection that defines how the application joins the space.
Tuples are retrieved and removed from the space with the defined distribution role of the selected space connection. If no matching space connections are found, click Create Shared Resource to create one. See Creating a Metaspace Connection for details. |
Compare And Take | No | Select this check box to enable the
compareAndTake operation. This check box is not selected by default.
The compareAndTake operation is a conditional Take operation. In the space, the compareAndTake operation queries and removes the tuples that contain the same field values as the tuple you have provided in the Input tab. See TIBCO ActiveSpaces Developer's Guide for details. |
Async Operation | No | Select this check box to enable the asynchronous operation. After this check box is selected, the SpaceResultHandler activity is triggered. This check box is not selected by default. |
Advanced
In the Advanced tab, you can specify the advanced configurations, such as the lock time, whether or not to lock the tuple, and so on.
The following is the Advanced tab of the Take activity:
Field | Module Property? | Description |
---|---|---|
Lock Wait(milliseconds) | Yes | Specifies the amount of time in milliseconds the Take operation waits for the lock to be cleared if the tuple has been locked.
The value of the Lock Wait(milliseconds) field overwrites the value in the Lock wait (milliseconds) field, which is specified in the Advanced tab of the Space shared resource. The default value of -2 or a null value indicates that the value set in the Lock wait (milliseconds) field is not overwritten. |
Forget | Yes | Specifies whether to return tuples in the Output tab. If you select this check box, no tuples are returned in the Output tab. |
Lock | No | Select this check box to lock tuples after they have been stored by the Take activity.
When you select the UnLock check box, this check box is disabled. |
UnLock | No | Select this check box to unlock the locked tuples before performing a Take operation on them.
When you select the Lock check box, this check box is disabled. |
Route | Yes | Select this check box to update tuples to another site and receive a status message.
See TIBCO ActiveSpaces Developer's Guide for details. |
Space Result Handler Key | Yes | Specifies the key of the SpaceResultHandler activity, which is used for the asynchronous operation.
This field is displayed only when you select the Async Operation check box in the General tab of the Take activity. |
Input
The following table describes the fields in the Input tab of the Take activity:
Output
In the Output tab, you can find the operation results.
The following table describes the fields in the Output tab of the Take activity:
Fault
In the Fault tab, you can find the error code and error message of the Take activity. See Error Codes for more detailed explanation of the errors.
The following table describes the errors in the Fault tab of the Take activity:
Error Schema Element | Data Type | Description |
---|---|---|
msg | String | The TIBCO ActiveMatrix BusinessWorks Plug-in for ActiveSpaces error message. |
msgCode | String | The TIBCO ActiveMatrix BusinessWorks Plug-in for ActiveSpaces error code. |
ASStatus | String | The status code returned by TIBCO ActiveSpaces functions.
See TIBCO ActiveSpaces Java API Reference for more information. |