Solved

XML Business Rules

  • 5 November 2021
  • 2 replies
  • 371 views

Userlevel 3
Badge +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!

icon

Best answer by emil.isaksson 7 November 2021, 05:00

View original

2 replies

Badge +3

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’.​​

​​

Regards,

Emil Isaksson

Userlevel 3
Badge +8

Just what I needed.  Thank you!

Reply