Reuse policies and rules

We are going to have a large number of workflows. Within these workflows we will have policies with rulesets used to validate the data and evaluate against business policy.

A number of the rules are common to many policies and a number of policies are common to workflows. I cannot find a way to reuse a rule in several policies or reuse a policy in other workflows.

Suggestions

thanks
Don



Answer this question

Reuse policies and rules

  • michael aird

    You can reuse the rules in workflows if you externalize your rules. The external ruleset demo has a custom policy that fetches rules from a database. You could potentially do something like that. If you would like code samples, send me mail - kavitak at microsoft dot com

  • Darko01

    Maggie Ying - MSFT wrote:

    Or do you need general debugging instructions, i.e. how to attach the debugger




    yeah right... and to tie my shoes too.


    Problem has been corrected. Needed a namespace in the xml file.

  • GS80

    There is also a Policy From File sample - http://wf.netfx3.com/files/folders/rules_samples/entry8850.aspx

    This is a new one we posted, may be you dont have to modify it at all :) Good luck,

    Kavita



  • SSreejith

    Thanks - I found the external ruleset editor demo, I will mod it for reading from a file rather than a database. I think this will help.

    thanks
    Don



  • Alan Robbins

    Kavita, this sample looks good. I am trying to use it within my workflow, but when in the RuleHelper the serializer attempts to deserialize the object it returns nothing.

    Any suggestions on how to debug

    thanks
    Don


  • Cush

    Can you give more information i.e. xoml, code, etc

    Or do you need general debugging instructions, i.e. how to attach the debugger



  • Reuse policies and rules