VMware Cloud Community
msaxbury
Enthusiast
Enthusiast

Event Subscription condition how to set not equal to "empty"?

I have some fields on my composite blueprint provisioning a virtual machine, and I want to set a subscription to a workflow if the fields are NOT "__NULL__", or "empty" when it comes through in the payload. The fields are strings, and some say "#__NULL__#" and some are just empty, nothing between the "##" if the field is not filled out.

pastedImage_0.png

My condition for those fields is does not equal __NULL__ and does not equal with the value set to constant but empty.

Does this match nothing between the ## in the payload???

0 Kudos
3 Replies
msaxbury
Enthusiast
Enthusiast

Can you use a regular expression or asterisk for the constant value in the last box?

pastedImage_5.png

0 Kudos
daphnissov
Immortal
Immortal

While I myself don't know the answers to these questions, it should be a trivial matter to test and observe. Have you done some basic experimentation?

0 Kudos
msaxbury
Enthusiast
Enthusiast

CS.Chef.Role  contains  role[ = works

CS.Chef.Role  does not contain  empty or blank = does not work.

CS.Chef.Password  does not equal   __NULL__ = works

I have not tried CS.Chef.Role  does not equal  open and close quotes, or regex yet.

0 Kudos