Question
· May 21, 2018

Routing Rule Usage - Can we use Functions and Methods with multiple parameters and refer objects by reference as parameters inside Routing rule ?

Routing Rule Usage -

Can we use Functions and Methods with multiple parameters and refer objects by reference as parameters inside Routing rule ?

How do we handle DB related workflows in Business Rules ?
How can we perform Response object based handling in Business Rules ?
Can we try by extending methods with Ens.Util.FunctionSet and pass in the Context object from the rule as a parameter for certain functions ? 
Can we split the Business Operations into methods that can be used from the routing rules and create the message route request flow ?

My understanding - Inside a rule we can refer only to the properties inside a Context object . 
 

Thank you.

Discussion (1)1
Log in or sign up to continue

Complex workflows that include database interaction and response handling are better suited for a Business Process / BPL, and you have complete access to the request and response objects there. You can conditionally route to as many target operations as you desire as well. Is there a reason you would prefer to do all of this through a routing rule?