You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Switch not working on empty value

edited Oct 10, 2017 7:00AM in Integration 2 comments

Summary

Switch not working on empty value

Content

Hi everybody,

I've a Switch for checking if a field is present in the request, but when the field is not in the request it's behaving like it had a value. If in the request the field is present but empty it works fine. The problem is that this field is not mandatory and the calling user may not enter it in the request.

My switch expression: /nssrcmpr:createUpdateAccount/nssrcmpr:arg0/nssrcmpr:partyId = ""

If I have <acc:partyId></acc:partyId> in the request it works fine

But if I don't have <acc:partyId> element is entering in the 'Otherwise' branch

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!