Skip to main content
Solved

XML Business Rules

  • November 5, 2021
  • 2 replies
  • 441 views

Forum|alt.badge.img+8

Is there any documentation about how to use XML_MESSAGE, VALIDATION_XML_MESSAGE, VALID_IF_FOUND and ALTERNATE_XML_MESSAGE?

I have written some simple rules using only XML_MESSAGE, but If I wanted to use the other fields how do they work. 

My First question would be Does the VALIDATION XML run before or after XML MESSAGE?

When does the ALTERNATE XML run?

How do I use VALID_IF_FOUND?

 

I’m Working in FSM 6.5

Thanks!

Best answer by emil.isaksson

Hi @csanders

 

Have a look at the below knowledge base article, I think that should answer your questions. 

 

In validation XML you can perform a hierarchy XML query. Simply add a hierarchy XML select query there (e.g: to check whether a request has at least one task)

If ‘valid if found’ property is set to ‘Y’ then it will execute the XML message (1st output parameter) if hierarchy query if validation XML returns at least one row.

If no rows are returned by hierarchy query it will execute the alternate XML.

This works the opposite if you set valid if found property to ‘N’.​​

https://community.ifs.com/integration-and-customization-119/how-are-the-business-rule-xml-output-parameters-used-4268?postid=13965#post13965

​​

Regards,

Emil Isaksson

View original

2 replies

Forum|alt.badge.img+3
  • Do Gooder (Employee)
  • 6 replies
  • Answer
  • November 7, 2021

Hi @csanders

 

Have a look at the below knowledge base article, I think that should answer your questions. 

 

In validation XML you can perform a hierarchy XML query. Simply add a hierarchy XML select query there (e.g: to check whether a request has at least one task)

If ‘valid if found’ property is set to ‘Y’ then it will execute the XML message (1st output parameter) if hierarchy query if validation XML returns at least one row.

If no rows are returned by hierarchy query it will execute the alternate XML.

This works the opposite if you set valid if found property to ‘N’.​​

https://community.ifs.com/integration-and-customization-119/how-are-the-business-rule-xml-output-parameters-used-4268?postid=13965#post13965

​​

Regards,

Emil Isaksson


Forum|alt.badge.img+8
  • Author
  • Sidekick (Customer)
  • 49 replies
  • November 7, 2021

Just what I needed.  Thank you!


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