none
how ro create rule & policy RRS feed

All replies

  • Hi,

    I can recommend you the codeproject article Developing with the Microsoft Business Rule Engine and this post by Meil Thompson.

    HTH

    Regards,

    Steef-Jan Wiggers
    MVP & MCTS BizTalk Server 2010
    http://soa-thoughts.blogspot.com/
    If this answers your question please mark it accordingly


    BizTalk
    Sunday, August 21, 2011 10:53 AM
    Moderator
  • tanks for your answer

    but I don't Opinion

    i want that immediately Business Rule Composer in .net

    and store in database Rule engine

    Sunday, August 21, 2011 11:03 AM
  • But why do you need to build your own business rules composer, whats wrong with the one that we get out-of-box. Cheers
    --------------------------------------
    Mark As Answer or Vote As Helpful if this helps.
    Sunday, August 21, 2011 11:21 AM
  • i'm sorry

    i Opinion was in last post that how to Implementation Business Rule Composer with programmatically in .net


    Sunday, August 21, 2011 12:00 PM
  • how to Implementation Business Rule Composer  programmatically in .net
    Sunday, August 21, 2011 1:53 PM
  • namely i want that in .net create rule and policy programmatically (maybe with API Biztalk) and store in database

    please help me

    Sunday, August 21, 2011 3:10 PM
  • Hi,

    Yes you can use/access BizTalk BRE API directly, see this post. You do need to install BizTalk BRE feature first otherwise you do not have the BRE assemblies.

    HTH

    Regards,

    Steef-Jan Wiggers
    MVP & MCTS BizTalk Server 2010
    http://soa-thoughts.blogspot.com/
    If this answers your question please mark it accordingly


    BizTalk
    Sunday, August 21, 2011 3:17 PM
    Moderator
  • tanks for your answer

     

    can you help me more or show me a sample of it

    Sunday, August 21, 2011 3:55 PM
  • Hi,

    Here is the sample:

    http://blogs.msdn.com/b/rgarg/archive/2009/04/23/using-biztalk-business-rules-engine-bre-with-database.aspx

    Abhijit


    Abhijit Mahato - Microsoft Community Contributor 2011 - MCTS BizTalk Server blog: http://abhijitmahato.wordpress.com/ Please "Mark as Answer" if Post has Answered the Question
    Monday, August 22, 2011 4:54 AM
  • Take a look at these links

    BRE vocabularies from .Net 

    Calling BRE from .Net

    Cheers,

    Bali


    --------------------------------------
    Mark As Answer or Vote As Helpful if this helps.
    Monday, August 22, 2011 5:39 AM
  • tanks for your answer

    i need a sample that with programmatically create a Policy & rule

    that save in database

    please help me

    Tuesday, August 23, 2011 9:56 AM
  • Hi,

    There is a sample in the Biztalk SDK Samples folder (C:\Program Files\Microsoft BizTalk Server 200x\SDK\Samples\Business Rules) using the Microsoft.RuleEngine to create a rule, then persist it to an XML file (using the Business Rules Language (BRL) schema). x depends on BizTalk version. It uses the Rule API, but I can not tell if you could edit Biztalk policies via this library. Perhaps you can leverage this sample.

    HTH

    Regards,

    Steef-Jan Wiggers
    MVP & MCTS BizTalk Server 2010
    http://soa-thoughts.blogspot.com/
    If this answers your question please mark it accordingly


    BizTalk
    Tuesday, August 23, 2011 10:01 AM
    Moderator
  • tanks for your answer

    i visited it sample

    but i need that calling a rule of database and store in database

    please help me

    Tuesday, August 23, 2011 10:54 AM
  • i create a policy and rule with this code:

     

     Equal eq = new Equal(new Constant(TextBox1.Text), new Constant(TextBox2.Text));

         
            ActionCollection ac = new ActionCollection();
     
            ClassBinding lstClass = new ClassBinding(typeof(List<int>));
            ArgumentCollection argc = new ArgumentCollection();
            argc.Add(new Constant(Convert.ToInt32(TextBox3.Text)));
            ClassMemberBinding add = new ClassMemberBinding("Add", lstClass, argc);
           
            UserFunction uf = new UserFunction(add);
            ac.Add(uf);

            Rule rl = new Rule("AddToList", eq, ac);

            RuleSet rs = new RuleSet("GenericTest");
            rs.Rules.Add(rl);
            List<int> lst = new System.Collections.Generic.List<int>();
                
            PolicyTester pt = new PolicyTester(rs);

            pt.Execute(lst);

            foreach (int i in lst)
              Response.Write(i);

     

    now :

    1- Is this the right way?

    2- if true ,how to i can store in database the rule and policy

     

    please help me

    Wednesday, August 24, 2011 5:12 AM