Unbounded element in Business Rules

Hi everyone,
I am trying to achieve in returning the same element (unbounded) when the rules condition are satisfied. I want to return the below response message:
<newJoinerRulesResponse>
<Rule>
<Code>Example</Code>
<Description>test</Description>
</Rule>
<Rule>
<Code>Example2</Code>
<Description>test2</Description>
</Rule>
</newJoinerRulesResponse>
As you can see the rule engine need to return more then one element Rule. How can I achieve this? I my example I am using two rules:
1.When the salary is > 50000 then create element rule, with code = Example and Description = test
2. When the age of a person is not between 16 and 65 then create an extra element rule with code = example2 and Description = test2
The Rule element in my xsd schema is unbounded. This will create an fact RuleType from type list. The problem with the type list that I cant create a new RuleType, while this is possible without the unbounded element. However then I can only create one Rule element in the response (and not two what I really want!). I think the way forward is a function. The function I created named AddRulesElement consist of the below code:
- I have created three parameters: arg_code that retrieved the value used for element Code, one for the element Description (arg_description) and one parameter based on type ResultRulesType (arg_resulttype). This is the complextype containing the element Rule.
The code in the body is:
assign new RuleType ResultRule = new RuleType()
assign ResultRule.code = arg_code
assign ResultRule.description = arg_description
call arg_resulttype.rule.add (ResultRule.code.length(), ResultRule)
From the two rule set I then call the function as follow:
IF NewJoinerRulesType.salary > 50000
THEN
**call AddRulesElement (arg_code: "Example", arg_description: "Test", arg_resultype: ResultRulesTypes)**
IF NewJoinerRulesType.age < 16 or NewJoinerRulesType.age > 65
THEN
**call AddRulesElement (arg_code: "Example2", arg_description: "Test2", arg_resultype: ResultRulesTypes)**
This keep given me the below error:
RUL-05164: The fact type "ResultRulesType" is referenced, but is not asserted nor input.
Please help how I can achieve a response of two elements Rule!! I have included the xsd schema I use for the rules below.
Many Thanks
Ren
P.s. please note my responses will be slow as I am away till next week Tuesday.
My xsd schema is of the following structure:
<?xml version= '1.0' encoding= 'UTF-8' ?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:vnj="http://www.example/soa/initiative/definition/validateNewJoinerService/xsd/TestUnboundedRules_v1_0"
targetNamespace="http://www.example/soa/initiative/definition/validateNewJoinerService/xsd/TestUnboundedRules_v1_0"
elementFormDefault="qualified">
<xsd:element name="newJoinerRulesRequest" type="vnj:newJoinerRulesType">
<xsd:annotation>
<xsd:documentation>A sample element</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="newJoinerRulesResponse" type="vnj:ResultRulesType">
<xsd:annotation>
<xsd:documentation>A sample element</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:complexType name="newJoinerRulesType">
<xsd:sequence>
<xsd:sequence>
<xsd:element name="Birthday" type="xsd:date"/>
<xsd:element name="Salary" type="xsd:integer"/>
</xsd:sequence>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="ResultRulesType">
<xsd:sequence>
<xsd:element name="Rule" type="vnj:RuleType" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="RuleType">
<xsd:sequence>
<xsd:element name="RuleSequence" type="xsd:integer" minOccurs="0"/>
<xsd:element name="Code" type="xsd:string" minOccurs="0" maxOccurs="1"/>
<xsd:element name="Description" type="xsd:string" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>

He everyone,
I found out that I first need to insert an empty ResultType in the rule before I can call the function. This now works but at run-time I am now receiving the below error:
Fact not found in the rule engine working memory, rule session execution failed. The rule session 70005 failed because an instance of the fact emample.soa.initiative.definition.validatenewjoinerservice.xsd.newjoinerrules_v1_0.ResultRulesType 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. If the error persists, contact Oracle Support Services. 70005
I hope somebody can help!!
Many Thanks
Ren

Similar Messages

  • In Business Rule child elements of Unbounded element are not visible.

    Hi All,
    Jdev version 11.1.1.7.0
    I am facing one issue in Business Rule...
    Scenario: I am creating Approval Service (BPEL) with Human Work flow and Bunises Rule.
    I am assingning participant in HW by using Rule based(Connecting HW and BR).
    Problem here is:
    Shema has "unbounded" element.
    <element name="ExpenseItem" maxOccurs="unbounded">
         <complexType>
          <sequence>
           <element name="ItemID" type="string"/>
           <element name="ItemName" type="string"/>
           <element name="ItemPrpjectID" type="string"/>
           <element name="ItemStatus" type="string"/>
          </sequence>
         </complexType>
        </element>
    Whenever I create Busines rules to configure rules.
    While configuring rules child elements of  ExpenseItem are not visible. But those are neccesary to configure rules.
    If you can help to me resolve would help.
    Is it a bedault behaviour of BR? If so how can i acheive this?
    Thanks,
    Santosh

    Solution found:
    Click on RuleSet which you have created.
    Expand Rule inside it.
    Enable Advanced mode and Tree mode and click OK.
    Select Root as Task and click on insert pattren and create pattren which is based on unbounded element (here its meant as fact)
    Once you create pattren , will be able access elements under unbounded element for Business rule configuration.

  • VAR syntax in business rule

    <p>Hi,</p><p>I'm trying VAR command in busines rule.</p><p> </p><p>Type of local variables declared by VAR in business rule can benumeric only?</p><p>I shoud use string variables.</p>

    Solution found:
    Click on RuleSet which you have created.
    Expand Rule inside it.
    Enable Advanced mode and Tree mode and click OK.
    Select Root as Task and click on insert pattren and create pattren which is based on unbounded element (here its meant as fact)
    Once you create pattren , will be able access elements under unbounded element for Business rule configuration.

  • Hyperion Business Rule Error: Cannot retrieve connected root element for

    Hi,
    I am trying to open a business rule in EAS and I am recieving the following error: Cannot retrieve connected root element for Planning/Servername/Application/Database.
    I am able to connect to the application via Planning Web, but I am recieving this message when I am trying to open the business rule in eas.
    hoping if someone has come across this issue before and has been able to successfully fix it.

    Hi,
    I have 2 BRs, one is with RTP and another without RTP (basically a clacscript as BR).
    I don't have any issue with the BR without RTP.
    When I try to validate BR withRTP, validation is failing with
    Unable to run or validate this rule (ConsolidateTestRTP) against the following location: Planning/servername/appname/dbname for user abcd.
    Detail:Exception occurred. Please check your log file for details.
    2009-04-09 12:35:58,803 WARN AWT-EventQueue-0 com.hyperion.hbr.core.MetadataManagerServerRemote - Cannot retrieve connected root element for Planning/servername/appname/dbname
    Restarted RMI,Planning,EAS services. Logged into planning first and then to EAS. Still getting error
    2009-04-09 12:41:39,881 FATAL AWT-EventQueue-0 com.hyperion.hbr.client.LauncherWindow - Exception:
    With thought of may be the syntax of RTPs in BR changed, deleted RTP in the code but still BR has RTP (I mean BR has RTP and is not used in calculations), still getting error during validation. I can create new BRs and associate to outline.
    Thanks

  • Get cell value in Planning Data form and using it in a business rule

    Hi Everybody,
    if i set the data type of an Account Member as text, is there a way to get the value inserted by the user in a dataform, turning it as dimensional member and using it in a business rule?
    So, if the user insert the value "USA" in a cell, can i use any functions to tell essbase that "USA" is a dimensional member and then using it in a business rule, for example in a cross-dimension like Period1->FY12->USA?
    I tried to use the function @Member and it doesn't work, but i'm wondering if there is a way that can let me get the value inserted and use it just like a dimensional member. What are the ways that can let user input value that can be used in a business rule? I think one is by using SmartList, is there any other ways? Maybe using variables?? As an alternative i tried to use Prompt Variable but there are too many members on which the rule must run.
    Please help me, i wanna know if i can or not let the user input the member on which the rule must run...
    Thank all guys
    Bye
    Maurizio

    Thanks EW for your answer,
    YesI could use SmartList even if i think it's very tough to handle. My experience on using SmartList in caclc script is not so good. I try to enter in details of my requirement:
    I have 500 account members.
    For each one, I have to calculate the monthly budget by sharing the amount among the months. The user wants to calculate it on the basis of the actual flow(over the months) of an unspecified account of the prior year. The unspecified account must be inserted in a data form.
    So, i could use a Smart List but it colud be of 500 elements and then i should make a rule with as many IF as how many are the accounts. Or im wrong? The only way to use smart list dynamically in a business rule is by referring its values in a IF condition. Or i'm wrong.
    I tried to use execution variable ma it seems don't work. In this case the user must pay attention to write the account correctly, otherwise as you say the rule doesn't work.
    The value in PD0A020 is "PD0A000" (that is a dimensional member). The value in PD0A000 is "hello". In PD0A040 the rule returns "PD0A000" and not "hello" as i would. The function @Member appears to be not able to catch the dimensional member by the value in PD0A000.
    {Example}="test"->"Input"->"Scenario_test"->"FY12"->"PD0A020";
    Fix("test1","Input","Scenario_test","FY12")
    "PD0A040"=@Member({Example});
    endfix
    So, my doubt is: is it possible for Essbase/Planning to use the value inserted in a data form and to turn it in a dimensional member? What are the practicable ways to let the user input/choose the member on which makes the rule run?
    Thank you Ew, thank you guys
    Maurizio

  • Error Creating New Location in Business Rules

    I have installed System 11.1.1.x EAS Web on Windows / WebLogic. When I log into EAS as 'Admin' I can log into Business Rules and Create a New Location. When I log in as any other user, I get a message that "Business Rules Login Successful" but when I try to create a New Location I get and error. I get to the select location screen. When I expand (+)Essbase, I see my Essbase Server. When I expand my Essbase Server, I get this error message:
    Error Connecting to Essbase Server <server name>
    Detail: Exception occurred. Please check your log files for details.
    hbrserver.log:
    2010-01-14 10:02:44,265 WARN [ACTIVE] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)' com.hyperion.hbr.util.UserServerInfoXMLParser - Error while reading file server.xml
    2010-01-14 10:02:44,265 WARN [ACTIVE] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)' com.hyperion.hbr.core.UserManagerCmdListener - EAS error exporting HBR data (xto.exportXml) to the xml transfer object.
    2010-01-14 10:02:44,296 WARN [ACTIVE] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)' com.hyperion.hbr.plugin.essbase.EssbaseMetadataServerElement - Cannot sign on user. Invalid sign on attempt.
    com.essbase.api.base.EssException: Cannot sign on user. Invalid sign on attempt.
         at com.essbase.api.session.Essbase.signOn_internal(Unknown Source)
         at com.essbase.api.session.Essbase.signOn(Unknown Source)
         at com.hyperion.hbr.plugin.essbase.EssbaseMetadataServerElement.connect(Unknown Source)
         at com.hyperion.hbr.plugin.essbase.EssbaseMetadata.getChild(Unknown Source)
         at com.hyperion.hbr.plugin.essbase.EssbaseMetadata.connect(Unknown Source)
         at com.hyperion.hbr.core.MetadataCmdListener.connect(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.essbase.eas.framework.server.application.AbstractCommandListener.handleEvent(Unknown Source)
         at com.essbase.eas.framework.server.application.DefaultCommandDispatcher.dispatchEvent(Unknown Source)
         at com.essbase.eas.framework.server.application.DefaultEventController.handleEvent(Unknown Source)
         at com.essbase.eas.framework.server.application.EventDispatcherWorkListener.handleEvent(Unknown Source)
         at com.essbase.eas.framework.server.application.DefaultWorkDispatcher.dispatchEvent(Unknown Source)
         at com.essbase.eas.framework.server.application.DefaultEventController.handleEvent(Unknown Source)
         at com.essbase.eas.framework.server.application.DefaultApplication.generateWorkEvent(Unknown Source)
         at com.essbase.eas.framework.server.application.DefaultServlet.handleRequest(Unknown Source)
         at com.essbase.eas.server.AppManServlet.doPost(Unknown Source)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3244)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2010)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1916)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1366)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
    2010-01-14 10:02:44,296 WARN [ACTIVE] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)' com.hyperion.hbr.plugin.essbase.EssbaseMetadataServerElement - Error connecting to Essbase server <my essbase server>.
    2010-01-14 10:02:44,296 WARN [ACTIVE] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)' com.hyperion.hbr.plugin.essbase.EssbaseMetadata - Error connecting to Essbase server <my essbase server>.
    hbrclient.log:
    2010-01-13 18:24:45,883 WARN AWT-EventQueue-0 com.hyperion.hbr.core.MetadataManagerServerRemote - Cannot retrieve connected root element for Essbase/<my essbase server>.
    2010-01-13 18:29:41,114 WARN AWT-EventQueue-0 com.hyperion.hbr.core.MetadataManagerServerRemote - Cannot retrieve connected root element for Essbase/<my essbase server>

    John, Thanks for the response.
    The user has all provisions in SS for Essbase and Applications (Server Access as well as Application Administrator). I can explore all the Essbase applications in EAS.
    I have double checked all the provisions and refershed security in EAS. I am still getting the same error.
    Here are a few more interesting things that I have noticed from debugging. The only account with the ability to create "New Locations" or Associate a Business Rule with an Essbase Application is "admin". If I deprovision "admin" in SS, I can no longer create New Locations. If I add the provisions back for "admin" then I can create New Locations. So, that tells me that BR is looking at SS for provisioning of "admin".
    Here is another interesting message in hbrserver.log.
    2010-01-14 11:42:34,377 WARN [ACTIVE] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)' com.hyperion.hbr.security.HbrSecurityAPI - Error retrieving Indirect Users and Groups.
    I get the above message when I 'Right Mouse' on Administration under Business Rules and select "Refresh User List".
    Any additional thoughts?
    Edited by: user3086671 on Jan 14, 2010 9:02 AM

  • Business Rules error when creating new classic planning application in 9.3.

    Im trying to create a new planning application using classis planning application wizard in Workspace. everything seems alright untill i gets an error saying "Business rules cant connect to Planning"
    other than this Business rules working fine and i can open business rules in other applications and i can access business rules repository in EAS.
    Any thoughts on this ?

    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

  • WebForms, Security, Business Rules restore in Planning

    Hello everybody,
    I am working on Hyperion System 9 (shared services, essbase, BI+, planning etc) with Oracle 10g relational repositories.
    I know Planning has 2 command line tools (FormDefUtil.cmd, ExportSecurity.cmd) that allow us to export Planning web data forms and security in txt file.
    My question is: If I don't have the exported files for web forms and security (because my client didn't know about the existence of the 2 tools above and so there is no backup of web form and security) is there another way to restore them?
    Could I use the database backups to restore web forms and security? We do make a backup every night of all Hyperion schemas .
    Same question for Business Rules. My client never made a backup of them (never exported them as .xml), can they be restored from the database's backup?
    If web forms, security, BR can be restored from database, what are the steps to be followed in order to perform such an operation?
    Thank you for you help!
    Daniela

    Hi,
    If there has been a backup of the relational database then you will be able to restore the database from a previous day over the current database.
    You need to stop planning first, restore database, start planning, log in to make sure everything is alright.
    That is the usual way to restore the planning elements.
    The EAS database will follow the same sort of concept.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Problem with business rule

    Hi all,
    I have a problem with a business rule (BR) deployed as a standalone Descision service.
    the BR consists on a simple decision table wich compare an input (bigInteger) with 50. It returns two facts (as output).
    the two conditions are confugured (i.e. <50 and >=50).
    the Decision service (stateless) is called in a simple BPEL process. in some cases the the assign activity in the bpel process rise this exception :
    <bpelFault><faultType>0</faultType><selectionFailure xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/"><part name="summary"><summary>empty variable/expression result. The XPath variable or expression /ns5:callFunctionStatelessDecision/ns5:resultList/ns6:processResponse/ns6:CodeRetour is empty at line 440. An attempt to read or copy data referenced or computed by the XPath expression either had invalid data, according to the XML schema, or did not contain certain optional data. Ensure that the variable or expression result named in the error message is not empty. Enable XML schema validation of related variables to ensure the run-time data is valid. </summary></part></selectionFailure></bpelFault>
    it seems like an output of the business rule used by the assign after the invoke activity is empty.
    But in the input payload for the decision service all elements are not empty. I can't inderstand how the OBR return an empty variable?
    Any help please?

    In the taskflow you should be capable to trace step by step what happens in the execution. Does this give any clue, e.g. why sometimes the assert does not work?
    cu
    Andreas

  • BPC NW - Error in Business Rule for Account transformation rule table

    hi
    I have given the Account transformation Rule to move Amount from Account A to Account B and then I have given the following script logic in the default script
    **RUN_PROGRAM CALC_ACCOUNT*
    *CATEGORY = Category*
    *CURRENCY = RptCurrency*
    *TID_RA = %TIME_SET%*
    *CALC=A*
    *OTHER = ENTITY=C1000*
    **ENDRUN_PROGRAM*
    But when I try to load data through Input schedule in Account A and expect amount to transfer to Account B, I m getting an error
    Book Name:Book4
    Application : PLANNING*
    Status : Failed*
    Submitted Count : 1*
    Accepted Count : 1*
    Rejected Count : 0*
    - Error Message -*
    Error running default logic (Business rules are not available)
    - Rejected record list -*
    Error converting records: The root element is missing.
    Can someone please advice me what to do ....

    hi Marcel,
    Lot of thanks for your answer.
    But I have used your logic after removing GROUPS as I dont have GROUPS dimension in my application.
    *RUN_PROGRAM CALC_ACCOUNT
    CATEGORY = %CATEGORY_SET%
    TID_RA = %TIME_SET%
    CALC=FX
    OTHER = [ENTITY=%ENTITY_SET%]
    *ENDRUN_PROGRAM
    This is the error I m getting
    Book Name:Book3
         Application     :     PLANNING
         Status          :     Failed
         Submitted Count     :     1
         Accepted Count     :     1
         Rejected Count     :     0
              - Error Message -
    Error running default logic (Business rules are not available)
              - Rejected record list -
    Error converting records: The root element is missing.
    Can you please advice
    a) Does it mean some issue with my client installation as I dont see these LGF files. I even dont see the data folder in which lgf files are supposed to be present
    b) Where to find information for this interface CALC_ACCOUNT? How did you decide to use 'FX' and how do you know which dimensions to use. Like I dont have GROUPS.
    Please give me your comments.
    regards
    Gaurav

  • Problem in mapping Task payload parameters to Oracle Business Rules facts

    Hi all,
    We are using complex types from our project XSDs inside the Human Task payload. We intend to use these Human Task payload parameters to build routing rules using the Oracle Business Rules interface. Our observation is that when the complexity of these complex types increase, the business rules editor does not show these as facts that can be used in formulating rules.
    Has anybody faced such a problem before. Any help is appreciated.
    We are using the following link to add routing rules –
    http://docs.oracle.com/cd/E25054_01/dev.1111/e10224/bp_decision.htm
    Version details :
    ADF Business Components     11.1.1.60.13
    Java(TM) Platform     1.6.0_29
    Oracle IDE     11.1.1.5.37.60.13
    SOA Composite Editor     11.1.1.5.0.01.74
    Thanks,
    Yamini.

    Problem solved. There was an element in the xml schema that had nillable = true. Because of this the XML Fact for that element would no longer be available in the BPEL Process. Removing the nillable and generating the XML Facts again solved the missing variable problem.

  • 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

  • Unable to create Human Task and Business Rule in JDeveloper

    Hello,
    I am unable to create Human Task or business rule in my JDev... am getting below error in Feedback tab.
    Previously reported error [NoSuchMethodError in o.mds.internal.dt.config.NamespaceConfigBuilder:397]
    And Below is the message log trace.
    Oct 15, 2012 12:58:51 PM oracle.security.jps.internal.common.util.StrictValidationEventHandler handleEvent
    WARNING: Failed to validate the xml content. SchemaLocation: schemaLocation value = 'http://xmlns.oracle.com/oracleas/schema/11/jps-config-11_1.xsd' must have even number of URI's. Location: unavailable.
    Oct 15, 2012 12:58:51 PM oracle.security.jps.internal.common.util.StrictValidationEventHandler handleEvent
    WARNING: Failed to validate the xml content. cvc-complex-type.2.4.b: The content of element 'propertySets' is not complete. One of '{"http://xmlns.oracle.com/oracleas/schema/11/jps-config-11_1.xsd":propertySet}' is expected. Location: unavailable.
    Oct 15, 2012 12:58:51 PM oracle.jps.common
    WARNING: Failed to validate the xml content. cvc-complex-type.2.4.b: The content of element 'propertySets' is not complete. One of '{"http://xmlns.oracle.com/oracleas/schema/11/jps-config-11_1.xsd":propertySet}' is expected. Location: line 3 column 19.
    Any idea/suggestions would be greatly helpful.
    Thanks,
    Sudheer

    Its due to JDeveloper installation or cache issue...
    I uninstalled completely and installed again. I am able to create Human Task now. Maybe it helps someone.
    -Sudheer

  • Unable to access Business Rules Facts after refreshing XML Facts

    I have created a business rule using an xml schema to generate the XML Facts. Then I created a Decision Function to call a Ruleset to process the information in the XML Facts. This decision function has input and ouput parameters from the XML Facts.
    The decision function is used inside a BPEL Process, by defining the Dictionary has the created business, defined the Service has de Decision Service. After this configuration I'm able to define the Input Facts and Output Facts from and to a variable in the bpel process. Using the Decision Fact Map window I define the input and output to the exposed Business Rule Facts. This works just fine. The BPEL runs and the Rules are correctly used.
    When I change my xml schema to add more elements and complex types I use the "Reload XML Facts From Updated Schemas" option available in the bussiness rule. After this operation I will no longer have access to the Bussiness Rule Facts in the Decision Fact Map window. So I'm no longer able to call the decision function.
    Yet the business rule has no problems and i have tested using a fuction to call the Decision Function.
    Is this a bug or a feature?
    I'm using Oracle 11g with the SOA Composite Editor 11.1.1.0.0.52.19.

    Problem solved. There was an element in the xml schema that had nillable = true. Because of this the XML Fact for that element would no longer be available in the BPEL Process. Removing the nillable and generating the XML Facts again solved the missing variable problem.

  • Creating simple Business Rules in BPEL process

    Hi,
    I have an environment consisting of SOA Suite 11g running on Weblogic Server. I'm using JDeveloper 11g for development.
    Scenario
    I have a BPEL process which starts off by polling a DB table and I then assign the input to a Recieve activity's InputVariable. I have a 'Number' column which will contain a number between 1 and 3. I then require Business Rules (BR) to be set up which read this value, and based on the number, assign a 'Name' string (which is to be the output variable from the business rules) to be used later on in BPEL process.
    Problem - I have followed the basic tutorials available in order to set up the business rules, but am getting numerous errors. Firstly, I sometimes find that my input/output variables created during setup of BR component and the XSD based on this, does not have XML Faces automatically created for it (therefore have to create it myself by clicking on the + button and doing this for each element of XSD). When I do get this working, I then double-click on my Business Rules activity in my BPEL process, only to find that the input/output variables here no longer are assignable to my BR input/output variables as I get the following error "Exception: Problem Building Schema!".
    I am not sure why this is, but suspect that my XSD (which is very simple anyway) or the setup steps I follow to define the link to my XSD, are wrong.
    I have taken the following steps so far:
    1. Create empty BPEL process
    2. Set up polling adapter to poll DB table
    3. Create Receive activity and assigned polled input to created variable
    4. Add Business Rules component to composite and set up and create dictionary here. Also set up inputs/outputs to be in form of my XSD elements.
    5. Add Business Rules component to my BPEL process and configure this to include input/output variables (*This is where error occurs*)
    6. Go back to .rules component in composite to define rule and define rule
    Upon deployment, I get many errors most of which pertain to "Unresolved XML element... make sure XML element +xxxxx+ is defined in one of WSDL's that are referenced by the deployment descriptor."
    I have only imported a simple XSD containing two elements to this project. The other XSD is the one of my polling adapter. I've not created any input/output variables for the overall BPEL process as didn't think I was required to.
    Can you please help in getting this process doing the simple activities described at the top.
    I appreciate your help.
    Edited by: user10248308 on 10-Mar-2010 11:49

    Hi,
    Create a project with BPEL composite
    Now drag a business rule
    Now create input variable of type ur requestelement
    and output variable of type response element
    Now in rules designer page take decision table
    and then craete a condition (inputelement.input > 1000) and in the rule select true
    now create another rule select false
    Npw create an action with assertion and select the parameterized box there
    now in designer page for first rule assign some value (say 500) and for second rule some value(100)
    Now in bpel u have to assign a value to input var of BR
    Deploy the process
    If u supply 10000 u will get 500
    if u supply 100 u will get 100
    In the same way u can do by using If-Then
    You can use facts and bucketsets according to ur requirement
    Regards
    PavanKumar.M
    PavanKumar.M

Maybe you are looking for

  • FM to get file name on app server

    Hello experts, I'm trying to use a FM to get the filename of a file on  the application server. The FM I am using is F4_FILENAME_SERVER, but it doesn't seem to work. Does anyone have an alternative? Or maybe someone knows common problems with this FM

  • Music on my iPhone 5s is not loading!!!

    My music won't sync onto my iPhone 5s. I just downloaded the new iTunes update and it didn't help. I have about 30 songs on my phone that are not loading and I don't know what to do to fix this. Some songs from my iTunes on my computer won't even sho

  • ITunes will not open full screen mode in Mavericks

    Hello, Ever since a recent upgrade to Mavericks, iTunes will not open in full screen. When I click the full screen expander in the controls or in View>Enter Full Screen iTunes flashes the library and then back to the movie playing and makes the "funk

  • Salary and Employment Verification in HR Administration UWL

    Hi All, We have deployed ESS 1.41, MSS 1.41 and HRAS 1.41 business packages on Portal EP7.0 EHP1 SP7 When an Employee request for Salary and Employment Verification Letter by going thru ESS-> Benefits and Payament->Salary and Employment Verification,

  • IPhone Messaging Preference

    I just got my iPhone three days ago, and I love it, but I really hate that there isn't a setting so that when I receive a text the phone just vibrates. I bought a ringtone app and have made lots of them and love to hear them, but I don't want to hear