Skip to main content
Question

Conditional expressions in XML Business Rules

  • February 21, 2020
  • 1 reply
  • 281 views

Forum|alt.badge.img+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

Forum|alt.badge.img+8
  • Hero
  • 30 replies
  • February 21, 2020

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings