Compare Variables

Operation Name

Compare Variable

Function Overview

Compare variables and fixed values based on conditions.

Properties

For details on use of variables, refer to “Variables”.
Basic settings
Item name Required/Optional Use of variables Description Remarks
Name Required Not available Enter the name to show on the script canvas.  
Required settings
Item name Required/Optional Use of variables Description Remarks
Condition list Optional - Specify conditions.

Each column can be operated with the following buttons.
  • [Add]:
    Add a column.
  • [Up]:
    Move the selected column upwards by one row.
  • [Down]:
    Move the selected column downwards by one row.
  • [Delete]:
    Delete the column.
  • Refer to Conditions for more details.
  • When an error occurs at a condition, conditions after that will not be tested.
Condition list/Target Required Available Specify target as a variable or a fixed value.  
Conditions list/Data type Required Not available Select a data type.
Refer to “Data Types” for more details.
 
Condition list/Condition Required Not available Select a condition.
Refer to Value Conditions for more details.
 
Condition list/Expected value Optional Available Specify expected value as a variable or a fixed value.  
Comment
Item name Required/Optional Use of variables Description Remarks
Comment Optional Not available You can write a short description of this adapter.
The description will be reflected in the specifications.
 

PSP Usage

PSP is not supported.

Available Component Variables

Component variable name Description Remarks
message_category When an error occurs, the corresponding message code's category is stored.
  • Default value is null.
message_code When an error occurs, the corresponding message code is stored.
  • Default value is null.
message_level When an error occurs, the corresponding message code's severity is stored.
  • Default value is null.
error_type When an error occurs, the error type is stored.
  • Default value is null.
  • The error type will be in the following format.
    Example: “java.io.FileNotFoundException”
  • The contents that will be stored may vary depending on DataSpider Servista versions.
error_message When an error occurs, the error message is stored.
  • Default value is null.
  • The contents that will be stored may vary depending on DataSpider Servista versions.
error_trace When an error occurs, the error's trace information is stored.
  • Default value is null.
  • The contents that will be stored may vary depending on DataSpider Servista versions and client applications.

Specification Limits

None.

Major Exceptions

Exception name Cause Solution
AssertionException [Target] does not match [Expected value] in [Condition]. Check the error message.
UnsupportedOperationException [Condition] is unavailable for the specified [Data type]. Check [Condition] or [Data type].