Question on rule activation

151 views
Skip to first unread message

Vallabh

unread,
Feb 25, 2014, 7:58:56 PM2/25/14
to no...@googlegroups.com
Hello, I find Nools exciting for Browser usage. Wanted to leverage for my project. Ran into a limitation of Nools or lack of understanding on my part while evaluating.

I have a fact with array of objects and have two rules applicable for two different objects of the array. In this situation, only one of them is activation and fired. Whereas, I was expecting both to get activated and fired. Am I missing something?
Greatly appreciate any help in solving this.

Sample Code:
define Model{
      Name: "ModelName",
      Data:{
                       [
                            Code:"",
                            Value:""
                       ],
                SelectedValue:{
                                           Code:"",
                                           Value:""
                                      }
             }
}

Rule 1 {
When{
        From Model Array if selected value is xxxxx
}
then{
do something...
}
}

Rule 2 {
When{
        From Model Array if selected value is yyyy
}
then{
do something...
}
}

Among the two rules only one of them gets fired although the rule condition applies to different objects in the array.
Reply all
Reply to author
Forward
0 new messages