[rules-users] Can Rule call another Rule

Scott Reed sreed at avacoda.com
Thu Feb 21 10:24:48 EST 2008


The logic appears to be inconsistent: what happens when there is a gold 
task with order>10000?
Are there criteria for assigning a task to equally qualified agents?
You might consider adding a field to the task object that is a list of 
the candidate agents for the task. The rules would add or remove agents 
from the list until all the rules have fired and then one final rule 
picks one of the agents on the resulting list.

anandhakrishnan's message received 2/21/2008 9:36 AM:
> HI Scott,
>
> Thanks again for ur assistance,
>
> Ok Please tell me that if i need rules to make effective...
>
> should i go for all possible combination of rules..
>
> for eg:-
>
> condition 1: only senior executive should handle gold task.
> condition 2: managers should handle all tasks with order > 10000.
> condition 3: in case of premium or gold tasks, the task should be assigned
> to an agent who has already handled that customer before in the very recent
> past history.
> condition 4: In case of order >7000, assign to an agent with experience
> greater than 5 
>
>
> so the above are my conditions, so should i create all possible combination
> of these condition as rules.
>
> Please Help.
>
> ============================================================
>
>
> Scott Reed-3 wrote:
>   
>> Your description of the task did not include a priority field. Where 
>> does priority enter into this?
>> As I suggested earlier, it helps to have a good object model for your 
>> domain before being too concerned about the rules. The model may need to 
>> be modified to fit a rule system, but it's difficult to consider the 
>> rules without a clearly defined model.
>>
>> anandhakrishnan's message received 2/21/2008 8:52 AM:
>>     
>>> Hi Scott,
>>>
>>> thanks for ur assistance,
>>>
>>> In my case,
>>>
>>> what will happen if it is both gold account task and priority is one...
>>>
>>> some times , just gold account task might come as input...
>>> some other account type can also come as input...
>>>
>>> but still if it rule inside another rule, i could filter my check.
>>>
>>>
>>> While I am not a Drools expert, I know it's helpful to start with the 
>>> objects that the rules will work with.
>>> I do not see why you would need one rule to call another or to inherit 
>>> from another.
>>> Have you reviewed the examples to see how Drools works?
>>>
>>>   
>>>       
>> _______________________________________________
>> rules-users mailing list
>> rules-users at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/rules-users
>>
>>
>>     
>
>   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20080221/d371f425/attachment.html 


More information about the rules-users mailing list