Infact, you can make eval(true) in one of them, and put the salience property 
higher than the non-default one,
Let's say by example that your split node has two outgoings, and A is the 
default:
-A with eval(true) and priority 1000
-B with Url(score >90) priority 1

But it's described in the drools flow documentation... I suggest you to read 
it...

________________________________
De : [email protected] 
[mailto:[email protected]] De la part de eyal edri
Envoyé : lundi 21 juin 2010 14:53
À : Rules Users List
Objet : [rules-users] how to write a single constraint in split node

Hi,

i'm kind of new to Drools and still trying to build a simple process.
I'm trying to understand if (and how) it is possible to write a 'rule' 
constraint inside a split node that won't require
writing the opposite rule for the 2nd target node.

for e.g. if i have a split node with 2 target nodes,
and my 1st constraint is "Url( score > 90)" -> this will take me to target node 
1.
i want that split node will know to go target node 2 in case the score is less 
or equal to 90,
without the need to explicitly write the 2nd constraint as "Url (score <= 90)".

is that possible?

--
Eyal Edri
</PRE><p style="font-family:arial;color:grey" style="font-size:13px">This 
message contains information that may be privileged or confidential and is the 
property of the Capgemini Group. It is intended only for the person to whom it 
is addressed. If you are not the intended recipient, you are not authorized to 
read, print, retain, copy, disseminate, distribute, or use this message or any 
part thereof. If you receive this message in error, please notify the sender 
immediately and delete all copies of this message.</p><PRE>
_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to