[rules-users] Can Rule call another Rule

anandhakrishnan anandhakrishnank at gmail.com
Thu Feb 21 00:34:35 EST 2008


Hi,

THe Main REASON : Assignment of task to agents..
-----------------------------------------------

request attributes/input details be

order,
city,
membership

order is the amount of purchased items
city is the place where they bought the items
membership is the account holder type.

consider tax is different for different places,
membership will be default,premium or gold
each type has its own discount

default has no discounts,
premium has 2.5% dicsounts for each purchase,
gold has 6% dicsounts for each purchase...


however tax cannot be avoided...

==================================


this is my scenario, Please help me to frame rules accordingly


Agents attributes

agents are the people who are gonna work on these request attributes..

agent_role: executive,senior executive,manager
experience:
average handling time:


==================================

task == an purchase event

RULES needs to be considered:
-----------------------------

only senior executive should handle gold task.

managers should handle all tasks with order > 10000.

if priority is 1, agent with maximum yrs of exp should work.

in case of premium or gold tasks, the task should be assigned to an agnet
who has already handled that customer before in the very recent past
history.

In case of order >7000, assign to an agent with experience greater than 5






QUESTIONS SHOULD BE ANSWERED BY THE RULES
=========================================


what happen a purchase event occurs for gold account.
what happen a purchase event occurs for premium account.
what happen a purchase event occurs for default account.


what happen a purchase event occurs for gold account task greater that 10000
order amount.

what happen a purchase event occurs for gold account with priority 1 occurs.

what happen a purchase event occurs for any account with order amount  >
7000.


what happen a purchase event occurs for premium account with priority 1
occurs.


what happen a purchase event occurs for default account with priority 1
occurs.

consider some other cases....






Basically, the answer is no. Perhaps if you explained what you are 
trying to accomplish, someone here could help you out.

-- 
View this message in context: http://www.nabble.com/Can-Rule-call-another-Rule-tp15586633p15605129.html
Sent from the drools - user mailing list archive at Nabble.com.




More information about the rules-users mailing list