Question

Conditional expressions in XML Business Rules

  • 21 February 2020
  • 1 reply
  • 258 views

Badge +2
  • Do Gooder (Customer)
  • 1 reply

The XML below has an expression that works.

What if I want to change this expression to have a conditional: the result must be blank if person.mobile_phone is blank.

Thanks 

<update_person>
  <person>
    <person_id>@person_id</person_id>
    <alt_email_address>@expression[person.mobile_phone + "@textmarketer.biz"]</alt_email_address>
    <insert_update is_initialized="False" />
  </person>
</update_person>

 


1 reply

Userlevel 3
Badge +8

hi Rcvs,

assuming FSM..

To accomplish that, the condition would be placed in the Input Parameters, not the XML itself.

If we looked at the example below, i would add a Input parameter for: 

  • PERSON.MOBILE_PHONE -- EQUAL --- <empty> 

this would drive the XML to only execute when that part of the condition is met. 

 

 

Reply