These conditional Ruleset Actions are commonly used to control the flow of your integration based on certain conditions. They are expressed as boolean expressions, and they help to decide and execute operations on your data based on whether the conditions are true or false.
These conditional actions are especially useful in control flow statements such as if statements, while loops, and for loops.
Note on data types
- Simple data types include String, DateTime, Element, and Field.
- Composite data types include Segment, Segment Group, Row, Record, and Record Group.
IsEmpty
Used to condition a Rule based on the non-availability of data. Returns a boolean of true if sourceNode is empty. The trimValue property defaults to a Boolean value of true, which trims the sourceNode value before executing. Used with String, DateTime, Element, and Field.
The opposite of IsEmpty. For Simple data types returns a Boolean value of true if the sourceNode data is present; the trimValue property defaults to a Boolean value of true, which trims the sourceNode value before executing.
IsNotNull
Used to check if the sourceNode data points to a non-null value. For all data types returns a Boolean value of true if the sourceNode data is present.
IsNotNullOrWhiteSpaces
For all data types returns a Boolean value of true if the sourceNode data is present.
IsNull
The opposite of IsNotNull. Used for all data types, this returns a Boolean value of true if the sourceNode data is not present. This action is generally useful for simple data types only (String, DateTime, Element, and Field).
IsNullOrWhiteSpaces
The opposite of isNotNullOrWhiteSpaces.
For Composite data types: returns a Boolean value of true if the sourceNode data is not present.
For Simple data types: returns a Boolean value of true if the sourceNode data is null or only contains white spaces.
Comments
0 comments
Please sign in to leave a comment.