Display validation error in activity designer inheriting from WorkflowViewElement RRS feed

  • Question

  • Hi,

    All my custom activities derive from WorkflowViewElement rather than ActivityDesigner.  However, I would like to display any validation errors on my designer, in a similar manner to what ActivityDesigner based activity designers do by default.  I saw Matt's post, which describes how to implement a custom validation error service.  I suppose I could create one, and have the implemetation of ShowValidationErrors walk the model item tree, updating each custom activity as needed based on the information in ValidationErrorInfo.  Is this the best approach?  Also, looking at ValidationErrorInfo there doesn't seem to be a clear indication where the source of the error is, so I'm not sure how I would reliably match errors against a given activity.



    Friday, June 25, 2010 9:04 PM


All replies