Migrate Business Rules by generating XML

Hi BRF plus experts,
for a project I am currently assigned to I am trying to find an easy way to convert business rules from a legacy systen into BRF Plus v7.
Using XML export functionality and a few simple decision tables and rules the XML structure of exported expression is clear to me. Using the legacy system I can create an Excel extract with contains the required rules characteristics. Due to the large amount of rules (600+) and the fact that the rules as part of the migration are being cleansed I am looking for an automated way of generating an XML file containing the required rules and then import these.
Using VBA is not too difficult to generate the correct XML structure and data.
A problem I am facing however is to understand the identifiers, for example
<FDTNS:APPLICATION_ID>4AA45F9249F46590E10000000A71030D</FDTNS:APPLICATION_ID>
<FDTNS:ID>4BE03E7AEBD93E36E10000000A71030D</FDTNS:ID>
<FDTNS:EXPRESSION_TYPE_ID>0000EEEE001000FFFFFFFFFFFFFFFFFF</FDTNS:EXPRESSION_TYPE_ID>
<FDTNS:RESULT_DATA_OBJECT>4AA8B5FD8800276EE10000000A71030D</FDTNS:RESULT_DATA_OBJECT>
Can somebody provide an explanation on the structure of these ID's? I am assuming there must be a type identifier and some kind of counter included.
Many thx for some support on this.
Regards
Edde Voorheijen

Hi Edde,
what version of BRFplus are you planning to use? I only can assume that "v7" refers to NW 7.0. But the important point here is the Enhancement Package you are on.
I would do it in the following way:
1. Create an XML or cvs file with a well defined structure.
2. Create an ABAP report to upload and convert the data into ABAP (there is lots of reuse available).
3. Create the rules with the BRFplus ABAP API (see package SFDT_DEMO_OBJECTS). Therefore you first should model some parts to:
- understand how the rules could look like in BRFplus
- create some parts like function and data objects that you do not need to create by API but just use
The large volume indicates that you need to use BRFplus in NW 7.0 EhP 2. There you also find a big variety of options in the ruleset that will make the upload easy.
The ID is a technical ID that is generated. Actually it is a UUID.
BR,
Carsten

Similar Messages

  • Error while migrating business rules

    While trying to use the export/import option in EAS to migrate business rules, we have run into an error.
    The export itself is fine. When trying to import, it says this:(even though it lets me select the proper xml file for importing)
    Error while migrating business rules.
    Detail: The import file specified is not a valid business rules xml file. Import will be terminated.
    Detail:Exception occured. Please check your log file for details.
    I am pretty sure I used the inherent format specified for exporting the business rules.
    Both the old and new systems are version 11.1.2.
    The LCM method also failed for the business rules migration.
    Any suggetions?
    Thanks,
    Sujani

    When you export them make sure you don't have "For Calc Mgr" checked, if you do then the import with fail.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Proper way to Migrate Business rules

    Hi all.
    I have a question about migrating business rules from DEV to PROD with 2 seperate Shared Services instance
    I usually do an Import / Export of BR using EAS and then manually setup the projects and security. While this way seems working ok. I wonder if there is a more official way to do this.
    I've seem a Migrate Repository option but am unsure what that suppose to do. I have a feeling that it's not quite what I am looking for. Any advice is greatly appreciated.

    Hi,
    The two methods are pretty much the same in what they do.
    When you export rules it creates an xml file based on the selection you have picked, you can just log into EAS and do this you don't have knowledge about the repository, it is also useful for migrating across versions. You also have the option of changing the xml file before importing it into your target.
    When you migrate the respository you have to physically connect to the database repository and have knowledge of the connection details, it is probably aimed directly at a system admin.
    The options in both methods are pretty much the same, you can choose what you want to export or migrate.
    You hit issues when you export/migrate for instance the location names change and need to be updated, you can update the xml file to change the locations though if you choose the migrate option you won't have that ability.
    The next issue is the user/group accounts which is the biggest flaw, if the users/groups exist on the target and have the exact same SID then they will migrate otherwise they will usually get dropped.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Error in migrating business rules

    Hi,
    We are moving from Dev to QA. In order to migrate business rules, i exported all the rules,global variables and macros by unchecking the calc manager option. Now i replaced all the occurences of my old server name in the xml file with the new server name. Now when i try to open the business rule i get "java.lang.nullpointerexception". Is this any installation issue or i have dont migration wrongly? And i am not able to associate with the outline since i get this error.
    What could be the solution?
    Regards,
    Ragav.

    Have to clicked on the dependents while exporting the rules?
    and anyways you can copy and paste the rules from one server to another.
    Suggestion:
    Copy export a rule first, make proper changes and import that rule, rather then going for bulk.
    If ur on system 11 use LCM.

  • Migrate Business Rules from 9.x to 11.x

    I am trying to migrate business rules from 9.21 to V11.1.1.3
    I used to export the rules, then edit the XML for the correct server and location names, then import into the target server-all with 9.21
    Now when I try the same process, I get this error when importing into V11.1.13
    Detail:Error while importing object properties.
    Detail:com.hyperion.hbr.beans.UserObjAccessFilter.setUserGroupName(java.lang.String)
    I can use the migrate repository option just fine, but then I have to go in with a SQL script and update the location and server names in the relational tables. I prefer the export/import since I can do that without impacting users.
    Any ideas on how to import the rules and resolve this error?
    Thanks
    Jeff

    Hmm no luck with one rule that has no security assigned to it. and no luck with one project with no security.
    Here is the xml for 1 rule that won't import:
    <?xml version="1.0" encoding="UTF-8" ?>
    - <HBRObjects>
    - <Rules>
    - <Rule>
    <property class="java.lang.String" method="setBody" value="ACED00057372001E636F6D2E6879706572696F6E2E6862722E636F72652E52756C65426F6479047B4D7ABDC064F60200065A000564697274795A000B697347726170686963616C4C0007636F6D6D656E747400124C6A6176612F6C616E672F537472696E673B4C000A636F6D706F6E656E747374002C4C636F6D2F6879706572696F6E2F6862722F67726170686963616C2F47726170686963616C566563746F723B4C000872756C655465787471007E00014C000473616C3071007E000178700000740000707402192F2A4553535F4C4F43414C4520456E676C6973685F556E697465645374617465732E4C6174696E314042696E6172792A2F0A534554204147474D49535347204F4E3B0A5345542055504441544543414C4320204F46463B0A0A46495820284275646765742C20223173742050617373222C20264375727242756459722C20404C45564D4252532822506572696F64222C2030292C4072656C61746976652822546F74616C20456D706C6F79656573222C30292C4052454C41544956452822546F74616C20436F6D70616E79222C3029290A0A2043414C432044494D2028224163636F756E7422293B0A0A22456D706C6F79656520546178657322203D2022456D706C6F79656520546178205261746520496E707574222D3E224E6F20456E74697479222D3E224E6F20456D706C6F79656522202A2022546F74616C2053616C617279223B0A0A22456D706C6F7965652042656E656669747322280A0A494620282246542F505422203D3D31290A0A22456D706C6F7965652042656E6566697473223D2242656E65666974205261746520496E707574222D3E224E6F20456E74697479222D3E224E6F20456D706C6F7965652220202A2022546F74616C2053616C617279223B0A454C53450A22456D706C6F7965652042656E6566697473223D234D495353494E473B0A454E4449460A290A454E444649580A0A43414C432044494D202822456D706C6F796565222C456E74697479293B0A0A0A71007E0004" />
    <property class="java.lang.String" method="setMetadataReferences" value="" />
    <property class="java.lang.String" method="setDefMetaDataRepo" value="Planning/balt-hypplan/CorpBud/Eeplan" />
    <property class="java.lang.String" method="setBodyAsCalcScript" value="/*ESS_LOCALE English_UnitedStates.Latin1@Binary*/ SET AGGMISSG ON; SET UPDATECALC OFF; FIX (Budget, "1st Pass", &CurrBudYr, @LEVMBRS("Period", 0),@relative("Total Employees",0),@RELATIVE("Total Company",0)) CALC DIM ("Account"); "Employee Taxes" = "Employee Tax Rate Input"->"No Entity"->"No Employee" * "Total Salary"; ENDFIX CALC DIM ("Employee",Entity);" />
    <property class="java.lang.String" method="setName" value="Corp-EE Benefits & Taxes Calc" />
    <property class="long" method="setLastModified" value="1211738336600" />
    <property class="java.lang.String" method="setVersion" value="" />
    <property class="int" method="setId" value="220" />
    <property class="java.lang.String" method="setDescription" value="" />
    <property class="java.lang.String" method="setOwner" value="native://DN=cn=911,ou=People,dc=css,dc=hyperion,dc=com?USER" />
    <property class="int" method="setObjectType" value="1" />
    <property class="boolean" method="setEditable" value="false" />
    <property class="boolean" method="setLocked" value="false" />
    <property class="java.lang.String" method="setLockedBy" value="0" />
    <property class="java.lang.String" method="setUpperName" value="CORP-EE BENEFITS & TAXES CALC" />
    <property class="java.lang.String" method="setModifiedBy" value="native://DN=cn=911,ou=People,dc=css,dc=hyperion,dc=com?USER" />
    <property class="java.lang.String" method="setOpenForEditingBy" value="0" />
    <property class="boolean" method="setOpenForEditing" value="false" />
    </Rule>
    </Rules>
    <Macros />
    <Variables />
    <Sequences />
    <Projects />
    <RuleMacroLinks />
    <RuleVariableLinks />
    <MacroMacroLinks />
    <MacroVariableLinks />
    <SequenceItemLinks />
    <SeqPrompts />
    <ProjectItemLinks />
    - <UserObjAccessFilters>
    - <UserObjAccessFilter>
    <property class="int" method="setObjectID" value="220" />
    <property class="int" method="setObjectTypeID" value="1" />
    <property class="int" method="setLocationID" value="9" />
    <property class="int" method="setTaskID" value="2" />
    <property class="java.lang.String" method="setUserGroupID" value="0" />
    <property class="int" method="setUserGroupTypeID" value="0" />
    <property class="boolean" method="setSearchNoLoc" value="false" />
    <property class="boolean" method="setSearchNoUser" value="false" />
    <property class="boolean" method="setSearchNoObj" value="false" />
    <property class="boolean" method="setSearchNoTask" value="false" />
    <property class="java.lang.String" method="setUserGroupName" value="" />
    </UserObjAccessFilter>
    </UserObjAccessFilters>
    - <Locations>
    - <Location>
    <property class="int" method="setCluster" value="0" />
    <property class="java.lang.String" method="setLocation" value="Planning/balt-hypplan/CorpBud/Eeplan" />
    <property class="int" method="setLocID" value="9" />
    <property class="java.lang.String" method="setUpperLocation" value="PLANNING/BALT-HYPPLAN/CORPBUD/EEPLAN" />
    </Location>
    </Locations>
    </HBRObjects>
    I see the setUserGroupName property class and it is empty..

  • Unable to create business rule in composite.xml

    Hi,
    When I am trying to create a business rule in composite.xml I am getting the error as shown below:
    java.lang.Exception: An attempt to add a schema to the schema browser failed!
    Please make sure schemas are in the appropiate directories.
         at oracle.tip.tools.ide.rules.dictionarybuilder.CreationDialogUtil.addSchema(CreationDialogUtil.java:129)
         at oracle.tip.tools.ide.rules.dictionarybuilder.CreationDialogUtil.createFacts(CreationDialogUtil.java:103)
         at oracle.tip.tools.ide.rules.dictionarybuilder.jdev.JDevDictionaryFileBuilder.createRuleDictionary(JDevDictionaryFileBuilder.java:285)
         at oracle.tip.tools.ide.rules.dictionarybuilder.RulesCreationDialog$1.run(RulesCreationDialog.java:101)
         at java.lang.Thread.run(Thread.java:662)
    It would be helpful if anyone has any suggestions or solution.
    Thanks & Regards,
    Padmaja

    Make sure there are no exceptions in the schema which you are using for defining the structure of Business Rule facts and try it again
    Thanks
    N

  • How to Migrate Business rules along with access privileges

    Hi All,
    I migrated business rules from prod to dev using lcm. The business rules got migrated correctly, but the access privileges did not. I tried exporting from EAS and import. Even then the access privileges were not migrated.How do we migrate business rules along with access privileges? Quick help is much appreciated.
    We are on hyp. planning 11.1.1.3. and we use classic planning applications.
    Thanks
    Lakshmi

    If they are native users/groups then it may be down to the ID for the users/groups being different across environments, this has always been a problem with business rules, with planning applications then there is the updateusers utility to sync up the ID with shared services.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • How to migrate business rule

    I have created one Configurable business rule for Position in Development instance...
    I want to Migrate business rule created in dev instance to PROD instance.
    I want the steps to Migrate. Is there any FNDLOAD command available for this..???
    Thanks in Advance...

    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

  • Migrate business rules (disaster recovery)

    I need a plan to be able to recover all my business rules/macros/sequences/projects/security in case of a disaster. Can some one suggest the best way to do this? I'll appreciate if some one can provide a step by step solution that can be automated.
    thanks
    Edited by: user507721 on Dec 2, 2010 1:14 PM

    9.3. That's what we do right now. But it involves manual intervention. Since I want it for DR, I wanted to automate the export so that I don't have to kick it off regularly and have an xml from production in case of any disaster. Is there a way to automate this process?

  • Migrate Business Rules to Calculation Manager

    Hi Friends,
    we have Hyperion Planning v11.1.1.3 Application (Classic Application). I want to migrate from Business Rules to Calculation Manager.
    Please let me know the procesure.
    Thanks & Regards
    Sai.

    In EAS go to export, select the rules, make sure "for calc mgr" is ticked.
    Import the rules into calc manager.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • 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

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

  • Business Rules Migration

    Hi gurus,
    I need to migrate business rules from one environment to another.
    Apart from doing so in EAS, what would be the other way of migrating it?
    Any suggestion would be appreciated.
    I could do it with EAS, however the EAS has not been working in the target environment, so we are trying to see if we can migrate from planning/hss etc so that we could migrate and test while we are taking care of the EAS issue.
    Thank you.

    If EAS is not working in the target environment then I don't see much point in trying to migrate the rules, you would not be able to import them if EAS is not working.
    The only options are exporting/importing through EAS, LCM (which pretty much does the same thing as EAS but can be automated), alternatively there is the option to migrate the full repository - Migrating the Repository
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Upgrade Business rules with Calc Manager

    Hello Gurus,
    Recently performed an upgrade from 11.1.1.3 to 11.1.2.2 by replicating the Database to a new database machine.
    I had Business rules in 11.1.1.3 and did not perform any steps to migrate the rules to Calculation manager in 11.1.2.2
    The doubt I have is,
    1. Are the business rules automatically upgraded when performing upgrade by EPM system configurator (since the database is replicated)
    2. If so, how do I see the business rules in 11.1.2.2 environment? How can I use migrate feature option.
    Thanks
    HyperionEPM.

    From 11.1.2.2 documentation:
    Upgrade Wizard
    If your application used Oracle Hyperion Business Rules, the Upgrade Wizard automatically converts Business Rules business rules to Oracle Hyperion Calculation Manager business rules. Release 11.1.2.2 supports onlyBusiness Rules business rules as the calculation module.
    Notes:
    •Classic application administration is now called Oracle Hyperion Planning application administration (versus Oracle Hyperion EPM Architect application administration).
    •The Upgrade Wizard automatically upgrades applications having Oracle Hyperion Business Rules business rules, converting them to Calculation Manager business rules. However, the Upgrade Wizard does not automatically convert Release 11.1.2.1 applications having Oracle Hyperion Calculation Manager business rules. For those upgrade instructions, see the Oracle Enterprise Performance Management System Installation and Configuration Guide.
    Business Rules Maintenance Release and Upgrade Installation PrerequisitesIf you are using Business Rules, you must migrate to Calculation Manager rules in Release 11.1.2.2. Before migrating business rules, you must perform prerequisite tasks. Note that these tasks are required if you are applying the maintenance release or if you are upgrading.
    To prepare to migrate Business Rules, perform the following tasks in your current Business Rules environment before installing Release 11.1.2.2:
    1.in Business Rules, within the Rule Editor, remove the associated outline (that is, the design time location) from each business rule. After you do this, the Associated Outline drop-down list should display the text, Select Outline.
    2.On the Locations tab of the Rule Editor, ensure that each business rule has a valid launch location, which must be an absolute location. Although “All Locations” is valid in Business Rules, when you migrate business rules, you must provide the details of a specific launch location (that is, the application type---Planning or Essbase, the server name, the application name, and the database or plan type). If you want a business rule to be valid for multiple launch locations, you must provide the details for each location. The locations must be in different applications; you cannot migrate the same business rule to different plan types in the same application within Calculation Manager.
    If the rule is a part of a sequence, then the launch location of the rule within the sequence must be one of the launch locations listed in the Locations tab of the rule.
    3.On the Access Privileges tab of the Rule Editor, ensure that each business rule has security defined for a specific location or locations and not “All Locations.” If multiple locations are defined for a business rule on its Locations tab, you must add security for each location individually.
    4.Do not modify rules in Calculation Manager until migration is completed.
    5.If you are using Business Rules with Planning, as a precaution, create a backup of the rules: Use Administration Services to export the rules to XML in Business Rules format. If you are upgrading from 11.1.1.3 or 11.1.1.4, also export the rules to Calculation Manager format. EPM System Configurator exports the rules during database configuration for use during application upgrade.
    6.If you are an Essbase-only Business Rules user, you must export business rules. To export the Essbase rule from Business Rules:
    a.From Administration Services Console, right-click the Business Rules node and select Export.
    b.Export the rules in Business Rules format and then select all of the Essbase rules in the repository. If you are upgrading from 11.1.1.3 or 11.1.1.4, also export the rules to Calculation Manager format.
    c.Specify the location to save the XML file, and then click OK. If you are upgrading, the location should be a shared drive that is accessible from the upgraded environment.
    Make a note of the location. You import the file later in the process.
    Migrating Business Rules to Calculation Manager for use with Planning
    If you applied the maintenance release to move from Planning Release 11.1.2.0 or 11.1.2.1 to Release 11.1.2.2, and you were using Business Rules rules, you must migrate the rules to Calculation Manager rules.
    Before you migrate, ensure that user directories and native users with the same SID are available when you upgrade Shared Services.
    Ensure that the Planning applications are upgraded to the current release and are available in Calculation Manager under SYSTEM View.
    To migrate Business Rules rules to Calculation Manager rules:
    1.In Calculation Manager, select the migrated Planning application, and then select Migrate.
    The data that was exported during database configuration with EPM System Configurator is imported to Calculation Manager.
    2.Repeat for each Planning application.
    3.Deploy the rules from Calculation Manager to Planning. See the Oracle Hyperion Calculation Manager Designer's Guide.
    After migrating business rules and rules security, if any of the rules had multiple launch locations and you migrated to more than one location, Calculation Manager creates a rule for the first migration, and shortcuts for all subsequent migrations. If the rule had rule-level variables, for the shortcuts that are created in the application in the new environment , its variables are moved to the Plan level. In this scenario, test rules in your environment to ensure that they work as expected.
    If you still have problems, raise an SR and we can get on a call to figure out why the rules are not coming over.
    -Sree

  • How to use Java objects in business rules 11g

    I have made one business rule with two XML facts and then follow one doc to create the java facts.But I am unable to use the facts.

    No Java Facts are created,but as I have mentioned XML input and output facts at the time of creation of business rules,so I am not able to use java fact in business rule.
    Edited by: 856272 on Jan 4, 2012 6:22 AM

Maybe you are looking for