13. dubna 2012 9:54
I am working with MDS2012.
I have created a custom workflow (c# assembly) to validate members of a specific entity.
How can I set the validation status to failed, and specify a message related to that validation ?
1. května 2012 23:57
I'm not 100% sure about this but from what I've seen, your workflow code would have to write back to MDS using its web services API and change the member attributes via code to reflect the workflow outcome. But let me know if you find out otherwise!
16. května 2012 22:54
As of now Business Rules send Email Notifications when they have a Validation Action (and it fails)
So as Henry Suggested, one way would be to have a separate attribute that has the Workflow result and have a Business Rule that monitors change to the Result Attribute and Has an Action according to the Outcome
Ex: of BR could be
WorkflowResult must be Success
So whenever your workflow fails it can update Value of WorkFlowResult attribute to Fail