Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

How to evaluate process input string?


Level 2


I will need to do database queries in web service using input string as query parameters.

But I need different queries depends on the input string values:

e.g. input1, input2

if input2 is empty or null, then do query one,

if input 2 has value then do query two.

But I don't know how to evalue a string input is null or empty string or with value.

Can any one help?

Many thanks


0 Replies


Level 4

Can you use a DecisionPoint and set up different route conditions for each possible query?


Level 2

Thank you for the reply.

I made it work by using Set Value then route conditions.

I assign the string length to a process integer. then check if the integer is 0 or not.

But I am not sure what form will submit when user didn't give a value. will firm submit "null"  or empty string, Can I define empty string as default value?

on form field?

Thanks again.


Level 10

It will submit an empty string. There is no concept of null in xml data. Everything is treated as a string.