Question Jimmy Christian · Aug 1, 2019

Constraint Editor Business Rule Source

Hello Community,

For the Business Rules in a process i want to use a constraint where source could be FromA or FromB.

But looks like the constraint does not allow multiple source values.

Is there a way to provide multiple source in Constraint? Or is there a way in Rules to identify the Source ?

Thanks

Jimmy Christian

Comments

Paul Hegel · Aug 1, 2019

I've noticed this as well, it seems you have two choices:

  1. Duplicate the rule using a different source on the new rule.  
  2. Ignore the source and use other parameters in the message and/or use a rule function to decide on the routing of the package.   
    • Your class should Extend Ens.Rule.FunctionSet 
    • For example your functioin could use a lookup table to decide your routing

With the use of functions you might be able to accomplish exactly what you want.

Paul

0
Jeffrey Drumm · Aug 1, 2019

You can use the Source property to identify the component that sent the message into the router:

0
Jimmy Christian  Aug 2, 2019 to Jeffrey Drumm

Thank you Jeffrey.  This is very helpful.

I didnt realize we can use Source property in the Condition.

0
Neerav Verma  Aug 2, 2019 to Jimmy Christian

Also if you do not do  a Return,  multiple rules will be executed unless none is met or some rule does a return.

0