Event-based scheduling method and system for workflow activities