The workflow management system can improve enterprise's productivity and working efficiency.The workflow engine is the core of the workflow management system.This paper realizes a workflow engine based on Microsoft's cooperative platform: SharePoint
using XML Template with embedded C# code to define workflow
using agent service to realize the engine's logic components.Users can easily define their workflows and extend existing systems' interface by defining new port.This engine ensures the workflow management system's flexibility and extensibility.