Assert Null/Not Null

Operation Name

Assert Null/Not Null

Function overview

Checks if the input source data is null.

Executed only when the log level is FINFO or below. Not executed when log level is INFO or above. Set the log level to INFO or higher to avoid execution in application.

Properties

For information about using variables, refer to "variables".
Basic settings
Item name Required/Optional Use of Variables Description Remarks
Name Required Not available Enter the name on the script canvas.  
Input data Required Not available Select the component on the script canvas.  
Required settings
Item name Required/Optional Use of Variables Description Remarks
Assert condition Required Not available Select conditions for performing assertion.
  • [Input data is not null]: (default)
    Verifies that [Input data] is not null. Raises assertion exception when [Input data] is null.
  • [Input data is null]:
    Verifies that [Input data] is null. Raises assertion exception if [Input data] is not null.
 
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 Stroes the category to which corresponding message code belongs to, when an error occurs.
  • The value defaults to null.
message_code Stores its corresponding message code of occured error.
  • The value defaults to null.
message_level Stores the severity of the corresponding message code of the occured error.
  • The value defaults to null.
error_type Stores the type of the occured error.
  • The value defaults to null.
  • Error is represented in the format depicted below.
    Example:java.io.FileNotFoundException
  • The message may vary depending on DataSpider Servista version.
error_message Stores the error message for the occured error.
  • The value defaults to null.
  • The message may vary depending on DataSpider Servista version.
error_trace Stores stack trace of the occurred error.
  • The value defaults to null.
  • The message may vary depending on DataSpider Servista version or the client application used.

Specification Limits

None.

Main exceptions

Exception name Cause Solution
AssertionException Assertion failed. Check if the [Input data] is null or not.