A knowledge-based workflow to dynamically manage human interaction in extended enterprise