At present,hard-coding is adopted in most payroll system,it is too dependent on wage policy,which makes the system dificult to update and maintain.To slove this problem,this paper prensents a payroll system based on rules.First,we establish a executable rule base with the Drools rules engine components,the rule base corresponds to business requirements and policies;then,the execution of regular flow control rules can make it more flexible to adapt to the changes of calculation logic.It is proved that the system can promote the decoupling,the expansion and update of the salary system.In additio...