change static function PrepareWorlflowUI of WorkflowEngine

change static function PrepareWorlflowUI of WorkflowEngine