Create a Business Rule to validate a datetime field

Hi friends,
I'm trying to create a business rules to validate a datetime attribute.
I tried to use the Validation "must contain the pattern" but I don't kwnow exactly how it works.
In the Edit Action section I have 3 options:
- Attribute value
- Attribute
- Blank
Where should I write the RegExp?
Any comment will be appreciated.
Kinde Regards,
Paul

Hi superbluesman,
thanks for your quick answer.
I created this expression to validate my specific date format and it works:
^(0[1-9]|1[012]|[1-9])[- /.](0[1-9]|[12][0-9]|3[01])[- /.](19|20)\d\d
Kind Regards,
Paul

Similar Messages

  • Error while creating a business rule

    Hi all,
    I am trying to create abusiness rule from eas console when I am choosing business rule >repsitory view > rules>new rule> select outline,
    I am able to select a essbase database outline ,but while I am trying to select planning outline i am getting the following error
    WARN http-10080-Processor4 com.hyperion.hbr.plugin.planning.PlanningMetadata - Error connecting to Planning server metamorp-ee0b9e.
    Any suggestion?
    Thanks

    Hi,
    The first thing to always try is :-
    stop planning service
    stop eas service
    restart rmi service
    start eas service
    start planning service
    log into planning application you want to create a business rule for.
    log into EAS, create business rule, associate outline with planning app
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Help with Creating a Business Rule...

    Hi All,
    I am using Planning 11.1.1.1.0.
    I have created a classic planning application and now have to incorporate a way to copy data from one slice of the essbase db to other.
    I am trying to copy data from the following slice
    Entity : EasternZone
    Version:Working (Bottom Up)
    Scenario: Actuals
    Currency:USD
    Period:YearTotal
    Year: 2007
    to
    Entity : EasternZone
    Version:Working (Bottom Up)
    Scenario: Actuals
    Currency:USD
    Period:YearTotal
    Year: 2008 and increase by a certain percentage which is not fixed..
    How should i go about achieving this using business rules? (Calc manager is used with only EPMA applications so where do i create the business rule?) Can somebody share some ideas please?
    Any help would be greatly appreciated.
    Kind Regards.
    Alicia

    Hi!
    Are you transferring data in same application from db to another? If yes, then possibly you could use @xref function.
    for example :
    fix ("EasternZone", "Working","Actuals","USD","YearTotal")
    "2008" = @xref("_name of source db location alias_","2007")*[RunTimePrompt for percentage];
    endfix
    The name of the location alias you can find from destination db --> edit --> location aliases. There you can see the location alias name of the source db.
    if you want to be sure about block creation then you could also add the following rows at the beginning
    /*fix ("EasternZone", "Working","Actuals","USD","YearTotal","any account")*/
    /* "2008" = 0;*/
    /*endfix*/
    kind regards,
    user637777

  • While i am creating my business rule i am not able to connect the planning

    while i am creating my business rule i am not able to connect the planning application and database?I dont know what is the reason?

    Make sure you log into the planning application before logging into EAS.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Error while creating a Business rule dictionary in Jdevloper 11g

    Hi,
    I am getting the following error when i define the Inputs and outputs during creating on a new business rule dictionary.
    Some XML schemas are not in the "xsd" directory! gardes.xsd
    Please manually move or copy the Schemas
    I am following the "Creating a Rule-enabled Non-SOA Java EE Application" guide in Oracle® Fusion Middleware User's Guide for Oracle Business Rules, 11g Release 1 (11.1.1)
    The two schema files generated were having different content after creation of XML schema file so I copied the file to make them same. Its still giving me the same error.
    Please Help.
    Thanks,
    Mac

    Please post business rules questions on the SOA Suite forum:
    SOA Suite

  • 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

  • Error creating 'Journalling Business Rules'

    When running 'Maintain Journalling Business Rules' for a table with 19 columns an EMPTY 'BR_xxx_JRN_DEL' trigger is created , hence the CAPI definition fails.
    If I add 1 more column to make it 20 columns the 'BR_xxx_JRN_DEL' and the CAPI are both generating correctly.
    Has anyone else found this ?????

    Sandra,
    Ok we have the modified version of hsd and we still have similar problem. Here is the detailed log
    Log Messages
    Utility      Maintain Journalling Business Rules
    Revision      6.5.3.2
    Parameters      
    Prompt      Value
    Table to be Journalled      app/ my table
    Errors
    Message
    Activity aborted with ORACLE internal errors.
    -6502 ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    Debug Detailed
    Message
    BLAPI.OPEN_ACTIVITY
    Number of Tables to create/delete Journalling Rules for: 1
    Business Rule Design Definition for BR_xxx_JRN_UPD
    No Update Trigger Columns specified. Business Rule BR_xxx_JRN_UPD will fire when any column is updated.
    end of initial_checks
    Create/maintain message with constraint_name = HRS_BR_xxx_JRN_UPD
    Message QMS-00151 already exists in Headstart message tables, no new message was created.
    Activity aborted with ORACLE internal errors.
    -6502 ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    and this is the piece of code from bltext
    -- 6.5.2.3 changed if condition
    -- if length(l_text_lines(l_ctr + 1))+ 2 + length(l_build_string) > 1990
    if length(replace(l_text_lines(l_ctr + 1), chr(10), NL_CR)||NL_CR)
    +
    length(l_build_string) > 2000
    then
    exit;
    end if;
    end loop; -- compose 1 build string
    -- 6.5.2.3 changed if condition
    -- if nvl(length(l_build_string),'') > 0
    if nvl(length(l_build_string),0) > 0
    then
    -- 6.5.0.1 column element_type_for added.
    insert into cdi_text
    ( txt_ref
    , txt_seq
    , txt_type
    , txt_text
    , element_type_for
    values
    ( p_el_id
    , l_insert_at_seq
    , p_text_type
    , l_build_string
    , p_el_type
    end if; -- nvl(length(l_build_string),'') > 0
    if l_ctr >= p_text_counter
    then
    exit;
    else
    l_build_string:= '';
    l_insert_at_seq:= l_insert_at_seq + 1;
    end if; -- l_ctr = p_text_counter
    end loop; -- (maximum) over all lines in local text-store
    end if; -- l_lock
    exception
    when others
    then
    bllog.write
    ('Exception: '||sqlerrm
    , bllog.debug
    bllog.write
    (' Length Buildstring '||to_char(length(l_build_string))
    , bllog.debug
    bllog.write
    (' Line number '||to_char(l_insert_at_seq)||' Text type = '||p_text_type
    , bllog.debug
    bllog.write
    ( 'Exception; Note that the text for this element may have been corrupted.'
    , bllog.errors
    end write_lines_to_repository;

  • GRC PC 10.0 business rule creation: Wildcard for Currency field

    Hi,
    Currently I am designing a business rule that has standard price as a deficiency. I am using a blank check. But the system wants me to choose a specific currency. I want it to retrieve all records with the deficiency, regardless of currency.
    I've tried using "*" in the currency field, but it retrieves nothing. I am only able to retrieve records when I add a specific currency.
    Why is that? And what can I do to fix this problem?
    Thank you.

    Hi Raphael,
    Have you defined the Currency field as a filter criteria? If yes, can you please remove the field from filter selection and try to execute the rule again.
    Just make sure it comes under output format section.
    regards,
    Rajeshwari

  • How create a business partner (BUP1) with a default field?

    HI,
    I need to implement these changes, when the user calls the transaction BUP1:
    - The user must create a Business Partner with a field already filled by default.
    Any help will be appreciated.
    Regards
    Mark

    Hi Mark,
    When you create an Attribute set there is a check box named 'Default'. When you select this field then your attribute set will appear as default. You can do the same for the attributes, if you want to define a default value for an attribute.
    Also, in Customizing spro > Cross-Application Components> SAP business Partner --> business Partner --> Basic Settings --> Field Groupings --> Configure Field attributes per activity,  it is possible to define, if you create a customer, that the Attributes Set field should be : displayed, hidden etc.
    Hope this helps!
    Best regards,
    Roula Lazaridou

  • How to create business rules from Jdeveloper 10.1.3.1.0

    Dear Experts
    Can I able to create Oracle Business rules from My JDeveloper 10.1.3.1.0. Using this link They are creating repositories, rule sets for their BPEL process, But in my version I cant found <BPEL components> under component palette. Why these features are missing, to get those additional features what I have to do.. ? Please suggest your best for me.
    Also Is it possible to build business rules from java sdk & from rule author..? If so means what is the difference, which one is having advantage.
    Thanks,
    Rajesh

    http://download.oracle.com/docs/cd/B31017_01/integrate.1013/b28981/decision.htm

  • 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

  • Problem using "Create Business Rule Design Definition" utility

    Hi everyone,
    I tried to create a business rule with Headstart Utilities - Create Business Rule Design Definition (Revision 6.0.0.20) and I got the following errors :
    Errors
    Message
    Combination of Message Prefix and Message Number (SGM-ENG) does not match format AAA-NNNNN.
    Activity aborted with ORACLE internal errors.
    -1400 ORA-01400: cannot insert NULL into ("HST50"."QMS_MESSAGE_TEXT"."LANGUAGE")
    I suppose that the utility concatenate the message prefix and the language to build the error message.
    Our Oracle Designer version is 6.0.3.9.0, Headstart 2.1.2 with patch 12.4 and Developper is 6.0.5.35.3
    Any patch available?
    Regards,
    Jerome Couture

    Tim,
    Headstart should be able to check out any tables you need.
    We think we have the user settings
    done correctly, but there may be something that we
    have missed. How can we get Headstart to
    automatically check-out the table(s) for which we
    want to run the Business Rules design transformer?The user settings you need are (see also pages 5-7 and 5-10 in the Headstart User's Guide):
    - Under 'Process the following objects', choose 'Checked out by anyone'
    - Also check the check box '... also Checked In objects'
    - Choose whether you want to automatically check out with or without lock
    If this does not help, please run the utility with log level 'Debug Detailed' (can also be set in the User Preferences) and report the last few lines of the log messages. They should give an indication of why the check out does not succeed.
    Hope this helps,
    Sandra Muller

  • Unable to find Business Rules in the JDeveloper while creating new project

    Hi All,
    I am going through the chapter 9 Creating a Rule-enabled Non-SOA Java EE Application for JDevloper 11g. I am following the instruction given in the chapter.
    However I am unable to find a Business Rules category for creating a Business rules directory.
    Probably it has to be activated from somewhere.
    I tried searching its significance with JDev installation but haven't got anything.
    It seems very basic level problem, however...Please let me know if anybody knows how to solve it
    Thanks,
    Makarand.
    Edited by: user11223806 on Aug 12, 2009 7:48 AM

    Did you install the SOA extension for JDeveloper from the help->check for updates?

  • Creating Business Rule aborts with CX_WD_CONTEXT Exception

    Dear experts,
    when I want to create a business rule, it aborts with an error.
    The URL call http://......../sap/bc/webdynpro/SAP/GRFN_AM_GAF_BUSINESS_RULE was terminated because of an error
    Termination type: RABAX_STATE
    The error occurs, when I am trying to set up the output format of the business rule ...
    Has anybody of a guess what that could be?
    Thanks in advance
    Kind regards
    Bernhard

    solved

  • GOTO in Business Rules.

    hello all,
    i am trying to create a business rule with GOTO to skip the "CurrYear" Calc.
    i am getting an error while doing this .
    ex :
    IF (&ProjMonth == "Jan")
    GOTO "CurrYear";
    ENDIF
    LOOP(1, PROJ_JAN)
    ENDLOOP
    :"CurrYear"
    EXIT;
    could anyone help me out what is wrong in the statement.
    Thanks

    Hi
    GOTO is an ESSCMD.
    I am not sure whether we can use it in Business rule.
    never used it.
    when I tried to use in a Business rule, I was not able to validate the business rule.
    please let us know if you have a way of using it.
    Thanks
    Dornakal.
    www.dornakal.blogspot.com

Maybe you are looking for

  • Ipod touch will no longer sync my songs, they show up for a few seconds then disappear help

    for some reason when I try to sync my songs to my ipod touch, they will all show up briefly, then disappear once I hit the sync button?  very frustrating, have never had this problem in the past, any suggestions would be great

  • Error bips table

    I have a 845 Pro (MS-6529) MSI mainboard with a P4 1.7GHz. My problem is that the system can't start. I mean, I turn on the computer, coolers start moving, but nothing more happens except for some bips I can hear. If I can hear those bips its because

  • SMC silent install

    I know there are config files that allow some silence during an installation, but the config file on setup does not. The setup will still prompt for keys and snmp setup. Is there a way around this. I noticed also that I can copy over the key cfg file

  • IFS-30002

    The problem is that when i try to upload a file from a client into the iFS usign both de WebUI and the WindowsUI iFS throws an exception: iFS-30002: Unable to create NewLibraryObject After that one, an other error is displayed: java.lang.exception: N

  • MM and BOM

    Hi, I have a doubt in MM and BOM, If I have a material A and this one is sometimes In House and sometimes is in Subcontract, can I have 2 BOM´s and choose in some field in MM. Material A= C+ B Material A: MM->F/SM->BOM 1->IR Material A:MM -> E(In hou