How to implement  business rules by using drolls in OSB

Hi
I am new to Drools,can any body tell how to implement drools concept in OSB11,provide any useful links or blogs.
Thanks in Advance
Mani

Mani,
I have implemented Drools by exposing them over web service call through Business Service of OSB.
As you are using Java Callout, try to set proper return type for the java method called, better to use XMLObjects as the return type.
http://www.xenta.nl/blog/2011/08/29/oracle-service-bus-java-callouts-with-xmlobjects/
http://mazanatti.info/index.php?/archives/63-Oracle-Service-Bus-generating-XML-Objects-from-Java-Callouts.html
http://blog.xebia.com/2009/10/11/java-callout-on-the-alsb/
http://itnewscast.com/middleware/oracle-service-bus-java-callouts-xmlobjects
How to retrieve the java object in a proxy service in osb -- Plz help
Hope it helps !!
Abhinav
Edited by: Abhinav on Dec 12, 2012 4:21 PM

Similar Messages

  • Accessing Business rules from BPEL, OESB and OSB

    How to aceess Business rules from BPEL, OESB and OSB ?

    Hey you can use Decision Service in BPEL process. You have "Decide" activity for this. However, no idea about ESB or OSB.

  • ADF BC, how implements business rules?

    Hi.
    I am new in oracles technology. Please help me understand how implements business rules.
    For example: I have two tables operation(id,code) and operation_item(id, operation_id, code). I create entities objects for it: OperationEntity, OperationItemEntity and association: OperationItemToOperation. Then create entity-based view object OperationById which have bind parameter id for find operation by id. I also create entity-based view object OperationItem and view link OperationItemToOperationLink.
    My ApplicationModule contains OperationById and OperationItem via OperationItemToOperationLink
    I want implements "clone" method at OperationById view for current row. This method create copy selected row from operation table and copy all rows from operation_item table where operation_item.operation_id = operation.id.
    I add method createCurrentRowClone to OperationById:
    public void createCurrentRowClone() {
    OperationByIdRowImpl currentRow =
    (OperationByIdRowImpl ) getCurrentRow();
    OperationByIdRowImpl newRow = (OperationByIdRowImpl ) createRow();
    insertRow(newRow);
    newRow.setAttributes(currentRow);
    //TODO create copy for all rows from OperationItem
    //??? how get OperationItem instance
    and I add method clone to OperationItem:
    public void createClone {
    // for all row from OperationItem create clone
    but I don't understand how get OperationItem instance in OperationById scope. I have method getOperationItems() in OperationByIdRowImpl class which return RowIterator, and it give me instances of OperationItemRowImpl class, but not OperationItem with rows where operation_item.operation_id = operation.id
    Thanks in advance

    For realizations "clone" method which make copy for current row from OPERATION table and all rows from OPERATION_ITEM table where
    operation_item.operation_id = operation.id I moved realisation business logic from View Object to Entity.
    For it enough:
    1) entities objects: OperationEntity, OperationItemEntity;
    2) association for this entities: OperationItemToOperation;
    3) entity-based view object: OperationById which have bind parameter "id" for find operation by ID;
    4) application module: ApplicationModule;
    I add method createCurrentRowClone to OperationByIdImpl class. It just call createClone method for current row:
    public void createCurrentRowClone() {   
    OperationByIdRowImpl currentRow = (OperationById) getCurrentRow();
    currentRow.createClone();
    method createClone in OperationByIdRowImpl class call createClone method from entity layer:
    public void createClone() {
    getOperationEntity().createClone();
    method createClone in OperationEntityImpl class make new row and call createClone for all row from OperationItemEntity:
    public void createClone() {
    OperationEntityImpl newRow = (OperationEntityImpl) getDefinitionObject().createInstance2(
    getDBTransaction(),null);
    newAtm.setCode(getCode());
    //create copy for all rows atm_operation
    RowIterator itemIterator = getOperationItemEntities();
    while ( itemIterator .hasNext() ) {
    OperationItemEntity itemRow = (OperationItemEntity ) itemIterator.next();
    itemRow.createClone(newRow);
    and finally method createClone(OperationEntityImpl operation) in OperationItemEntityImpl class make new row in OPERATION_ITEM table
    public void createClone(OperationEntityImpl operation) {
    OperationItemEntityImpl newItem = (OperationItemEntityImpl) getDefinitionObject().createInstance2(
    getDBTransaction(), operation);
    newItem.setCode(getCode());
    If you have another solution, please post it here.

  • Business rule to use page member on form

    Hi all,
    I need to create a business rule which uses a page member on the form. Created a RTP variable and used it in the Rule.Attached the rule and selected "use members on the form" and "Hide Prompt".But, Is still asking for prompt. How to unhide the prompt?

    Is it a calc manage rule or an EAS business rule, which version of planning.
    Cheers
    John

  • Where and how to create business rules?

    Hi All,
    1) Where and how to create business rules?
    2) How to configure Rule Engines (Ex: JRULE Engine or any other Rule Engines)?
    3) Whar products are available for Rule Engines?
    Thanks in advance

    Hi,
    You have some options on business rules.
    If you just want to create business rules that are easy for business owners to edit without a lot of training, Oracle BPM has a simple business rules creation and end user edit capability. The benefits to using the rules that come with Oracle BPM are:
    <li> they are simple and easy to edit
    <li> end users can get up to speed quickly to edit them
    <li> when changed, the business process is immediately impacted
    <li> they can use the Oracle BPM business parameters that also come with the product
    Drawbacks are:
    <li> you can only use Project variables as the variable content inside of them
    <li> if a company already has a business rules engine, they are different that the company's standard
    Business rules engines have been used with Oracle BPM. If you are a consultant, first ask if there is a standard business rules engine that the company already has purchased that they use (e.g. iLog from IBM, Corticon...). If this is the case, you typically integrate to the rules using a web service interface that the business rules engine exposes.
    If they do not already have a business rules engine, consider Jrules. The benefits are:
    <li> it is a part of the Oracle BPM Suite that they might have purchased
    <li> version 11g of the Jrules is coming out soon with a friendly front end
    Hope this helps,
    Dan

  • HOW TO ADD BUSINESS RULES

    HI EVERY ONE,
      I HAVE A REQUIREMENT WORKING ON MM , I HAVE SOME BUSINESS RULES IN FUNCTIONAL DESIGN DOCUMENT AND I NEED TO WRITE THE TECH DESIGN . MY QUESTION IS HOW TO ADD BUSINESS RULES IN TECH SPEC. EXAMPLE I HAVE FINAL DUE DATE AS BUSINESS RULE i.e,
    Final Due Date = Baseline Date + Maximum Day Term
    If Clearing Date is = Final Due Date = Invoice is Paid-On Time
    If Clearing Date is < Final Due Date = Invoice is Paid Early.
    If Clearing Date is > Final Due Date = Invoice is Paid Late
       I have the data available for Final Due date from R3 .
    So after creating the Info Object( characteristic), where can I add this formula for that Z INFO OBJECT ?  I have total of 5 business rules like this in my funtional doc
    Help will be appreciated . Points will be assigned if my problem solved...
    thanks

    Hi Harish,
    With the assumptions:
    1. You are using a BI 2004s system
    2. The fields Baseline Date, Clearing Date & Maximum Day Term are being sourced from R/3
    The rules can be coded into the End Routine in the Transformation.
    If you are using a BW 3.x system, this logic can be coded in the Start Routine at the Transfer Rules or the Start Routine at the Update Rules.
    Hope this helps.
    Regards,
    Shrikant

  • How to modify business rules?

    How to modify business rules using SOA composer?
    Please provide deatils.

    I have followed same steps but its not working
    When i was chnaged insert action edit properties values .
    it is not refelcting. showing old value.
    Please help me

  • How to implement hyperlink in java using swing components

    hi.....
    pls help me to find out solution
    how to implement hyperlink in java using swing components

    I've got the same problem here.
    I want to implement a HyperlinkListener to a JLabel. (Unlike suggested above, it is only supported by JEditorPane and not JLabel)
    The goal is, that if a user clicks on a Link in a JLabel, the standard browser opens and displays that page.
    Can somebody please help?
    My ultimate goal would be to also be able to add clickable HyperLinks in ToolTip texts, but i guess that'd be even more complicated.

  • How to call business service from xquery transformation in OSB ??

    Hi All,
    How to call business service from xquery transformation in OSB ??
    I need to assign the response variable of Business Service to a target element in XQuery Transformation Mapper file.
    It's urgent.
    Regards,
    Jyoti Nayak

    Transformation is to mapping the source and target of 2 different schemas.
    In your case you should have a XQuery transformation between, your Business Service output schema and the target schema.
    Thanks,
    Vijay

  • How to create business rule for 'Integrity constraint - child not found'

    Hello, I am using JDeveloper 11.1.2.3.0.
    When an integrity constraint is violated an error message coming from database is displayed in my application. In this case is the error "integrity constraint (TableName) violated - child record found "
    How can I personalize the error shown in this case? I tried with EO business rules but I couldn't find this key, only "Key exists" or "UniqueKey".
    Can anyone help?

    Check Catch Me If You Can article. This should be handled there as one of the errors thrown in the model layer. Check the AdfmErrorHandlerImpl ...
    Timo

  • How to create Business rules framework

    Hi All,
    Currently I have a requirement to implement SAP Collections management in ISU without using Dunning process. I need to use Business Rules Framework (BRF) to configure rules, but I know about BRF to some extent (theoritically). Can someone please provide me the document which gives me an step-by-step procedure to create a simple BRF. I have looked into many documents related in this regard, but I am getting documents which explains at high level what is BRF.
    Please provide me the step-by-step procedure to create BRF in collections management.
    Thanks in advance.
    Venkat

    Hi,
    Please refer below link for the demo.
    http://www.sdn.sap.com/irj/scn/index?rid=/media/uuid/606f4b82-5b53-2c10-999b-9230dac9aa85&overridelayout=true
    Refer below link for presentation.
    http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/media/uuid/50879cee-f9b5-2e10-039e-b2d6c4b10e6b
    Thanks

  • How to create Business Rule?

    Hi All,
    i am new to Hyperion, can any one help me on the following issue.
    i want to crate a business rule to aggregate data from level 0 to parent level for one partcula data form and aloso have to calculate the data for the following member
    Cost per Unit = Total Revenue/Unit
    i have already have the member formula in outline for cost per Unit as follows
    Cost per Unit = Expense/Unit
    How i can create the business ruleto calculate the data for cost per Unit (Total Revenu/Unit) and the aggregation of data to the parent level in data form
    I have 12 dimensions and i am using 9.3.1 Version
    Thanks in advance
    Ram
    Edited by: Ram on Sep 2, 2011 2:36 AM

    i want to crate a business rule to aggregate data from level 0 to parent level for one partcula data form^^^These are oldies but goodies:
    http://camerons-blog-for-essbase-hackers.blogspot.com/2009/06/why-i-hate-and-love-business-rules-part.html
    http://camerons-blog-for-essbase-hackers.blogspot.com/2009/06/why-i-hate-and-love-business-rules-part_17.html
    Cost per Unit = Total Revenue/Unit^^^Are you asking if it makes sense to calculate this ratio at all levels of the database or only at the top level? If you mean that it only makes sense at level zero, you could use a FIX statement to select all level zero members and then perform the calculation. Based on the formula, I would think you could get away with a dynamically calculated member formula, assuming Total Revenue is dynamically calculated as well. Generally, level zero calcs in a business rule are only required if there's a percentage involved; if the formula is valid at aggregated levels, make it dynamic unless reporting performance (I have seen dense formulas that go across many, many blocks -- bad idea) falls off a cliff.
    Regards,
    Cameron Lackpour

  • How to Load Business Rule XML in 9.3.1

    Hello,
    I am using EAS 9.3.1. On the Business Rules component, I selected Export Business Rules, and it invited me to export all business rules, variables, macros, and projects into one xml file. Now I cannot figure out how to load that xml file. I am copying from a production environment to a development environment, because we moved the database of the development environment to another server. I have reconfigured the applications and databases. What do I have to do to load the xml file?
    Thank you,

    Thank you. I was getting the following error, and I thought it meant, I cannot expand the Business Rules icon because I did not have any business rules. If this something I configured incorrectly, or something the DBA missed?
    Error logging in to Business Rules. The repository has not been configured or you are not authorized to use Business Rules.
    Detail:Error creating DBConfig object. Please check if there are exceptions in the log file and if HBR is configured correctly.
    Detail:null

  • How to change business rule in the runtime

    I create a business rule and add it in a BPEL process. After deployment, this process works fine.
    How to modify the rule in run time? I mean I do not need to redeploy the process.

    If you are using SOA suite 10g qhen you add a decision serivce to your BPEL process it doens;t use a pointer to the rules repository but actually makes a copy of the rules respository and deploys it locally within the BPEL process. Because of this any changes you make to your initial respository will not be seen because the delopyed process does not use the original version. You need to update the decision.dec file in your BPEL project and change the repository information to point to the original rules repository you want to use.
    Once you have done this redeploy the BPEL process and your changes shoudl be reflected in your process.
    Hopefully this information helps
    Regards
    richard

  • Track changes in business rule made using SOA composer

    Hi,
    I have business rules deployed on a server. Authorized user can change condition or any other thing in a business rule using soa composer. How can i track changes made in this business rule?
    i.e. I want to view the change and if possible who changes it.
    I am using SOA 11g
    Any help is appreciated
    Thanks

    Below document describes how to Monitor Decision Service Components and Engines.
    http://docs.oracle.com/cd/E29597_01/admin.1111/e10226/rules_mon.htm#CJAJJIJB

Maybe you are looking for

  • Is it possible to change the VBAP-ADRNR item address field value?

    Hi, Is it possible to update the VBAP-ADRNR item record field value? I am trying to update this field value from BAPI_SALESORDER_CHANGE but it is not changing the value. I am only able to change the corresponding address for that address number. But

  • IMac as a server - How much can it take?

    Hello, At my school, we have a 20 inch, 2.16 Ghz iMac Intel Core 2 Duo with 2.5 GB of RAM set up as a server (running OS X 10.4 Server) managing 10 17 inch iMacs and 12 eMacs. We also have a few switches controlling the flow of the network. At this t

  • HT4236 Syncing my photo library to my phone, albums out of order

    Syncing my Aperture photo library to my phone from my Yosemite MacBook Pro (I also tried it with iPhoto and same store), the projects (called albums in iPhoto) are all out of order - just random.  I use a naming convention of date then name with the

  • Multimapping with java mapping

    Hi,   i am trying to do multimapping with java mapping, but I am getting error  "unexpected end-of-file" in SXMB_MONI. for multimapping I have appended necessary code... <?xml version="1.0" encoding="UTF-8"?> <ns0:Messages xmlns:ns0="http://sap.com/x

  • JCO API which accepts system

    Hi all, I want to use JCO API to connect to R/3 and call my BAPI (i.e, I am not using the JCO destination which we normally create in Web dynpro content administartor screen). This is specially for MODEL DATA (i.e., to get the application data). I fo