BRE Function Customisation

Home Page Forums BizTalk 2004 – BizTalk 2010 BRE Function Customisation

Viewing 2 reply threads
  • Author
    Posts
    • #14649

      I have recently started trialing the Biztalk 2006 BRE for use within .NET apps and am so far impressed (I am working with .NET class instances). However, I would like to create a new Function (I think, based on the abstract TemporalFunction class). I cannot find any examples or documentation of use and cannot work out what methods to override or properties to set from the SDK documentation. Has anyone done this?

      I am trying to compare two dates with one of the following complications:
      i) compare the two dates after adding a time period to one of them, i.e. 12hours.
      ii) compare the two dates where one date has been amended via a relative method, for example, to the preceeding Friday at 10.00.

      I assume that this could be done by some clever rule chaining but I really need to provide a user/BA with a simple function as it will be used regularly.

    • #14650

      Sorted the problem – I had the wrong end of the stick. Just need to have a method on a .NET object and add this as a vocabulary (either through the BRE or the API (using the UserFunction).

    • #15852

      Hi, I would really like to know how you did it?  What I'm trying to do this is following.

       Problem:  Needs to access some value from .NET class while processing the rules.

      Approach:  I created a class library with one property called public string getData {get{return "Hello World";";}}

                       I registered the resulting dll in the GAC tool.

                       I then created a new Vocabulary in the BizTalk Rules engine and added a definition of to retrieve data from .NET Class.

                       I then selected my DLL using the BROWSE button.

                       When I'm using this vocabulary in my rules, the string "Hello World" is not being returned? Also I think the whole rule cease to executed     if I use my new vocabulary.

       

      I'm not sure what is happening.  Any help will be appreciated.

       

      Iftikhar.

       

                     

Viewing 2 reply threads
  • The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.