Rules related to rule engine

I have initiated to design rule engine.
Please help me to know how should i design rules. Rules should be designed on the basis of 3 parameters : country,gender,time.
Please help me with an example.
Thanks & Regards
Gaurav K

Very interesting search ...
Do you think we can't use google?
I still see a question in your posts. Just adding a '?' doesn't makes your post a question anybody can answer.
So please take your time and give us a full use case, your jdev version.
Timo

Similar Messages

  • Special consideration for BRF rules related to configuration managment

    Hello All.
    I am looking for a document or oss note that discribes if there are any special consideration for BRF rules related to configuration management and transport control?  I just learned how to spell BRF so, I would appriciate if you could direct me to the information requested above.
    Regards,
    k

    Hello All.
    I am looking for a document or oss note that discribes if there are any special consideration for BRF rules related to configuration management and transport control?  I just learned how to spell BRF so, I would appriciate if you could direct me to the information requested above.
    Regards,
    k

  • Event-related scrambling rule type - Code example?

    Hi experts,
    I am currently working on an SAP TDMS project which requires me to develop some event-related scrambling rules. As this type of rule doesn't have parameters I'm having trouble understanding how to access the data. I tried to find an example in the forums and searching the internet but I wasn't successful.
    Any help will be much appreciated.
    Thank you.
    Kindest regards,
    Bruno Esperança
    Edited by: Rob Burbank on Feb 3, 2012 9:37 AM

    Hi Rupam!
    Yes, I am using TDMS 3.0.
    Thank you very much for your e-mail.
    I did not find standard package TDSAD. However, I did find include CNV_MBT_TDSAD_ADDR_SCRAM1 which has the code example for an event-related rule.
    Nonetheless, I do have a small concern. This rule was designed to be used by more than one table. Thus, there is a piece of code in the beginning which determines the object (table) that is currently being converted.
      IF g_wa_name IS INITIAL.
    * get receiver structure name of the current conv. obj.:
    *    CONCATENATE g_dmc_cobj_guid ' = ''' g_dmc_cobj_guid_val
    *      '''' INTO g_where_clause_dmc_cobj.
        CONCATENATE g_dmc_cobj_guid ' = ''' _GUID_COBJ
          '''' INTO g_where_clause_dmc_cobj.
        SELECT SINGLE (g_dmc_cobj_rcontainer) FROM (g_dmc_cobj_tabname)
            INTO g_dmc_cobj_rcontainer_into WHERE (g_where_clause_dmc_cobj).
        CONCATENATE g_dmc_stree_container ' = '''
          g_dmc_cobj_rcontainer_into''''
          ' AND' g_dmc_stree_seqnum ' = ''' g_dmc_stree_seqnum_val''''
          ' AND' g_dmc_stree_struclevel ' = ''' g_dmc_stree_struclevel_val
          '''' INTO g_where_clause_dmc_stree.
        SELECT SINGLE (g_dmc_stree_guid) FROM (g_dmc_stree_tabname)
            INTO g_dmc_stree_guid_into WHERE (g_where_clause_dmc_stree).
        CONCATENATE g_dmc_struct_stree ' = ''' g_dmc_stree_guid_into
             '''' INTO g_where_clause.
        SELECT SINGLE (g_dmc_struct_ident) FROM (g_dmc_struct_tabname)
            INTO g_structname WHERE (g_where_clause).
    *  select single ident from dmc_struct into g_structname
    *    where stree = ( select GUID FROM dmc_stree WHERE container =
    *  ( select RCONTAINER FROM dmc_cobj WHERE guid = _guid_cobj )
    *      AND seqnum = '0001' AND struclevel = '01' ).
        CONCATENATE '_WA_' g_structname INTO g_wa_name.
        ASSIGN (g_wa_name) TO <g_wa_name>.
      ENDIF.
    As you can see this has some selects in it, and I'm affraid these selects might be executed for each record of each table. So, in a performance point of view, this might not be so good...
    Is there a reason why I shouldn't use one rule per table, and therefore disregard this piece of code?
    Thank you very much!
    Bruno
    EDIT:
    From what I understood from the code, this is a code example if I assume I'm scrambling table ADRC:
    ASSIGN ('_WA_R_ADRC') TO <g_wa_name>.
    ASSIGN COMPONENT 'NAME1' OF STRUCTURE <g_wa_name> TO <g_name1>.
    Does this make sense to you?
    Thanks.

  • SAP TDMS - Event related scrambling rule - Code example?

    Hi experts,
    I am currently working on an SAP TDMS project which requires me to develop some event-related scrambling rules. As this type of rule doesn't have parameters I'm having trouble understanding how to access the data. I tried to find an example in the forums and searching the internet but I wasn't successful.
    Any help will be much appreciated.
    Thank you.
    Kindest regards,
    Bruno Esperanç

    This question was answered here:
    http://forums.sdn.sap.com/thread.jspa?threadID=2130292&tstart=0

  • Invoking rule from a rule

    Hi All,
    Is it possible to call a rule from within another rule ?
    Thanks

    Take the following two rules for example:
    If a customer has flown more than 25.000 miles and is not already a Silver Elite customer then he becomes a Silver Elite customer.
    If a flight concerns a Silver Elite customer then the bonus miles count 1.5 times.
    When a flight is asserted to the rule engine making the first rule fire, the rule engine can change the status of the customer to 'Silver Elite'. This results in a new fact, being that the customer now is a Silver Elite customer, which should fire the second rule. This phenomena is call rule inference.
    Oracle Business Rules uses the Rete algorithm to determine when to fire rules. When a new fact is created, this algorithm will take care of the adding the related rules to the set of rules to fire, and by that automatically will handle rule inference.
    Jan Kettenis

  • Error while creating rule policies in rule builder

    hi all ,
    We are using CRM 7.0 , we are configuring territory management using building block ( C06 ).
    In territory management while configuring territory atributes through WEB UI , I am facing a problem in step no. 4.5.3 of building block (C 06) which states:-
    4.5.3     Define Rule Policy and Rule Set
    Use
    Rule Sets logically group rules and define their parameters.
    Procedure
    1.     Access the activity using the following navigation options:
    CRM Web UI          Logon using the role Sales Manager
    Navigation          Sales Operations- Search - Rule Policies for Rule Builder
    2.     Click New and select TM- Territory Management as Rule Policy Type. Enter the description BP Territory Management for your Rule Policy
    +After this step I am not able to edit or create a node for it...which is said to be done in next step..+
    3.     Select the newly create policy and click on new Node to enter a new rule set. In the pop-up window, select the option Rule Set to create a new rule set from scratch. You can also select the option Rule Set with Template if you would like to create a new rule set based on a previously created set. Enter a description.
    Field name     User action and values
    Description     Postal Code Assignment
    4.     Choose Save.
    thanks
    SHIKHAR ARORA

    Hi,
    we are facing the same error. (CRM 7.0 SP05)
    Did anybody fix this problem right now.
    Thanks
    Christian

  • Rule inferencing with Rule Author

    Hi,
    I would like to know how to use rule inferencing with Rule Author. At the moment I know that RL Facts need to be used as intermediate variables for firing rules (when some value of an RL fact checked on an if condition returns true). The point would be how to modify an existing RL fact. On Rule Author, I choose the action "Assert New" and the RL Fact is correctly initialized (and fires rules correctly). But if I need to modify a value from that fact, I don't know how to proceed. I tried using "Assign" to set a new value to a variable on the fact, and then "Assert" to put the fact back to working memory, but it didn't work. Any ideas?
    I searched for documentation and found some technical whitepapers where an outline for rule inferencing was explained, but I would need some concrete steps to be followed on Rule Author...
    Thanks a lot in advance,
    Juan.

    This is what my dictionary generates with "Generate RL" on Rule Author. The steps you pointed out were the same I used to follow: the error I get is the same I stated on my previous post. When I test the following code on a WebDAV repository, I get a "Premature EOF encountered" exception. Thanks for your attention, this is the code
    1. ruleset RuleSetPruebaTres
    2.
    3. {
    4.
    5. rule ReglaUno
    6. {
    7. priority = 1;
    8. if
    9. (
    10. (
    11. fact hidra.vcgeneradiagnostico.TipoVCGeneraDiagnosticoFinalInOut v0_TipoVCGeneraDiagnosticoFinalInOut)
    12. )
    13.
    14. {
    15. assert (new DM.errorTA(testacceso: false));
    16. }
    17. } //end rule ReglaUno;
    18.
    19. rule ReglaDos
    20. {
    21. priority = 2;
    22. if
    23. (
    24. (
    25. fact hidra.vcgeneradiagnostico.TipoVCGeneraDiagnosticoFinalInOut v0_TipoVCGeneraDiagnosticoFinalInOut && (
    26. (v0_TipoVCGeneraDiagnosticoFinalInOut.salidaTestaccesoIN == "NOK")) &&
    27. fact DM.errorTA v1_errorTA)
    28. )
    29.
    30. {
    31. v1_errorTA.testacceso = true;
    32. assert(v1_errorTA);
    33. }
    34. } //end rule ReglaDos;
    35.
    36. rule ReglaTres
    37. {
    38. priority = 2;
    39. if
    40. (
    41. (
    42. fact hidra.vcgeneradiagnostico.TipoVCGeneraDiagnosticoFinalInOut v0_TipoVCGeneraDiagnosticoFinalInOut &&
    43. fact DM.errorTA v1_errorTA && (
    44. (v1_errorTA.testacceso == true)))
    45. )
    46.
    47. {
    48. v0_TipoVCGeneraDiagnosticoFinalInOut.setHidraResultCodDiagnosticoOUT("Test OK");
    49. }
    50. } //end rule ReglaTres;
    51. }// end ruleset RuleSetPruebaTres

  • How to make exception rules for Stylish rules which change fonts?

    How to make exception rules for Stylish rules which change fonts?
    I use [https://addons.mozilla.org/en-US/firefox/addon/stylish/ Stylish add-on] to change specific fonts to other fonts of my choice, but I have a problem. I want to change the font Arial to Tahoma in almost all pages I visit, but with the exception of websites as wikipedia.org. Because of this, I find myself having a very long list of domains to change Arial to Tahoma, only because I don't want that rule to apply to wikipedia.org and additional one or two other websites.
    The current rule I'm using is, (my actual list is a lot longer, but this is just an example):<br/>
    '''''@-moz-document domain("mozilla.org"), domain("thefreelibrary.com"), domain("sil.org"), domain("ethnologue.com") {'''''<br/>
    '''''@font-face { font-family: 'Arial'; src: local('Tahoma'); }'''''<br/>
    I can't use the following rule because I don't want it to apply to wikipedia.org:<br/>
    '''''@font-face { font-family: 'Arial'; src: local('Tahoma'); }'''''

    Try something like this:<br />
    <br />
    <pre><nowiki>@font-face { font-family: 'Arial'; src: local('Tahoma'); }
    @-moz-document domain(wikipedia.org){
    @font-face { font-family: 'Arial'; src: local('Arial'); }
    </nowiki></pre>

  • Check Incompletion Rule and Completion Rule on Sales Document

    Hii Guy...
    where can i check Incompletion Rule and Completion Rule on Sales Document type the backgroud table of Sales order and item category ?

    Hi friend,
    Incompletion procedure you can check in the OVA2 transaction code.
    There you can find the incompletion procedre for the sales document header as well as item.
    Path: IMG-->SALES & DISTRIBTION->BASIC FUNCTIONS---> INCOMPLETION PROCEDURE--->
    There you can find all the settings of the Incompletion procedure.
    If you want to check the incompletion procedre in the document, then goto  EDIT---INCOMPLETION LOG
    FOR item click on the item and goto EDIT---INCOMPLETION LOG
    regards,
    santosh

  • Transfer Rules and Update Rules

    Hello,
    What is the exact difference between Transfer Rules and Update Rules ????
    NImisha

    Hi Nimesh,
       Transfer rules are the combination of communication structure and transfer structure here you are sassing the fields between transfer structure to communication structure..
       Updater rules are crating between data marts and info source, here you are creating the update rules based on communication structure.
       For more information go through the following link...
      http://help.sap.com/saphelp_nw04s/helpdata/en/fc/1251421705be30e10000000a155106/frameset.htm
    Regards,
    PRK
    Message was edited by: PRK

  • Unable to "Add Rule Policies for Rule Builder"

    Hi,
    I have requirement to implmenet territory management. But I am unable to add 'Rule Policies for Rule Builder' in WebUI. When I go to Rule Policies(under the section 'Sales Operations') and Click on 'New'. A Pop up comes up with ID- 'TM' (Territory Management) as selection option. But when i click on it nothing happens. Please let me know the reason and solution of the same.
    Please note that I have already implemented below mentioned steps:
    1. Copy Rule Attributes in Client 000 to Transport request
    2. These services are Active:
    u2022 md110empbp_job
    u2022 md110fdt_tmgmt
    u2022 md110h_tmgmt
    u2022 md110m_tmgmt
    u2022 md110simu_tmgmt
    u2022 md110s_tmgmt
    3. Assign authorization object CRM_FDT to business role.
    4. Tried checking in firefox, as it was not working on IE.
    Please suggest a fix for this.
    Regards,
    Amit

    Hi Amit
    Hope this documentation link helps you
    http://help.sap.com/saphelp_crm70/helpdata/en/1e/606658bed54f8eb2d00a34991d85d5/frameset.htm
    thanks & Regards
    Raj

  • "sync-rule-inbound-flow-rules-invalid" error on synchronizing an Inbound Sync Rule from the FIM connector space to the Metaverse

    I have created an inbound sync rule in the FIM portal to import groups from an external system (SQL Server) into the metaverse.  I can import the rule from the FIM MA into the FIM connector space but when I run a full sync on the FIM MA I get the error
    "sync-rule-inbound-flow-rules-invalid".  The only way I have found around the error is to remove all the attributes from Inbound Attribute Flow in the sync rule.  However, this defeats the purpose of having the sync rule in the first place.  Searching
    the Web, I have come across posts from other people with "sync-rule-inbound-flow-rules-invalid" problems but the solutions do not seem to work in my situation. 
    A little background about the sync rule
    Metaverse Resource Type: group
    External System Resource type: group
    Relationship Criteria: accountName (metaverse) = "string field" (ConnectedSystemObject)
    Create resource in FIM: yes
    Inbound attribute flow:
    - Domain
    - Member
    - DisplayName
    - accountName
    - MembershipLocked
    - MembershipAddWorkFlow
    - Type
    - Scope
    I am new to FIM so it's possible I have overlooked something in the setup of this sync rule.  Any suggestions on possible causes of this issue would greatly appreciated.

    There is no scope filter.   In regards to the attribute flows, no functions are used.  Here is further information about the attribute flows
    Set up of Inbound attribute flow for the inbound Synchronization Rule.
    Metaverse External System (SQL Server View)
    - Domain  Domain (string)
    - Member Member (multi value attribute)
    - DisplayName ObjectDescription (string)
    - accountName ObjectID (string)
    - MembershipLocked 'false' (set up as a string literal)
    - MembershipAddWorkFlow 'Owner Approval' (set up as a string literal)
    - Type 'Security' (set up as a string literal)
    - Scope 'Universal' (set up as a string literal)
    Is this the info you were asking for?  If not, please clarify what details you are looking for in regards to the  sync rule.

  • Differerence betwin distubution rules and settelment rule

    < MODERATOR:  Message locked.  Please post this message in the [Controlling forum|SAP ERP Financials - Controlling;. >
    Hi gurus any doby explain the difference betwin ditibution rule and settelment rule.

    Hi friend,...
    The distribution rule is part of the settlement rule. You specify the following for a settlement sender:
    Settlement receiver
    Settlement share (percentage or proportional)
    Settlement type (periodic or cumulative)
    Validity of the distribution rule
    The system automatically assigns a settlement rule to the production order when the order is created. The assignment is carried out via the default rule defined in Customizing.
    The settlement rule includes one or more distribution rules for the production order. The distribution rule consists of a cost receiver, a settlement share and a settlement type:
    The settlement receiver determines to which cost object the actual costs of the production order are to be settled. Possible receivers include
    a material
    a cost center
    an internal order
    a sales order
    a project
    a network
    a fixed asset
    The settlement share determines the percentage rate or the equivalence number to distribute the costs to the individual cost receivers.
    The settlement type determines whether all the costs are settled which were incurred for the order (full settlement) or whether the costs collected on the order are to be settled periodically (periodic settlement).
    for more details u may go the following link...
    http://help.sap.com/saphelp_47x200/helpdata/en/e9/7a0716cde011d19eb4080009b0db33/frameset.htm

  • Purpose Assign Deduction Rules To Counting Rules

    Hi experts
    I have a few question to ask:
    1. What is the purpose of assign deduction rules to counting rules. For example, I have create counting rule for sick leave.
       After that, I have created deduction rule for absence quota to allow quota for sick leave using this rule. That's I understand.However, I quite confusing to assign deduction rules to counting rules.This is because there are two fields to key in :
         i. Within entitlement
         ii.Over entitlement
    What does these 2 fields means. Why we should config this.
    2. I want to create new leave type. This leave however have no quota. Should I create a new rule or can use the same counting rule available. I'm quite worry to use same counting rule because the current rule has been assigned by deduction rules (fields within entitlement). If I want to create new counting rule, is it possible to create it without create deduction rules for absence quota
    Thanks in advance

    1 - Your employee has a "Sick Leave Quota" of 4 days left.  Will you allow her to go "Over her entitlement" and take more than 4 days of "Sick Leave Absences", or do you restrict the use of "Sick Leave Absences" by what is "Within her entitlement"?
    2 - Look at all the absences that have been set-up in your system.
      - A Paid Sick Leave Absence should not reduce paid hours but it should reduce Sick Leave Quota.
      - A Paid Special Leave Absence should not reduce paid hours but may not be linked to any Quota.
      - An Unpaid Leave should reduce paid hours but may not be linked to any Quota.
      ... and you may have many other examples in your system.

  • VirsaCC5.1 (Rule Architect- Organization Rules)?

    Hi All,
    We are working on Virsa CC5.1 for quite some time now. It is successfully working.
    There is one option in Rule Architect Tab:
    Rule Artichect->Organization Rules
    Anybody any idea what this option is used for? Since, all the rules provided by SAP are already uploaded. Also, There are 3 columns i have doubt for:
    1) Org. Level
    2) From
    3) To
    Any functional Infomation would be a great help
    Thanks in advance
    Regards,
    Faisal
    Edited by: Faisal Khan on Mar 31, 2008 12:33 PM

    There is a guide available in the GRC How to section for Organisational rules
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/805a8744-42ab-2a10-5194-b45be2704722
    That would be my starting point

Maybe you are looking for

  • ITunes Radio Purchase Missing from iPhone w/Match Enabled

    I recently purchased Usher's 'Scream' while listening to iTunes Radio on my iPhone 5. Purchase went through successfully, but when I try to download it locally from the iTunes store app on my iPhone the download appears to complete but it never appea

  • Release date of Q10 in south africa

    When is the release date the full specs and price of blackberry Q10 Solved! Go to Solution.

  • Use of basic SQL functions in conditional display of an item

    I'm trying to use the following to conditionally display an item. Condition Type is set to: "Value of Item in Expression 1 = Expression 2" Expression 1: "sign ( instr ( :column_name, '1*' ) )" Expression 2: "1" The :column_name column contains an ast

  • Database Control

    Internet Explorer is telling me it cannot connect to my Database Web Page. I imported two Oracle 9i databases from a Solaris server to a Oracle 10g new Windows 2003 server. I am building another Oracle database on this same server. I can access all t

  • How to install Portal Examples in Weblogic Portal 10.3.5

    I downloaded installation file portal103_win32.exe from Oracle site which is for Weblogic Portal 10.3.5. During the installation process I could not find anywhere I can choose to install Portal Examples. Did I miss anything when I did the installatio