webMethods

webMethods

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only

Check for Empty String in Integration Server Flow Services 

Sat November 25, 2023 05:58 AM

products versions - webMethods Integration Server (all versions)

Introduction

One of the most frequent tasks, when developing an integration solution, is to check whether a field contains data or is empty. This video shows an easy way to perform such a check in a Flow Service on webMethods Integration Server.

Pre-requisite

An Integration Server development environment must be available, but other than that no particular requirements exist.

Steps to follow

Instead of evaluating an expression like

(%customerRecord/addressList/shippingAddress/location/street% != $null) &&
(%customerRecord/addressList/shippingAddress/location/street% != "" )

you can simply use the following regular expression

/.+/

It evaluates to true if one or more characters are found in a field.


#webMethods
#tutorial
#Integration-Server-and-ESB

Statistics
0 Favorited
0 Views
0 Files
0 Shares
0 Downloads

Comments

Sat November 25, 2023 08:18 AM

@jahntech.cj

/[^ ]/ - We can also use this expression to validate if the provided input is not null or empty or spaces [ \t\r\n ] .


#webMethods
#tutorial
#Integration-Server-and-ESB