Flexible Business Applications: Embedded Rule Engine and Workflow