Combining business process with intelligent applications