Calling Business Rules in Biztalk Mapper Extension

Hi,
We have BizTalk map which uses Custom XSLT & Custom extension xml. From the mapper extension class file we are executing policy like below.
public string GetQRDAInfo_MeasureGuid(string pMeasureId)
{        return CallQRDA_GUID(pMeasureId).CnefMeasure ?? string.Empty; 
 private QRDA_GUID CallQRDA_GUID(string pMeasureId, int pLoop = 1)
 var qrda = new QRDA_GUID(pMeasureId, pLoop);
using (var policy = new Policy("MU-QRDA_GUID"))   
policy.Execute(qrda); 
 return qrda; 
& in XSLT 
 <ns0:QRDA3 xmlns:ns0="http://Foundation.Canonical.Schemas.MeaningfulUse">
      <xsl:attribute name="MeasureID">
       <xsl:value-of select="$measureId" />
      </xsl:attribute>
      <xsl:attribute name="MeasureGUID">
        <xsl:value-of select="ScriptNS0:GetQRDAInfo_MeasureGuid($measureId)"
/>
      </xsl:attribute>
But I am not getting GUID in my output message.
Regards,
Lakshmi

Well, ok.  How have you tried to debug this?
I also have to ask, because this seems like an unusual usage for the BRE, why are you using a Policy?

Similar Messages

  • Why to use business rules in biztalk or is there is any alternative to using vocabularies in biztalk?

    Thanks in advance

    Business rules framework: Organizations may need to process information differently depending on the data submitted. In the case of BizTalk, information is submitted
    via a message, and data within that message may require special processing once it has been received by an orchestration. The orchestration must be able to determine what that data is and how to process it. Additionally, rules around how that data is interpreted
    may change at any given time, even after the solution is in production. For example, a rule may be required that allows processing messages as long as a specific field has a value less than 10, but must stop processing and notify an administrator when this
    value is equal to or exceeds 10. The ability to store and access such a rule and to make it available for customization through a user-friendly interface is provided by the BizTalk business rules framework.
    Vocabularies: They are specific to
    business rules framework. These consist of all defined values that you can use when creating
    a rule,  including constants, predicates, XML nodes, and so on.
    The terms used to define rule conditions and actions are usually expressed by domain or industry-specific nomenclature. For example, an e-mail user writes rules in terms
    of messages "received from" and messages "received after," while an insurance business analyst writes rules in terms of "risk factors" and "coverage amount."
    Underlying this domain-specific terminology are the technology artifacts (objects, database tables, and XML documents) that implement rule conditions and rule actions.
    Vocabularies are designed to bridge the gap between business semantics and implementation.
    Reference:
    BizTalk 2010 Recipes: A Problem-Solution Approach
    MSDN:
    Business Rules Engine
    MSDN:
    Vocabularies
    TechNet Wiki:
    https://social.technet.microsoft.com/wiki/contents/articles/6480.biztalk-server-business-rule-engine-survival-guide.aspx
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • How to call business rules scripts via Java API

    Hi
    I have a problem. I have some scripts (business rules in essbase) that can be seen thru Administration Services Console under Business Rules folder. How can I execute these script using Provider Services (via Java API to EssBase interface)?

    hi
    i look too java api sample for "HBR Lounch"
    you can try found example in EAS folder
    C:\Hyperion\AdminServices\AppServer\InstalledApps\Tomcat\5.0.28\eas\webapps\hbrlauncher\MC_LaunchWindow.jsp
    please back, if you will have resolution :)

  • Empty Business Rule Facts while assigning input/output facts

    jdev version - 11.1.1.2
    I am trying to call business rules from a BPEL. But when I try to assign input/output facts, business rule facts portion is shown empty.
    Please note that I have defined input and output facts while defining the business rule component. The input/output facts are based on following xsd:
    <?xml version= '1.0' encoding= 'UTF-8' ?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.globalcompany.com/ns/CaseStudy/rules"
    targetNamespace="http://www.globalcompany.com/ns/CaseStudy/rules" elementFormDefault="qualified">
    <xsd:element name="approveInput">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="amount" type="xsd:double"/>
    <xsd:element name="approvalRequired" type="xsd:boolean"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    <xsd:element name="approveOutput">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="status" type="xsd:string"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>
    Input fact is of type "approveInput" while output fact is of type "approveOutput".
    I can share my project/application if required.
    Please let me know if something is incorrect/missing here.
    Thanks in advance

    HI,
    Do you have any question? The forum is for questions and discussions,
    if you want to share your Biztalk blogs, it's recommended to post it to TechNet Wiki, and you could follow the article below to join TechNet Wiki,
    Join TechNet Wiki: http://social.technet.microsoft.com/wiki/contents/articles/129.technet-wiki-how-to-join.aspx 
    Thanks for your understanding.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. <br/> Click <a
    href="http://support.microsoft.com/common/survey.aspx?showpage=1&scid=sw%3Ben%3B3559&theme=tech"> HERE</a> to participate the survey.

  • Business Rules - Date comparison

    Hi,
    I want to implement a business rule that depends on the number of days between two dates e.g. approve where date1 greater than date2 plus 10 days.
    I'm calling Business rule via BPEL so am using XML Facts. What support is there for date types in the Business Rules?
    K

    There is no way to create this with a Business Rule, you have to write a custom workflow or SQL nightly job or something to update your fields.
    Ok people start screaming.
    "solution" if you want to call it that. USE AT YOUR OWN RISK, try in dev first :)
    1. Create an Attribute / Column in your Entity and call it Today or something.
    2. Go to Business Rules and create a dummy rule where you are setting this attribute (unconditionally with no Condition)
         Today equals 1/1/2000 or something.
    3. Go to tblBRItem find this BR and etin ItemSQL  from N'1/1/2000' to GETDATE()
    now you have Todays Date field...
    OK NEVER MIND, I've tried it and it works, the problem is that tblBRItems gets updated via a stored proc and will overwrite your entry.
    One can modify the code there as well but I don't have time to play with it unfortunately, as at that time you have to pass some token in to identify some values as your own special commands ... Either way this becomes messy and not a way to go.

  • Oracle Business Rule interoperability

    Hello,
    I'm evaluating Oracle Business Rule for a project that is using Bea Weblogic products (WLS 9.2, Aqualogic, etc.). I understand that the new Oracle Soa suite is based on either Weblogic 10 or Websphere. I would like to know if it is possible to create and deploy rules using OBR in other J2EE containers (such as Weblogic Server 9.2). In other words, does the OBR runtime have any dependency with the new Soa Suite?
    Thanks
    Luciano

    Business Rules 11g hasn't been certified with Websphere or JBoss yet. Also the latest version of business rules (recommended as it has Composer) 11.1.1.2 is only certified with WLS 10.3.2. The 10g version of business rules is certified with WLS 9.2 but not recommended as 11g provides much more functionality.
    This does not mean you cant take advantage of 11g in your environment. Oracle Business Rules can be implemented as standalone. It is licensed under WebLogic Suite, therefore you don't need to purchase SOA Suite.
    You will need to install WLS 10.3.2 and install SOA Suite to get the Business Rules, if you are not licensed for SOA Suite it is recommended to switch off the applications your not entitled to. Your Aqualogic can call Business Rules via web services.
    cheers
    James

  • Weblogic Business Rule

    i have a requirement where all the configurable parameters has to be put in weblogic Business Rules.
    The other req is like single rule should return multiple objects(value).
    Is it possible for a single rule to return multiple objects when its evaluated?
    If so how it can be acheived?
    Thanks.

    Business Rules 11g hasn't been certified with Websphere or JBoss yet. Also the latest version of business rules (recommended as it has Composer) 11.1.1.2 is only certified with WLS 10.3.2. The 10g version of business rules is certified with WLS 9.2 but not recommended as 11g provides much more functionality.
    This does not mean you cant take advantage of 11g in your environment. Oracle Business Rules can be implemented as standalone. It is licensed under WebLogic Suite, therefore you don't need to purchase SOA Suite.
    You will need to install WLS 10.3.2 and install SOA Suite to get the Business Rules, if you are not licensed for SOA Suite it is recommended to switch off the applications your not entitled to. Your Aqualogic can call Business Rules via web services.
    cheers
    James

  • DB Call from Oracle Business Rule +Java Method call from OBR

    Hi,
    1.We have a requirement in project where we need to make DB Call from Business rule.
    We are using ORACLE SOA11g.
    Is this possible.Any pointers on this will be helpfull.
    2.Can we call java method from Oracle Business Rule.If so pls suggest how it can be done.
    Thanks In Advance,
    Oracle SOA User

    You can implement java class to make database updates using JDBC. You can add Java class as fact in business rules and invoke methods as actions of the business rules.
    Hope this will help.
    Jayesh Patel
    http://jayesh-patel.blogspot.com/
    http://www.yagnasys.com/

  • Call ODI interface from Business Rule

    Hi All,
    Is there any way to call ODI interface from business rule?
    I search the forum and found there is a way to call java code from business rule by CDF.
    ODI provide a dos batch file to invoke the ODI interface. But, how can I call batch file from business rule.
    I am using planning version 11.1.1

    Thanks.
    I can call the JAVA from business rule after assign the security in udf.policy.
    And, I am working on calling ODI scenario. However, I found connection refuse as follows.
    ava.net.ConnectException: Connection refused: connect
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
         at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
         at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
         at java.net.Socket.connect(Socket.java:520)
         at java.net.Socket.connect(Socket.java:470)
         at java.net.Socket.<init>(Socket.java:367)
         at java.net.Socket.<init>(Socket.java:180)
         at oracle.odi.sdk.invocation.internal.AgentNetworkCmd.<init>(AgentNetworkCmd.java:38)
         at oracle.odi.sdk.invocation.OdiInvocation.<init>(OdiInvocation.java:107)
         at com.gammonconstruction.odi.ODICaller.main(ODICaller.java:
    do I need to add scheduler agent for java request ?
    and, how to add the agent if need?

  • Calling a ILOG JRule based business rule from ABAP

    Hi,
    JRule is a BRMS product from ILOG. I have few business rules maintained in JRule and exposed as JAX Web Service. I was wondering if it is possible to call those rules from ABAP using client proxy similar to the technique used to call Enterprise Services or any other SOAP based web services. Any help is highly appreciated.
    Thanks in advance
    Nilay

    Yes you can. Once you have deployed your rule app to the ILOG Rule Execution Server, you can get login to the RES and get the WSDL and then use the WSDL to invoke the rules.

  • Expose Business Rules as composite service - ORAMED-03303 on call

    Hi folks,
    I'm on 11g PS2 and Jdeveloper 11.1.1.3.0 with Oracle SOA Composite Editor 11.1.1.3.0.25.57
    The problem: I get ORAMED exception when I call the business rule through its automagically created web service endpoint
    Among the many things which I've tried and didn't work:
    - create my own web service end point for the business process
    - turn on WS Addr for the web service end point
    The payload and returned fault are as follows:
    <messages>
    <input>
    <Invoke_ruleBlacklist_callFunctionStateless_InputVariable>
    <part name="payload">
    <ns0:callFunctionStateless name="processRequest">
    <bpelInstance>
    <processId>processRequest</processId>
    <processVersion>1.0</processVersion>
    <domainId/>
    <processURL>http://localhost:8001/soa-infra/services/default/TestInitiateProcess!1.0*soa_e2ef0cb6-2dbe-4047-96e3-7a8edff9fc16</processURL>
    <instanceId>70002</instanceId>
    </bpelInstance>
    <parameterList>
    <BlacklistRuleInput>
    <party>
    <partyId>string</partyId>
    <partyOrganisation>string</partyOrganisation>
    <partyName>string</partyName>
    </party>
    </BlacklistRuleInput>
    </parameterList>
    </ns0:callFunctionStateless>
    </part>
    </Invoke_ruleBlacklist_callFunctionStateless_InputVariable>
    </input>
    <fault>
    <bpelFault>
    <faultType>0</faultType>
    <operationErroredFault>
    <part name="payload">
    <errorInfo>
    <errorMessage>TestBusinessRules</errorMessage>
    </errorInfo>
    </part>
    </operationErroredFault>
    </bpelFault>
    </fault>
    <faultType>
    <message>0</message>
    </faultType>
    </messages>
    __Steps to reproduce:__
    Create a new project, add simple business rule, tick 'expose as composite service'. A Web service endpoint is automagically created
    To another project:
    - add a web service reference to the business rule ws endpoint
    - add an Assign and Invoke activity within BPEL towards the business rule
    Thanks in advance for reading and appreciate your guidance please

    Hi there jeem,
    I'm having a world of trouble with that same Rules composite example, the OrderApproval one. I've deployed it, and can invoke it, and yet get the following error each time I invoke it:
    HTTP/1.1 500 Internal Server Error
    Content-Type: text/xml; charset=UTF-8
    X-Powered-By: Servlet/2.5 JSP/2.1
    SOAPAction: ""
    Content-Length: 546
    Date: Tue, 31 Aug 2010 03:36:22 GMT
    X-ORACLE-DMS-ECID: 0000If6Dsbg0FwI5yrDCiW1CV7Dc0000A1
    X-HTTPAnalyzer-RuleName: Pass through :
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
    <env:Header/>
    <env:Body>
    <env:Fault xmlns:fpre="http://xmlns.oracle.com/OracleRules1/OracleRules1_DecisionService_1">
    <faultcode>fpre:operationErroredFault</faultcode>
    <faultstring/>
    <faultactor/>
    <detail>
    <errorInfo xmlns="http://xmlns.oracle.com/OracleRules1/OracleRules1_DecisionService_1">
    <errorMessage>default/OrderApproval!1.6*soa_5acae7d5-9fcf-4620-a9aa-8fb621faaf0d/OracleRules1</errorMessage>
    </errorInfo>
    </detail>
    </env:Fault>
    </env:Body>
    </env:Envelope>
    I've tried specifying the name attribute (I'm using "OracleRules1_DecisionService_1" for this) against the callFunctionStateless element, but am still getting this error!
    Can you yourself, jeer, or anyone else please help with this? I've turned on low level logging for the soa server, but the errors it's throwing really don't enlighten me very much at all!
    Any help will be very much appreciated.
    Regards,
    Rhian

  • BizTalk 2010 Business Rule Composer possible bug...

    ****Initially i thought of writing this request, but I figured out what is the issue***********
    When I am trying to access the business rule composer from the developer machine where the SQL server is configured on a customer domain, I am unable to use the Business Rule Composer.
    I am using runas /netonly /user:<user id> to run the business rule composer so that I can pass the customer domain credentials.
    The network credentails are successfully sent to the SQL server and I could see all the databases in the business rule composer dropdown.
    But when I try to connect, i get an error saying "MachineName value <server>\<instance>, <port> is invalid"
    when I try the same connection from a machine which is within the SQL server's domain it connects successfully (But i still get above error message, but it connects)
    It seems there is a bug in the business rule composer GUI! and its related to network issue. 
    my colleague who is on the domain, doesnt gets this error message and he could able to connect successfully.
    not sure what is causing the issue. any insight?!
    its nothing to do with the network, domain...all systems has same issue when i check the "Start server if it is stopped" checkbox on the open rule store dialague.
    I wont get the same issue in my local machine installation (where everything is local installation), but my development server installation has this issue.
    Please let me know if anyone has same issue and what is causing this error?! is it the user dont have access to start the sql service?!
    Thanks,
    Suresh

    Hey Suresh,
    Did this same configuration work on BizTalk 2009? Sorry, I had not tried this before.
    I would be glad to report the issue on the BizTalk 2010 Connect site. I know someone else reported an issue with the Business Rule Composer although I am not aware of any changes made to this tool for the BizTalk 2010 release.
    Thanks,
    If this answers your question, please use the "Answer" button to say so | Ben Cline

  • Business rule trigger not calling the procedure in my code

    Good morning every one,
    I have a small problem with two of my business rule triggers.
    I have these tables:
    pms_activity
    csh_cash
    csh_integrate_leh
    csh_integrate_led
    and my process goes like this:
    upon approval of a row in my pms_activity table I have a trigger that insert a row in my csh_cash - and in the csh_cash table I have a trigger that will insert in the csh_ingerate_leh and csh_integrate_led.
    my problem is pms_activity does generate a row in csh_cash but the trigger in the cash does not fire to generate a row in the csh_integrate_leh and led tables.
    I have generated in the following order after I created my business rule:
    I have generated the table from the designer (server module tab)
    I have generated the CAPI from the head start utility
    I have generated the API from the designer
    I have generated the CAPI from the designer
    I have run the recompil.sql
    I have checked that my business rule trigger is enabled and should run on insert and no where restriction
    === this is my business rule logic ======
    l_rule_ok boolean := true;
    begin
    trace('br_csh001_cev (f)');
    csh_gl_pkg.csh_gen_integ_jvs(p_id
    ,p_ref_num
    ,p_own_id
    ,p_trt_id
    ,p_value_date
    ,p_description
    ,p_amount
    ,p_cur_id
    ,p_gla_dr
    ,p_gla_cr
    ,p_gla_pl
    ,p_gla_rev
    ,p_gla_eqt);
    return l_rule_ok;
    exception
    when others
    then
    qms$errors.unhandled_exception(PACKAGE_NAME||'.br_csh001_cev (f)');
    end br_csh001_cev;
    ==== end =======================
    Any help will be appreciated as I have struggled with this for two days.
    Thanks

    Haroon,
    SAP does not allow Stored Procedures to be used as part of the SAP Business Db or to be used to access SAP Business One tables directly for Insert, Update or Delete.  Any interaction with the SAP Business One Db is required to go through the SAP Business One API's, namely the DI and UI API's.
    Eddy

  • Using StartsWith for String Comparision in Business rules

    hi,
    I need to compare whether a particular string starts with some pre-defined prefixes. These are bound to change from time to time and hence we wanted to use the business rule engine for this. We declared prefixes using "list of values" vocab and
    defined the set. Now, I hoped to use the String.StartsWith() method but couldn't understand if it can be used.
    As of now, we are creating a method and that will be called with 2 parameters. One the string and other is one of the list of values which we want the string to start with. Is there any better way to do this?
    Praveen Behara
    MCST : BizTalk Server 2006 R2, 2010

    Hi Murugesan,
    I need to match a particular series of numbers... say 12xxx,345xxx,567xxx. I am creating a
    Series as a list and the valid values would be 12, 345, 567. I intend to keep them as prefixes i.e. they are not regular expressions. So, they won't be 12.*, 345.*, 567.*. The idea is to keep the vocab close to requirement
    and away from implementation (typically, for a business user). Now, if I want this setup, how will the implementation with
    Match look like?
    Technically, your above solution would work.. but my way of implementation / thought process is for a different purpose.
    Praveen Behara
    MCST : BizTalk Server 2006 R2, 2010

  • Business Rule in BPC 5.1

    Dear all,
    I got 2 questions regarding business rule:
    1. There are 2 types of business rule.
    Script-based = You write your own script ( MdX or SQL logic)?
    Table-based = The table is more like a parameter table. You configure the parameters in the business rule tables and use corresponding store procedure in some logic file to trigger the function.
    ex:
    You must setup the currency translation rule table and call SPRUNCONVERSION to execute currency translation function.
    Is this correct?
    2. According to the SAP BPC admin guide, the rule files will be converted to LGL file, is this still the same in BPC 5.1? I can't find any related LGL in the system.
    Best Regards,
    Jeff

    You're mixing termology and functionality.
    Business rules are configured under the application/business rule tab in administration.  They are SQL stored procecures that cannot be modified and are seutp using the business rules tables.  The values in the table are passed into the SP's as parameters.  SPRunConversion is an example of a business rules stored procedure.
    Separately, there is script based logic.  This is setup under the Applicaton/Script Logic tab in administration.  These are calculations that are written by the application administrator (a number of examples are provided) to peform calculations.  There is a script logic example (FXTrans) which perfroms the same process as SPRunConversion.  They are text based files which get "compiled" into executed code.  The file you write to is the LGF file.  This contains the source code along with comments and spacing for readability.  The compiled file has an LGX extension and is a text file which has extra spacing and comments removed and any *INCLUDE statements replaced with the underlying coce.

Maybe you are looking for

  • Latch contention in Oracle 10.2.0.4

    Hello All, There is one script which takes 8 hours to complete on one of our Oracle 10.2.0.3 databases. The TKPROF Output shows the below Wait events: Elapsed times include waiting on following events:   Event waited on                             Ti

  • Oversaturated colors on exporting from CS5.

    Hi everybody, I'd like to try to ask to the forum something that I'm not able to understand. I just downloaded the trial of the new flash cs5 and I was playing around to have a look at the new version. What I did: - picked a png file of a logo, previ

  • Queries on Modelling,Extraction

    Hi BW Guys,                     I have one query on modelling that is 1) If we have 50 characteristics in a cube,how many dimensions we will create,suppose we created 10 dimensions,how would you arrange the characteristics ?  Would you give any prefe

  • File sharing requires Internet in Snow Leopard?

    I have two Snow Leopard Macs (10.6.5) and One Tiger (10.4.11) Mac all connected by cable to a router, each with a static IP address. When I have the Internet connection plugged into the WAN port of my router and modem turned on, file sharing works fi

  • How should I insert a placeholder för pictures in form central?

    x