SpaceResultHandler

The SpaceResultHandler activity is used to perform asynchronous operations.

General

In the General tab, you can specify the activity name, space key, and an operation type.

The following table describes the fields in the General tab of the SpaceResultHandler activity:

Field Module Property? Description
Name No Specifies the name to be displayed as the label for the activity in the process.
Key Yes Specifies a unique key for this activity.
Note: The keys of SpaceResultHandler activities in different processes of the same project must be different.
Operation Type Yes Specifies a type of the asynchronous operation for this activity. The value can be Put, Take, Lock, or Unlock.

Description

In the Description tab, you can enter a short description for the SpaceResultHandler activity.

Advanced

In the Advanced tab, you can specify the advanced configurations, such as a sequence key and a custom job ID.

The following table describes the fields in the Advanced tab of the SpaceResultHandler activity:

Field Module Property? Description
Sequence Key Yes Specifies which processes run in order. Processes with the same sequence key are executed sequentially in the order in which the processes were created.
Custom Job Id Yes Specifies a custom job ID for the process instance. This ID is displayed in the TIBCO Administrator View Service dialog, and it is also available in the $_processContext process variable.

Output

In the Output tab, you can find the operation results.

The following table describes the fields in the Output tab of the SpaceResultHandler activity:

Output Item Data Type Description
SpaceResult Any of the following data types:
  • Boolean
  • Char
  • Short
  • Integer
  • Long
  • Float
  • Double
  • Blob
  • String
  • Datetime
Indicates the results contain the following items:
  • Tuple: returns the result of the Put, Take, Lock, or Unlock operation.
  • Error: the error returned by TIBCO ActiveSpaces during the tuple processing.
  • ASStatus: the status code returned by TIBCO ActiveSpaces functions. See TIBCO ActiveSpaces Java API Reference for more information.
  • HasError: (Boolean value) The value of true indicates that an error is returned. The value of false indicates that no error is returned.
closure Any of the following data types:
  • Boolean
  • Char
  • Short
  • Integer
  • Long
  • Float
  • Double
  • Blob
  • String
  • Datetime
Returns the closed data transferred in the asynchronous operation.
OperationType String Returns the type of the asynchronous operation. The value can be Put, Take, Lock, or Unlock.

Fault

In the Fault tab, you can find the error code and error message of the SpaceResultHandler activity. See Error Codes for more detailed explanation of the errors.

The following table describes the errors in the Fault tab of the SpaceResultHandler 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.