Integration of Process and Quality Control using Multi-Agent Technology