Rule Based Order Management framework based on java