Generalise business rule to fetch common inputs region wise

Hi,
Our entity dimension is changed to program(Which means projects) dimension which will include the location as a parent and under that are the list of programs specific to that location. our legal entity is a custom dimension. This change is done to enable the workflow program wise. Now there are certain planning assumptions which are common across programs in a country. The common inputs are captured against a member in entity and legalentity dimension. The member names are something like IND_Prog_assumptions in entity dimension and India_Assumptions in Legalentity dimension. The hierarchy is something like below
LegalEntity,India,Chennai,Location1
LegalEntity,India,Chennai,Location2
LegalEntity,India,India_Assumptions
Entity,IND_Programs,Prog1
Entity,IND_Programs,Prog2
Entity,IND_Programs,IND_Prog_Assumptions
There are sone calculations which will involve pulling the data from these common inputs. I have written a business rule by fixing each and every location separetely. Is there a way to generalise this? i.e. Check what the current location is. And then get the corresponding member like IND_Prog_assumptions for that location. Basically one fix statement which will do the calculation based on the selected entity and legalentity dimension.
FIX(@DESCENDANTS(India),@DESCENDANTS(IND_Direct))
"Shrinkage %" = @ROUND(((India_Assumptions->IND_Prog_Assumptions->"Holidays in a year")/(India_Assumptions->IND_Prog_Assumptions->"Total working days in a year"))*100,2);
ENDFIX
FIX(@DESCENDANTS(USA),@DESCENDANTS(USA_Direct))
"Shrinkage %" = @ROUND(((USA_Assumptions->USA_Prog_Assumptions->"Holidays in a year")/(USA_Assumptions->USA_Prog_Assumptions->"Total working days in a year"))*100,2);
ENDFIX
Edited by: ragavhere on May 8, 2010 4:59 PM
Edited by: ragavhere on May 8, 2010 5:07 PM

Hi msandrews,
Thanks for your response. Your suggestion worked well.
But now the problem is different coz the requirement has changed. The common inputs are captured against the members like IND_Prog_Assumptions,US_Prog_Assumptions,Phillippines_Prog_Assumptions in the Entity dimension and India_Assumptions,USA_Assumptions,Phillippines_Assumptions in the Legalentity dimension. These common inputs have to be pushed to the other programs in the entity dimension as well as in the location dimension region wise. For eg. the value captured against IND_Prog_Assumptions and India_Assumptions have to be copied to the programs which run in india and the value captured USA_Prog_Assumptions and USA_Assumptions have to be copied to the programs running in USA. The hierarchy of LegalEntity and Entity dimension is here again for your reference.
LegalEntity,Global,APAC,India,Chennai,Location1
LegalEntity,Global,APAC,India,Chennai,Location2
LegalEntity,Global,APAC,India,India_Assumptions
LegalEntity,Global,APAC,Phillippines,City1,Location1
LegalEntity,Global,APAC,Phillippines,City1,Location2
LegalEntity,Global,APAC,Phillippines,Phillippines_Assumptions
LegalEntity,Global,North_America,USA,City1,Location1
LegalEntity,Global,North_America,USA,City1,Location2
LegalEntity,Global,North_America,USA,USA_Assumptions
Entity,Global_Direct,IND_Direct,SD_IND,Prog1
Entity,Global_Direct,IND_Direct,SD_IND,Prog2
Entity,Global_Direct,IND_Direct,BD_IND,Prog1
Entity,Global_Direct,IND_Direct,BD_IND,Prog1
Entity,Global_Direct,IND_Direct,IND_Prog_Assumptions
Entity,Global_Direct,US_Direct,SD_US,Prog1
Entity,Global_Direct,US_Direct,SD_US,Prog2
Entity,Global_Direct,US_Direct,BD_US,Prog1
Entity,Global_Direct,US_Direct,BD_US,Prog1
Entity,Global_Direct,US_Direct,USA_Prog_Assumptions
Entity,Global_Direct,Phillippines_Direct,SD_Phillippines,Prog1
Entity,Global_Direct,Phillippines_Direct,SD_Phillippines,Prog2
Entity,Global_Direct,Phillippines_Direct,BD_Phillippines,Prog1
Entity,Global_Direct,Phillippines_Direct,BD_Phillippines,Prog1
Entity,Global_Direct,Phillippines_Direct,Phillippines_Prog_Assumptions
I tried to do something with DATACOPY. But nothing worked out. I am confused in proceeding.
Your help is highly appreciated.
Regards,
Ragav.

Similar Messages

  • 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.

  • Dealing with inherited xml facts in business rules

    Hello Everyone,
    I encountered a problem while writing business rules for an xml input message which is of abstract type. The schema follows the xml inheritance and the structure is somewhat like -
    Document (abstract)
    *|*
    Message (abstract)
    *|*
    NotificationMessage (abstract)
    *|*
    *|-ContractCreated (concrete)*
    *|-ContractCancelled*
    *|-ContractUpdate*
    *|-ContractEnhance*
    The input for buiness rules is a variable of type "Document". Rule wizard has generated all jaxb classes correctly.
    Now when I am writing a if-then rule as below -
    If Document is ContractCreated and ....
    +....+
    the compiler warns with message :- RUL-05162: The rule set "Ruleset1" requires fact type "ContractCreated", but this type is not part of the input.
    How to deal with such xml facts where input is abstract type and rule needs to be applied on concrete definition??
    Note- The incoming xml messages are instances of schema that is used across the applications hence schema cannot be modified.
    Thanks,
    Viv
    Edited by: user564736 on Jan 21, 2013 7:23 AM

    Can you verify and make sure, you have sleceted the "Tree" option for the input of the Decision Function.
    Look at the Following for reference:
    http://docs.oracle.com/cd/E29505_01/user.1111/e10228/descfunc.htm#BCGIFGBI

  • Business rule XML facts not visible soa  11.1.1.6.0

    Hello experts,
    Here comes the description of steps:
    When dragging a business rule with input and output facts defined(xsd:complexType), in bpel 2 process, in the edit rule dialog box:
    click on either of the assign input & output tabs to add a copy rule,
    in the decision fact map dialog box:
    the type is business rules facts in the drop down menu.
    Here the business rules variables are not shown.
    Having read the following older posts:
    Empty Business Rule Facts while assigning input/output facts
    SOA Jdev app - Bpel Business Rule - Assign Input Facts issue
    still, I do not see any solution or workaround offered.
    Any helping hand?
    TIA!
    Edited by: NickAiva on Oct 13, 2012 10:41 AM
    Edited by: NickAiva on Oct 15, 2012 3:16 PM

    Hi SK,
    I think, you have permissions issue. May be you are not able to write to C:\JDeveloper\mywork\MarkViewSerialApprovalApplication\MarkViewSerialApproval\oracle\rules
    Regards
    Borys

  • Business Rules Engines?

    Hi,
    I have experience with embedding "CLIPS" which is a C rules engine as a
    Forte Service Object which was easily wrappered using standard Forte
    wrapper strategy.
    Also, we have a sales rep in ATL who used to work @ ILOG and therefore
    competed with Nueron Data, and from various conversations with mutual Forte
    / Rules Engine customers I've learned it would be a complimentary integration.
    They all have some C-callable API and so a Forte Service Object would be a
    good client to the rules engine api due to our support for multi-threading
    when API is thread safe and additional option of replicating for load-bal
    when API isn't thread safe. The later concept is analogous to our use of
    DBSession object for interface with DBMS client api's.
    Be aware, the experiences I hear about with the mentioned rules engines is
    that there are not always business analysts truly capable of using the
    Rules development interfaces provided by the tools.
    So maybe the use of Forte Conductor's dynamic Process automation
    capabilities may also be a fit. If you want to discuss how, let me know.
    -jim
    Return-Path: <[email protected]>
    X-Sender:
    Date: Fri, 23 Jan 1998 13:19:03 -0800
    To: [email protected]
    From: Vic Brown <[email protected]>
    Subject: Business Rules Engines?
    Sender: [email protected]
    Reply-To: Vic Brown <[email protected]>
    Has anyone on this list integrated a COTS business rules engine,
    or components, into a Forte application? Specific products
    of interest would be those from Neuron Data, ILOG, USoft
    or, possibly, Vision Software.
    If so, comments? Type of application? War stories?
    Thanks.
    Victor Brown
    TRW Data Services
    Oakland, CA
    Phone: 510.645.3240
    FAX: 510.465.4811Jim Rice mailto:[email protected]
    Forte Software, Inc. http://www.forte.com
    South Eastern Tech Sales Mgr.
    301-721-1910 Corp: 510-869-3400 x2316

    The following Business Rule Solution uses POJO's and XML and meets the following criteria!
    Business Rule Solutions should be:
    Non-Industry Specific
    Appropriate and Affordable for any size business
    Enterprise-class solution (scalable, optimized, extensible)
    Remember: All businesses have business rules, and all businesses need an efficient way of managing and executing these business rules.
    What Business Rule Solutions should provide:
    Input Validation & Data Integrity
    Integration & Data Transformation
    Analytics
    Interpret clients Business Policies & Behaviors and clients run-time
    data and execute the appropriate process related workflow efficiently.
    The Return on Investment:
    ROI continues every day, week, month and year into the future!
    Simplify all program development through component reuse.
    Lowers software maintenance by a magnitude.
    Manages & Protects a company assets (Business Rules) in one
    repository.
    Provide Business Agility and Competitive Advantage!
    Further, I believe Business Rule Solutions are a higher level of abstraction of services that all other applications should use to implement the Model-View-Controller design pattern!
    Use the Contact Us! page for quicker responses. http://www.agilebusinessrulecomponents.com

  • Composite Forms and Business Rules

    Working with 11.1.2.3. I have a composite form with 4 tabs - 3 input tabs and 1 review tab. Each of the 3 input tabs have the same business rule attached to them and are set to Run on Save. Within the composite form I have selected the business rules from the 3 input tabs.
    Problem is, when a user enters data into one of the tabs and then clicks Save, the business rule runs twice.
    Any ideas what would cause this? 

    Hi Anthony - thanks for your response.
    In regards to the 3 input forms, the Page/POV sections were slightly different.  For example, Input 1 had No_Category and No_Brand in the POV and Channels in the rows, Input 2 had No_Channel and No_Brand in the POV and No_Categories in the rows and Input 3 had No_Channel and No_Category in the POV and Brands in the rows.
    I have since modified the forms so all 3 Input forms have the same members in the POV (these are No_ICP and No_Function) and also have the same members in the Page (Local_Input and SC_No_Scenario).  As part of the change I also have Channels, Categories and Brands in the rows of all 3 Input forms (although each Input form has different members from the Channel, Category or Brand dimensions)
    Anyway, even after making these changes, the business rule runs multiple times.  (I did notice that when I Save data in the Category form the rule runs once.  When I run Save data in the Brand form the rule runs twice and when I Save data in Channel form the rule runs 3 times.)
    Very strange - and very frustrating.  (Rule takes 34 seconds to run, which is almost too long.  Multiply that by 2 or 3 times and it's much too long of a wait.)

  • Comparison of dates using Oracle Business Rule

    Hi to everyone! I have a business rule that has as input parameter a complex attribute with a date field inside named expiration. I want to compare the expiration field with the current date using a comparison function. I don't know where find the current date. The function Calendar.getInstance() return the current date? Any help we'll' be highly appreciated.

    Calendar.getInstance() will give you the current date, and to find out the days between two dates; use Duration.days between(date1, date2) + 1

  • Calc another calc script from a calc script or business rule

    is there a way to call a common calc script segment from other calc scripts or business rules. I do not want to replicate common code in multiple business rules. This common code updates the Essbase database, so it would need to take Essbase members as parameters and be able issue calculation commands. I do not find this possible with custom macros or custom functions. Thanks - Davis ([email protected])

    I do not think you can call another calc script from within a calc script. An alternative would be to write a MaxL script that strings multiple calc scripts together.Good luck.

  • OPA vs Business Rules - Input / Output formats

    We're thinking about using OPA to write rules, however our input is xml and output is the same xml currently (which is used to create a large number of reports). Does OPA support that? I only see CSV and Databases as the valid inputs? We would like this to run "offline" in an application using a large xml worth of various data so CSV and database connections would not be approapriate. I know Business Rules is an alternative (can run offline outside of SOA i believe using the java api?) but Im trying to determine if OPA is an option available to us in this case.
    large XML(s) ---> Rules (via Java command line) ---> Results XML (built from the various xmls and results) --> various reports created
    Edited by: user12626385 on 02-Nov-2012 07:36
    Edited by: user12626385 on 02-Nov-2012 07:58

    By the way, Java command line launching web service client to read and transmit XML to local or remote multiithreaded webservice to consume and return XML with decisions returned to client to aggregate, write, etc. the results is certainly achievable. However, you may want to consider the possible advantages of staging the data in a database and leveraging the OPA Batch Processor for high-performance (both on the data read/write and processing levels). This alternative may prove higher performance overall and utilize more off-the-shelf components than direct reading/writing of XML as files from web service client software.

  • Two business rules runtime errors

    Hi,
    The business rules looks very nice but I got two runtime errors, The first I have to deploy twice else I got a wdsl error
    08/02/17 13:05:16 -------> CompositeDeployerTimer: deploying composites ...
    08/02/17 13:05:16 --------->deploying composite model: businessrules/br!1.0*2008-02-17_10-23-41_328
    17-feb-2008 13:05:16 oracle.integration.platform.PlatformMessages warningUnableRegisterService
    WARNING: Unable to register service.
    oracle.fabric.common.FabricException: Error in getting XML input stream: OrderCheckRules_DecisionService.wsdl: Error in getting XML input stream: OrderCheckRules_DecisionService.wsdl: Error in getting XML input stream: oramds:/br/OrderCheckRules_DecisionService.wsdl: MDS-00054: Het bestand dat moet worden geladen oramds:/br/OrderCheckRules_DecisionService.wsdl bestaat niet.
         at oracle.integration.platform.common.MDSMetadataManagerImpl.getDocumentAsInputStream(MDSMetadataManagerImpl.java:341)
         at oracle.fabric.common.wsdl.WSDLManager.loadWSDL(WSDLManager.java:141)
         at oracle.fabric.composite.model.CompositeModel.loadImports(CompositeModel.java:149)
         at oracle.fabric.composite.model.CompositeModel.getWSDLManager(CompositeModel.java:130)
         at oracle.integration.platform.blocks.soap.WebServiceEntryBindingComponent.load(WebServiceEntryBindingComponent.java:89)
    The other is more serious. All the business rules fails with the same error.
    17-feb-2008 13:11:45 oracle.bpel.services.common.ServicesLogger __log
    SEVERE: <.> ORABPEL-36335
    Fact not found in the rule engine working memory, rule session execution failed.
    The rule session bpel:1701 failed because an instance of the fact credit_check_br.OUTPUT could not be found in the working memory of the rule session.
    This is most likely a rule modeling error. The decision service interaction expects the fact instance to exist in the working memory of the rule session. Check the rule actions in rule designer and make sure that a fact of the expected type is being asserted. Contact oracle support if error is not fixable.
    17-feb-2008 13:11:45 oracle.bpel.services.common.ServicesLogger __log
    SEVERE: <.>      at oracle.bpel.services.rules.rpi.oracle2.OracleRuleSession.executeUnitOfWork(OracleRuleSession.java:516)
    17-feb-2008 13:11:45 oracle.bpel.services.common.ServicesLogger __log
    SEVERE: <.>      at oracle.bpel.services.rules.rpi.AbstractDefaultRuleSession.execute(AbstractDefaultRuleSession.java:272)
    17-feb-2008 13:11:45 oracle.bpel.services.common.ServicesLogger __log
    SEVERE: <.>      at oracle.bpel.services.rules.rpi.oracle2.OracleRuleSession.execute(OracleRuleSession.java:246)
    17-feb-2008 13:11:45 oracle.bpel.services.common.ServicesLogger __log
    SEVERE: <.>      at oracle.bpel.services.rules.impl.DecisionServiceImpl.process(DecisionServiceImpl.java:1273)
    17-feb-2008 13:11:45 oracle.bpel.services.common.ServicesLogger __log
    SEVERE: <.>      at java.lang.Thread.run(Thread.java:595)
    17-feb-2008 13:11:45 oracle.bpel.services.common.ServicesLogger __log
    SEVERE: <.> ORABPEL-36333
    Error while executing the rule session.
    The rule session bpel:1701 failed to execute.
    Check the underlying exception and correct the error. Contact oracle support if error is not fixable.
    17-feb-2008 13:11:45 oracle.bpel.services.common.ServicesLogger __log
    SEVERE: <.>      at oracle.bpel.services.rules.rpi.AbstractDefaultRuleSession.execute(AbstractDefaultRuleSession.java:287)
    SEVERE: <.> Fact not found in the rule engine working memory, rule session execution failed.
    The rule session bpel:1701 failed because an instance of the fact credit_check_br.OUTPUT could not be found in the working memory of the rule session.
    This is most likely a rule modeling error. The decision service interaction expects the fact instance to exist in the working memory of the rule session. Check the rule actions in rule designer and make sure that a fact of the expected type is being asserted. Contact oracle support if error is not fixable.

    I'm not sure what you did to create the rule you are running here. Did you try the Rules chapter of the 105 sample on the TP3 page? That one does work.
    Once you have it working using the sample, try your exercise again and let us know what you did to create your rule. There are many permutations here and we want to know what doesn't work.
    Heidi.

  • BPEL11g - Business Rules error

    Hi
    I have created a business rule in SOA11gR1. I have a common XSD which holds request and response and below is the Input and as well as output xml structure.\
    REQ:
    <root>
    <request>
    <Name>James</Name>
    <request>
    </root>
    RES:
    <root>
    <response>
    <Code>200</Code>
    <response>
    </root>
    The rule which i implemented was - if Name is null , then set Code as 200 in the Ruleset_1
    IF
    root$request.Name==null
    THEN
    assert new root$response(Code:"200")
    I havnt touched anything in Desicion function, links,Facts...
    I am getting the below ERROR while trying to deploy. Not sure what i have missed and can anyone get me more details on Business rules would be very useful.
    [08:18:12 PM] Error deploying archive sca_Project1_rev1.0.jar to partition "default" on server soa_server1 [CHETC206027821.SID.BT.COM:8001]
    [08:18:12 PM] HTTP error code returned [500]
    [08:18:12 PM] Error message from server:
    Error during deployment: Error occurred during deployment of component: OracleRules1 to service engine: implementation.decision, for composite: Project1: The XML-Schema file for the fact oracle.rules.sdk2.decisionpoint.wsfacts.DecisionPointInputs could not be found in the composite.
    The XML-Schema file DecisionPoint.xsd could not be found in the composite. The XML fact oracle.rules.sdk2.decisionpoint.wsfacts.DecisionPointInputs of target namespace http://xmlns.oracle.com/rules/rules/decisionpoint assumes the existence of the schema file in the composite.
    Check the composite for the schema DecisionPoint.xsd and make sure it has target namespace http://xmlns.oracle.com/rules/rules/decisionpoint. The schema is expeccted in the project xsd or businessCatalog folder. If the error persists, contact Oracle Support Services.
    thanks
    Sesha

    Can anyone help me on this..

  • Business Rules - faulted while invoking operation "callFunctionStateless"

    Hello, everyone,
    I have a composite application which receives a file through an FTP adapter and re-names it depending on the filename and its body contents using Business Rules. I had deployed it and everything was working fine for about a week and a half, until all of a sudden the composite started completing with errors in the Decision Service Component of the BPEL process. Below is a picture of the payload of the last working composite instance (sorry, for some reason I can't attach a picture to the post and I thought it'd be easier to look at the error like this instead of just plain text ):
    https://www.dropbox.com/s/hw60ms2s7n4bl1v/working.jpg
    And then boom, a minute later, it gives me an error and continues to since then:
    https://www.dropbox.com/s/uhq0d2ajpxydf15/not_working.jpg
    The payload it receives in the second picture is almost the exact same thing (similar body, similar filename that only differs in the sequencing number) and yet for some reason it has stopped returning the output of the rules even though the input facts ARE in the business rules (it's not like I could have changed anything in the composite under a minute ).
    Strangely, in some files it gives me a selectionFailure for the dsOut payload of the rules engine in the Rules_Service_to_Facts although those types of files had been previously processed with NO problem:
    <details>
    <from-spec>
    <from  variable="dsOut"  part="payload">
    <query>ns2:resultList/ns6:response/ns6:pathDestino</query> 
    </from>
    </from-spec>
    <variable>
    <message>dsOut</message> 
    </variable>
    <fault>
    <bpelFault>
    <faultType>0</faultType> 
    <selectionFailure/>
    </bpelFault>
    </fault>
    </details>
    ...and even if those facts weren't in the ruleset, it should give me a "Fact not found in the working ruleset" (or something like that) error, which I had previously encountered and which was my fault.
    Sometimes it gives me these three errors at once:
    Non Recoverable System Fault :
    faultName: {{http://xmlns.oracle.com/DynamicDirectoryRules/DynamicDirectoryRules_DecisionService}operationErroredFault} parts: {{ payload=<errorInfo xmlns="http://xmlns.oracle.com/DynamicDirectoryRules/DynamicDirectoryRules_DecisionService"><errorMessage>-1</errorMessage></errorInfo>} cause: {null}
    Non Recoverable System Fault :
    <bpelFault><faultType>0</faultType><operationErroredFault xmlns="http://xmlns.oracle.com/DynamicDirectoryRules/DynamicDirectoryRules_DecisionService"><part name="payload"><errorInfo xmlns="http://xmlns.oracle.com/DynamicDirectoryRules/DynamicDirectoryRules_DecisionService"><errorMessage>-1</errorMessage></errorInfo></part></operationErroredFault></bpelFault>
    Non Recoverable Business Fault :
    -1
    Aaaand other times gives me this message instead of the "-1" above:
    Non Recoverable Business Fault :
    Error creating the decision document. Error while trying to create the decision document for DynamicDirectoryRules_DecisionService. Check the underlying exception and correct the error. If the error persists, contact Oracle Support Services.
    I have tried everything, from starting the composite application from scratch, to undeploying and re-deploying the application, to re-creating only the ruleset, testing it out with one file at a time, and still nothing.
    What's also really strange is that I have the exact same composite in a development server and it works fine there, and I've even tried exporting that one and importing it into the one where it's not working, but still gives me errors.
    Does anyone know what it could be that I'm doing wrong or that I'm missing?? Much appreciated!!
    Edit: These are the messages that the logs show when it completes with an error:
    Message
    JCABinding=>  GetFile GetFileAdapter Service GetFile was unable to perform delivery of inbound message to the composite USA-GENERAL/Dynamic_DirectoryFTP!3.1*soa_8ebb50a2-6fbd-4417-ae3b-3f709e4805f3 due to: faultName: {{http://xmlns.oracle.com/DynamicDirectoryRules/DynamicDirectoryRules_DecisionService}operationErroredFault}
    Supplemental Detail
    parts: {{
    payload=<errorInfo xmlns="http://xmlns.oracle.com/DynamicDirectoryRules/DynamicDirectoryRules_DecisionService"><errorMessage>-1</errorMessage></errorInfo>}
    cause: {null}
    Message
    This error contained the exceptions thrown by the underlying routing system. Root cause :
    Supplemental Detail
    oracle.fabric.common.BusinessFaultException
    at oracle.bpel.services.rules.impl.DocumentHandler.createElementFromDecision(DocumentHandler.java:417)
    at oracle.bpel.services.rules.fabric.BusinessRulesServiceEngine.createNormalizedMessage(BusinessRulesServiceEngine.java:2747)
    at oracle.bpel.services.rules.fabric.BusinessRulesServiceEngine.request(BusinessRulesServiceEngine.java:1057)
    at oracle.integration.platform.blocks.mesh.SynchronousMessageHandler.doRequest(SynchronousMessageHandler.java:139)
    at oracle.integration.platform.blocks.mesh.MessageRouter.request(MessageRouter.java:182)
    at oracle.integration.platform.blocks.mesh.MeshImpl.request(MeshImpl.java:190)
    at sun.reflect.GeneratedMethodAccessor2881.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
    at oracle.integration.platform.metrics.PhaseEventAspect.invoke(PhaseEventAspect.java:71)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
    at com.sun.proxy.$Proxy392.request(Unknown Source)
    <.> Error creating the decision document.
    Supplemental Detail
    Error while trying to create the decision document for DynamicDirectoryRules_DecisionService.
    Check the underlying exception and correct the error. If the error persists, contact Oracle Support Services. 
    -1 Error creating the decision document.
    Error while trying to create the decision document for DynamicDirectoryRules_DecisionService.
    Check the underlying exception and correct the error. If the error persists, contact Oracle Support Services. 
    -1
    at oracle.bpel.services.rules.impl.DocumentHandler.createElementFromDecision(DocumentHandler.java:417)
    at oracle.bpel.services.rules.fabric.BusinessRulesServiceEngine.createNormalizedMessage(BusinessRulesServiceEngine.java:2747)
    at oracle.bpel.services.rules.fabric.BusinessRulesServiceEngine.request(BusinessRulesServiceEngine.java:1057)
    at oracle.integration.platform.blocks.mesh.SynchronousMessageHandler.doRequest(SynchronousMessageHandler.java:139)
    at oracle.integration.platform.blocks.mesh.MessageRouter.request(MessageRouter.java:182)
    at oracle.integration.platform.blocks.mesh.MeshImpl.request(MeshImpl.java:190)
    at sun.reflect.GeneratedMethodAccessor2881.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
    at oracle.integration.platform.metrics.PhaseEventAspect.invoke(PhaseEventAspect.java:71)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
    at com.sun.proxy.$Proxy392.request(Unknown Source)

    I have same issue

  • Business Rules Error when Decision Function surfaced as WebService in BPM

    To use a BusinessRule as from a Business Rules activity,it needs to be surfaced as a WebService.
    I've run into an issue where as soon as I check that box and save, the BusinessRule in question goes into a error mode when viewed from the BPM Project Manager (which is why this question is posted here).
    The scenario is this:
    My types are defiend in XSD. There is a SimpleType - FooStepTypeType - which is a retricted xs:string, the common way top create an enumeration. I import this as an XML fact, it creates a Enum bucketset, which is perfect. I create a decision function - DecisionFunction1 - which has an input parameter of this type and a boolean output. I set up a simple decision table to use the input and assert the output. The editor is happy.
    At this point, I can't use the DF in my process, as it's not exposed a service, and won't be selectable via the the Properties/Implementation of a Business Rules activity.
    A soon as I mark the DF as a WebService and save it, an the rule disappears from the Rules section of the Business Catalog and reappears at the root of the catalog in error. In some cases it can't be edited.
    Hovering over the error file produced this error message:
    The argument ‘step’ of decision function ‘DecisionFunction1’ could not build because of ‘BPM-71517: Unable to identify the parameter QName. Cause: ‘FooStepTypeType. Action: Make sure that the decision function parameter is of XML type and exactly one XML Schema Element exists that represents the parameter’.
    My XSD previously did not contain a freestanding element of this type, but had elements defined in another complex type of this type. Adding a freestanding element didn't change anything. In fact it seems that elements are not avaialble to be imported as XMLFacts, only types.
    At this point, if the Rules editor is still open, the DF can be "unserviced" and after saving may be recoverable with a JDev restart. If not, manually removing the DF from the .rules xml file can help recover the file so that it can be edited again.
    SO: THE QUESTIONS.
    Why can't I use a simpleType as an input parameter for a DF exposed as a WebService? What is BPM-71517 asking me to do exactly? I can't find any references to it via searching. Why does eveything seem fine until I expose it?
    Addendum - using JDev 11.1.1.4.0 with BPM tools 11.1.1.4.0.5682
    Addendum2 - upgraded to 11.1.1.5.0 and the problem is still there.....
    TIA,
    Bill
    Edited by: wylderbeast on May 20, 2011 9:38 AM
    Edited by: wylderbeast on May 20, 2011 10:09 AM
    Edited by: wylderbeast on May 31, 2011 3:22 PM

    Further invesitgation bears this problem out.
    Oracle support recommend wrapping the SimpleType in a ComplexType. This does work, but now I have an extra wrapper element to deal with. I either have to use the wrapped type in my other complex, composed Types and/or add an external wrapping element when trying to create Business Services in BPM to call the BusinessRules I've created.
    This is a bit messy.
    To be clear, this does not seem to be an issue with Business Rules; the BR editor and generation of Facts (including simple restricted types -> JAXB 2.0/Java Enumerations) seems to work correctly. There seems to be an issue exposing DFs as Services. The code which generated the WSDL and its supporting types seems to choke on restricted SimpleTypes.
    As a side note, it seems that HumanTasks have a similar limitation
    Edited by: wylderbeast on May 31, 2011 3:27 PM

  • Help PLEASE !!!!!!!!!! Accout Transformation Business Rule

    Hi<br>
    I am trying to use the account transformation Business Rule in BPC 7 for MS. I have stored data gainst the the following <br>
    application = legal<br>
    period = 2009.006<br>
    category = Actual<br>
    ConsolView = LC<br>
    Intco = I_9005<br>
    Measure = Periodic<br>
    DataSourceL = input<br>
    Account  =650110 and 650115<br>
    I have built a report to display this data and to display account 100000
    <br>
    My logic to call the rule is
    <br>
    *RUN_STORED_PROCEDURE=SPRUNCALCACCOUNT( '%APP%', 'ACTUAL' ,'LC',  %SCOPETABLE%, '%LOGTABLE%', 'ABC',99 )<br>
    *Commit
    <br>
    I run my logic in debugger and in the Region tab I set Category to Actual and the Time to 2009.006
    <br>
    In the Business Rule I have a transformation group of ABC and in it I have two rows. I have tried many combinations of parameter values but generally I set the source account to 650110 and 650015 and the destination account to 100000 and leave all other fields empty.
    <br>
    When I run there are no error messages but no data is moved to account 100000.
    <br>
    The log contents are;
    <br>
    <br>
    Start time --->5:01:13 PM  -  Date:26/06/2009  (build code:254)
    <br>
    <br>
    <br>
    User:EXTENDTEC\BPC_SYSADMIN
    <br>
    Appset:Austereo
    <br>
    App:Legal
    <br>
    Logic mode:1
    <br>
    Logic by:
    <br>
    Scope by:
    <br>
    Data File:
    <br>
    Debug <br>
    File:C:\BPC\DATA\WebFolders\Austereo\Legal\PrivatePublications\BPC_SYSADMIN\TempFiles\DebugLogic.Log
    <br>
    Logic File:Acct Transform ABC.LGF
    <br>
    Selection:DIMENSION:Category|ACTUAL|DIMENSION:Time|2009.006|
    <br>
    Run mode:1
    <br>
    Query size:2
    <br>
    Delim:,
    <br>
    Query type:0
    <br>
    Simulation:0
    <br>
    Calc diff.:1
    <br>
    Formula script:
    <br>
    Max Members:
    <br>
    Test mode:0
    <br>
    Is Modelling:1
    <br>
    Number of logic calls:1
    <br>
    <br>
    Call no. 1, logic:C:\BPC\DATA\WebFolders\Austereo\AdminApp\Legal\Acct Transform ABC.LGF
    <br>
    <br>
    Building sub-query 1
    <br>
    <br>
    Query Type:0
    <br>
    Max members:
    <br>
    Executing SPRUNCALCACCOUNT  'Legal', 'ACTUAL' ,'LC',  SPSCOPE_428552, 'SPLOG_486004', 'ABC',99
    <br>
    <br>
    SPRunCalcAccount Version 7.0.112
    <br>
    <br>
    Time to run stored procedure:.6 sec.
    <br>
    call 1 completed and data posted in 0.7 sec.
    <br>
    Run completed in 0.7 sec.
    <br>
    <br>
    End time --->5:01:14 PM  -  Date:26/06/2009
    <br>
    <br>
    I have spent two days trying to get this thing to work. Am I correct in assuming the purpose of this is to copy data from the source account to the destination account. Can somebody please tell me whether there are other factors that control a business rule.
    <br>
    I have spoken to most of the Australian BPC experts and none have successfully invoked the SPRUNCALCACCOUNT. I have read all available documentation and not found an explanation that sheds light on what I am doing wrong. Has anyone successfully used theis Business rule?
    <br>
    Thanks in advance
    <br>

    Hi Bronwen
    Whether you included the System_contants.LGL and Consolidation_Library.LGL in the logic file.
    *INCLUDE SYSTEM_CONSTANTS.LGL
    *SYSLIB CONSOLIDATION_LIBRARY.LGL
    Syntax used & its works.
    *RUN_STORED_PROCEDURE=SPRUNCALCACCOUNT([%APP%],[ACTUAL],[LC],[%Scopetable%],[%Logtable%],[ABCC])
    Give a try!
    Note: Use the Square brackets [[%APP%]] in the syntax.
    after posting this thread, syntax is showing as URL.
    Cheers
    Uma
    Edited by: Uma Swaminathan on Jun 26, 2009 9:37 AM

  • Oracle Business Rules Custom Functions

    Hi,
    I have an input fact with attributes A,B,C & D and an output fact with E, C & D. (C & D attributes are common in both facts)
    Whenever the rule matches, we are asserting new output fact by assigning a constant value to attribute 'E' and also the transactional values to C & D using input fact's C & D attributes.
    This way, we are making sure to return the response with matched transactional values.
    But we would like to do this by writing a custom function so that user need not assign this mapping manually whenever any new rule creates. User just assigns the constant value to attribute E but values to C & D attributes should be assigned automatically.
    Please let me know your suggestions on this.
    Regards,
    KK

    Hi Subha,
    Please find the answers inline :
    1. In Oracle Business Rules, can one rule invoke another rule?
    -- > Yes, once a rule gets executed, it might create more facts, that in turn fire another rule. It all runs around the inout/output facts.
    2. Can we make two rule sets dependent on each other?
    -- > Yes
    3. Can we return data of types String, Boolean, Integer, Double from a rule execution?
    -- > Yes, you can use java code with functions.
    4. Can we build complex logical AND, OR assertions in Oracle rules?
    -- > Java programming language is needed for this..
    5. Can we use custom business objects (not Java data types) within a rule?
    -- > Dont think so
    Regards
    Anirudh Pucha

Maybe you are looking for

  • Internet Expenses R12 expense report notification due date change

    Hi Gurus, R12-IExpenses Please let me know can we change the due date displayed along the right side of the notification of an Expense report submitted by an Employee in I Expenses? Is there a setup for that? Also could you say if there is any out of

  • Is Adobe Reader compatable with Window 7.

    I can't get documents to open from website, just opens blank box. I have unistalled Adboe Reader 2 times and reinstalled, still won't open documents. An erroe comes up, " Unable to Download DocumentView.aspx. What can I do

  • IPS Tech Tips: IPS Best Practices with Cisco Remote Management Services

    Hi Folks - Another IPS Tech Tip coming up and this time we will be hearing from some past and current Cisco Remote Services members on their best practice suggestions. As always these are about 30 minutes of content and then Q&A - a low cost high rew

  • Classless netmask in Cisco RV 120 W

    I need to assign the mask 255.255.252.0 in the LAN interface but the web configurator does not allow it. The web configurator only permit assign the 255.255.255.0 netmask. My LAN segment is greater than 254 network devices and I cannot understand how

  • Clusterware and crsctl command

    Hi! Does anybody have a crsctl manual or man pages, where 'crsctl check boot' command is explained. Thanks, Borut