Working with the IterateResultSet Project

The IterateResultSet project contains a process that shows how to use ActiveMatrix BusinessWorks Plug-in for ActiveSpaces to handle the output of a batch operation.

The process is designed with the following activities:

The following table describes the activities in this process:

Activity Description
Start Starts the process.
Put Stores a batch of rows into the table.
  • If an error occurs during the Put operation, the group iterates over every result parameter in the Output tab of the Put activity.
  • If no errors occur during the Put operation, the PutAgain operation is performed.
SuccessLog Writes a message to the SucessTuple.txt file when the value of the HasError parameter in the Output tab of the Put activity is false.

The SucessTuple.txt file is located in the ASBW_HOME/samples/logs directory.

Note: If an error occurs during the Put operation, the IterateTheTuples(1) group iterates over every result parameter in the output of the Put activity.
FailedLog Writes a message to the FailedTuple.txt file when the value of the HasError parameter in the Output tab of the Put activity is true.

The FailedTuple.txt file is located in the ASBW_HOME/samples/logs directory.

Note: If no errors occur during the Put operation, perform the PutAgain operation.
PutAgain Stores another batch of rows into the space.
Note: If an error occurs during the PutAgain operation, the IterateTheTuples(2) group iterates over every result parameter in the output of the PutAgain activity.
SuccessLog2 Writes a message to the SucessTuple.txt file if the value in the HasError parameter under a result is false.
FailedLog2 Writes an error message to the FailedTuple.txt file if the value in the HasError parameter under a result is true.
End Ends the process.