Validation in entity instance collection page

I have a requirement where I have a page on our OPA interview page which collects entity instance.In this page there are two fields person contacted and contact date.I have to validate that the contact date is one per week.Please advice how can I achieve this requirement.

There is no standard definition, nor function for "the same week" - e.g. does that mean a week starts on a Sunday or Monday, or within 1 week in either direction?. In other words, you will need to express the specific logic you desire for "during the same week" in terms of the available functions such as those that can determine the day of the week and/or those that return the date plus/minus a number of days and/or the difference in days between two dates. Some suggestions on simplifying the logic ... two dates that are more than 7 days apart can't occur during the same week so only worry about <= 7 days apart, two dates which are the same day of the week and different dates can't be within the same week, so your logic should only need to deal two dates are different days of the week and are less than 7 days apart. In that case, you will need to express exactly what you mean by during the same week. (e.g. is a Sun and Sat that are 1 day apart within the same week or not?) Your logic should reduce to a rule table dealing with each day of the week and a range of days before/after that define "within the same week".

Similar Messages

  • Page copy seems to mess up item validation referenced fields in new page

    Hello team,
    this morning i create two pages as a copy of an existing page in Apex 4.0.1.
    This page contained 4 regions, each one containing 4 items, sort of:
    reg1
    P44_ITEM_A1
    P44_ITEM_B1
    P44_ITEM_C1
    P44_ITEM_D1
    reg2
    P44_ITEM_A2
    reg4
    P44_ITEM_D4
    There were field item validations defined on each pair of items P44_ITEMCn - P44_ITEMDn and each validation was associated with its corresponding field (the element attribute linking the validation with the error message visualization i mean).
    After creating the new page, i saw that some of these validations in the new page had lost their associated item attribute value or they were associated to the item with the highest item sequence, for instance P44_ITEM_A1 lost its associated item, while P44_ITEM_D1 was associated to P44_ITEM_D4.
    I just did this again a few seconds ago, so i am pretty sure this is a repeatable error.
    Flavio
    http://oraclequirks.blogspot.com
    http://www.yocoya.com

    Hi Flavio,
    I was able to reproduce this, of sorts. I created 2 regions each containing 4 page items, named in the way you describe. Then created item validations on all of those page items. Copied the page and the copied page contains some validations with a null 'Associated Item' value. Although, none were changed to a different item as you describe, in my test case.
    I have filed bug #10198224 for this issue.
    Thanks for reporting.
    Regards,
    Anthony

  • Creating New Entity Instances within OPA

    This is another one that I think I know the answer to, but I think it is best to confirm.
    In prior versions, it was not possible to create entity instances within RuleBurst/Haley Office Rules. Is that still the case in OPA?
    For example, my rules are determining the status of a case and the reason(s) why that status was determined. The case status may be Denied and the reasons may be "invalid customer Id", "expenses to income ratio too high", "primary customer not employed long enough", etc. I want to return all the reasons for the status. While the list of reasons is pre-determined, the ones that apply to a particular case are dynamic, as any, but not all can apply.
    Given this situation using a database, I would create an instance of reason for each applicable one and link it to the case. In the past, with OPA's predecessor(s), it was not possible to create new instances from within. They either had to all be passed into the rulebase or a list of all allowable reasons attributes had to be created and then set to true for the ones that applied.
    My preference is to create the instances inside OPA. Is that functionality provided in the current version?
    Thanks,
    Terry

    Hi Terry,
    Michael is correct that you can't write rules at design time which will dynamically create new entity instances at runtime. However, perhaps the new inferred relationships functionality in v10 could address what you're trying to do.
    You can write rules which conclude membership of an inferred relationship. So you might always have, say, 10 instances of 'the reason' in every case, but as for which of those instances apply in any particular case, it depends on the details of the case. You could use an inferred relationship to collect up the entity instances which apply in the case.
    First you'd need to set up a regular one-to-many relationship to instantiate the 10 instances at runtime - this would be done in the usual way. Then you'd also need to set up an inferred relationship and write rules to conclude the members of the inferred relationship. The instances which are members of the inferred relationship are then effectively the list of entity instances you wanted to create in your example above.
    Have a look at this OPM Help article: http://www.oracle.com/technology/products/applications/policy-automation/help/opm10_1/Content/Rules%20using%20entity%20instances/Reason_about_relship_between_2_entities.htm
    Cheers,
    Jasmine

  • Return value of inferred entity instance from relationship in SOAP Determinations

    Hey,
    I had an original thread open which indicates the problem I was trying to solve (Multiple Conclusion based on input values ). My rule base now behaves as expected and I can test it in the debugger as expected, only now I can't get the actual identifying values back I want using the determinations web service.
    I get a whole bunch of inferred entity instances back from an inferred relationship the same as the situation/screen shot at the bottom of the "Investigate an inferred relationship" page on the Oracle Policy Automation Cloud Service User Guide, but in my SOAP response I only get the instances with hashed IDs. I want the actual identifying value of the entity.
    e.g. Currently get this:
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:i18n="http://www.w3.org/2005/09/ws-i18n" xmlns:typ="http://oracle.com/determinations/server/11.0/rulebase/assess/types">
       <SOAP-ENV:Header>
          <i18n:international>
             <i18n:locale>en_GB</i18n:locale>
             <i18n:tz>GMT-0500</i18n:tz>
          </i18n:international>
       </SOAP-ENV:Header>
       <SOAP-ENV:Body>
          <typ:assess-response>
             <typ:global-instance>
                <typ:attribute id="course_code" type="text">
                   <typ:text-val>AHPY</typ:text-val>
                </typ:attribute>
                <typ:entity id="the_supplementary_documents" inferred="true">
                   <typ:instance id="0x608c2dc220e15d8c"></typ:instance>
                   <typ:instance id="0x5b7e2d02e8780325"></typ:instance>
                </typ:entity>
                <typ:entity id="the_informational_documents" inferred="true">
                   <typ:instance id="0x19387621439a43c7"></typ:instance>
                </typ:entity>
             </typ:global-instance>
          </typ:assess-response>
       </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    But I want something like below and I'm having a lot of trouble figuring out how to actually do this. Also is there anywhere that defines the meaning of errors you get from OPA? I have tried to modify my rulebase and I got a few OPA-EXXXXX errors but apart from the description you get in OPM, I can't find anywhere that gives more detail on these and explains what they mean/how to fix it.
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:i18n="http://www.w3.org/2005/09/ws-i18n" xmlns:typ="http://oracle.com/determinations/server/11.0/rulebase/assess/types">
       <SOAP-ENV:Header>
          <i18n:international>
             <i18n:locale>en_GB</i18n:locale>
             <i18n:tz>GMT-0500</i18n:tz>
          </i18n:international>
       </SOAP-ENV:Header>
       <SOAP-ENV:Body>
          <typ:assess-response>
             <typ:global-instance>
                <typ:attribute id="course_code" type="text">
                   <typ:text-val>AHPY</typ:text-val>
                </typ:attribute>
                <typ:entity id="the_supplementary_documents" inferred="true">
                   <typ:instance id="http://mydomain.com/mydocument.pdf">
                   </typ:instance>
                   <typ:instance id="http://mydomain.com/mydocument.pdf"></typ:instance>
                </typ:entity>
                <typ:entity id="the_informational_documents" inferred="true">
                   <typ:instance id="http://mydomain.com/mydocument.pdf"></typ:instance>
                </typ:entity>
             </typ:global-instance>
          </typ:assess-response>
       </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>

    I managed to get this working by referring to this thread: Inferred Entity Instances IDs in output response
    I had tried something similar but not quite the same. In the end my request looked something like this:
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:typ="http://oracle.com/determinations/server/11.0/rulebase/assess/types">
       <soapenv:Header/>
       <soapenv:Body>
          <typ:assess-request>
             <typ:config>
               <typ:outcome>
              <typ:entity id="the_supplementary_documents">
                <typ:attribute-outcome id="supplementary_documents" outcome-style="value-only"/>
              </typ:entity>
              <typ:entity id="the_informational_documents">
                <typ:attribute-outcome id="informational_documents" outcome-style="value-only"/>
              </typ:entity>
           </typ:outcome>
             </typ:config>
             <typ:global-instance>
                <typ:attribute id="course_code">
                <typ:text-val>AHPY</typ:text-val>
       </typ:attribute>
              </typ:global-instance>
          </typ:assess-request>
       </soapenv:Body>
    </soapenv:Envelope>

  • Clarify a Limitation for Inferred Entity Instances

    Hi,
    Under the section "Write rules that infer relationships and entities" in the User Guide there is the
    Notes /Limitations
    1) Combining manually created instances with inferred instances is not allowed.
    2) Combining inferred entity instances with temporal values is not supported.
    3) Only a single attribute of the entity instance can be inferred as a part of the entity rule. For example, the type of benefit ("unemployment benefit") can be set but the amount of the benefit would have to be set via a separate rule.
    4) Inferred entity instances may not contain base level attributes.
    5) A relationship that participates in an inferred entity instance rule is considered to be an inferred relationship. This means that an inferred relationship rule cannot be used to prove the same relationship used in an inferred entity instance rule.
    Can number 4 be explained in a little more detail?
    Thanks

    I'm not sure I understand the question so I'm going to guess what you're asking by suggesting a business scenario and talk about how that would work. It is always much easier to talk about a specific business requirement you have rather than product features in general - so if you have a specific requirement I strongly recommend sharing it as you'll get better quality help.
    Anyway, if we keep our existing example of an inferred entity "the product" (has attributes: the name of the product, the price of the product). Say we want to know want the price of the most expensive product you have selected (a concept which would be represented by an attribute at the global level).
    You can do that. The rules to do that are just the same as the rules you'd use if instead of inferring the products and prices you instead asked the user to provide them (ie instancemaximum across a relationship). I'd send an example showing these rules - but it's not possible to attach files to this forum. You use inferred entities in the rest of your rules as if they had been input by a user - there's no difference. The key difference between an inferred entity and a non-inferred entity is that you can't collect more information about it (ie it can't have any base level attributes).
    You can use any attribute in a rule so long as the usage of the attribute matches the entity level of the conclusion. ie You couldn't use "the price of the product" directly in a rule with a conclusion at the global level - because you revert to the problem of "the price of which product?".
    On the off chance that this is somehow a "programmer" question (ie you're trying to understand how OPA works by treating it the same as another method for creating programs, for example a programming language like Java) - attributes in OPA don't have a concept of "private" and "public". If I tried to put OPA In those terms (and it's a stretch because OPA is not Java) - in OPA: everything is public (declare once use everywhere). An entity model in OPA is different thing to a class hierarchy.

  • How do I change the copyright info and links in collection pages?

    Can anyone tell me how I can change the copyright info and links on a collection page using the new updated Public Site Manager?
    1. When I click on 'Configure selected collection' there doesn't seem to be an option to edit copyright information and I've tried editing the info in Settings > Copyright Notice but it doesn't filter through to the collection pages.
    2. When I click on 'Configure selected collection' the links tab is empty but on my collection page there is a link called 'website' which links to our University website but the url is incorrect so I need to change it.
    Example screenshot -
    Thanks

    Also when I add a url list to a collection page and then delete all the links I'm left with a blank url list showing in preview page in iTunes. This should not happen, the admin guide says -
    "To delete a collection page URL list, delete all the links in the list. When you publish, if you have a URL list with no links, iTunes U Public Site Manager hides the empty URL list."
    It doesn't. At least it doesn't for me when I preview the collection in iTunes.
    Example screenshot

  • JBO-25017:Error occurred while creating a new entity instance (URGENT)

    Hello, can anybody help me?
    We have a project that uses BC4J business components and UIX-based web tier. The entity object that causes this problem is based on Oracle table with 'ID' key field, the value is generated by means of 'before_ins' trigger that inserts appropriate sequence's next value.
    In the java EntityImpl-based class we redefine protected 'create' method of the base class:
    protected void create(AttributeList attributeList)
    super.create(attributeList);
    SequenceImpl idSeq = new SequenceImpl("SEQ_CATPARAMETERS", getDBTransaction());
    setId( idSeq.getSequenceNumber() );
    The fault is in the third line - setId(...) causes the exception.
    The only description of JBO-25017 I found is
    http://www.ffpmp.ru/doc/rt/oracle/jbo/CSMessageBundle.html#EXC_ENTITY_ROW_CREATE, this one don't throw any light on the problem.
    Oracle server version - 9.2.0.1
    Oracle JDeveloper version - 9.0.3.10.35,
    BC4J version - 9.0.3.10.7
    Any ideas?

    Roman,
    It looks like you're trying to assign the Id in two places.
    EITHER:
    Override the create method to assign an Id when a new entity instance is created....
    OR:
    Define a database trigger to insert the Id (and set the "refresh after insert" attribute to true).
    [Maybe the error is thrown because you're attempting to set a field which is set to refresh?]
    Does that make any sense?
    Mike

  • EJB 3.0: How to merge detached entity with collection

    Hello,
    suppose you have 2 database tables: PARENT and CHILD with one-to-many association. In a session bean you load the parent entity together with collection of children and send it all to client. Client might change parent or child data, add/remove children.
    Now back in a session bean you want to update database, so you call:
    entityManager.merge(detached_parent_entity);Problem is, that removed child objects from entity bean collection are not deleted from database. Bacause I am currently using Hibernate, I could follow the FAQ (http://www.hibernate.org/116.html#A17) and add delete-orphan cascade, but I don't want to be tight to Hibernate nor other frameworks.
    Is there any sexy solution?
    Thanks for replies!

    I'm afarid not - a generic feature that will allow to
    delete orphan children didn't make it into the final
    spec.
    regards,
    -marinaDo you happen to have any links to public discussions about this feature with regard to the development of the spec? This is a very nice feature in Hibernate and it's absence in EJB 3.0 is rather disappointing.
    Thanks.

  • INS-08109 Unexpected error occurred while validating inputs at state nodeselection page

    Scenerio: We have 4 node 11gr2 RAC cluster and Trying to install RAC Database software only on two nodes
    Getting warning on run Installer Page INS-08109 Unexpected error occurred while validating inputs at state nodeselection page while selecting two nodes out of four and even after confirming it comes back to same screen ....
    Example ... RAC node A,B,C,D  and clusterware is up and running on all four nodes .....
    Trying to Install RAC database on node C,D ... Getting INS-08109 Unexpected error occurred  while selecting C,D  Node out of Four nodes ...A,B,C,D

    Very stupid installer !
    I've omitted my email, then pressed no in the next message, it passed that step!

  • No longer able to select customized color theme for a collection page?

    Previously I have been able to select a custom colour theme for my collections in Public Site Manager by clicking on Collections > Configure Selected Collection > Theme
    The ‘theme’ tab is no longer showing – see screenshot –
    Does this mean we can longer apply a custom theme (custom colours etc.) to our collection pages?
    It seems we can still create themes (see screenshot below) but we’re no longer able to apply them to collection pages. Is anyone else seeing this?

    What I don't understand is - if Apple have got rid of themes on collection pages - then I would expect a generic theme to be applied retrospectively to all existing collection pages. What I see however is my custom theme on all my existing pages i.e. no change - but when I create a new collection obviously I now don't have the option to apply the custom theme - so I get a generic white on dark grey theme on new collection pages. In summay my existing pages have my custom theme applied and a few new pages have the generic theme and there's way for me to make them all look consistent.

  • Pages is not saving document correctly.  After saving the changes either do not appear or you can not open the file. The error is "not a valid format"  I am in Pages '09 4.1 (923).  I also use Parallels.  Anyone having similar issues?

    Pages is not saving document correctly.  After saving the changes either do not appear or you can not open the file. The error is "not a valid format"  I am in Pages '09 4.1 (923).  I also use Parallels.  Anyone having similar issues?

    I'm not sure that Lion AutoSave feature apply to network servers.
    I'm just sure that the Versions feature doesn't.
    Yvan KOENIG (VALLAURIS, France) samedi 21 janvier 2012
    iMac 21”5, i7, 2.8 GHz, 12 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
    My Box account  is : http://www.box.com/s/00qnssoyeq2xvc22ra4k
    My iDisk is : http://public.me.com/koenigyvan

  • The page contains markup that is not valid when attached to master page

    Hi,
    I have create an web application in VS 2005 and convert into VS2008. now i am facing a problem that a single page is not open in design mode which is inherit from master page.
    and a message comes.
    Error: The page contains markup that is not valid when attached to master page
    please give me the suggestion that how can i open this page in design mode.
    Thanks
    Gaurav Anand

    Neither worked for me.  Here is my code.
    <
    asp:Content ID="Content1" ContentPlaceHolderID="fkhead" Runat="Server">
    <script runat="server">
    Public Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
    If Not Page.IsPostBack Then
    Dim a As String = "This is other data"
    pqriminadpaylbl.Text = a
    pqrimincustlbl.Text = a
    pqriminadpaylbl.Text = a
    pqriminpcdevlbl.Text = a
    pqriminpctoollbl.Text = a
    pqriminsaleslbl.Text = a
    pqriminspadeslbl.Text = a
    pqriminspamatlbl.Text = a
    pqrimintdamortlbl.Text = a
    pqrimintdcclbl.Text = a
    pqrimintddtlbl.Text = a
    pqrimintdfclbl.Text = a
    pqrimintucdeslbl.Text = a
    pqrimintucdollarlbl.Text = a
    pqrimintucmatlbl.Text = a
    pqriminvolaslbl1.Text = a
    pqriminvolaslbl2.Text = a
    pqriminvolasyear1lbl1.Text = a
    pqriminvolasyear1lbl2.Text = a
    pqriminvolasyear1lbl3.Text = a
    pqriminvolasyear1lbl4.Text = a
    pqriminvolasyear1lbl5.Text = a
    pqrimindislbl.Visible =
    False
    pqriminprevbtn.Visible =
    False
    pqriminnextbtn.Visible =
    False
    End If
    End Sub
    </script>
    <style type="text/css">
    .trest
    .newStyle1
    text-align: right;
    .table
    width: 100%;
    .newStyle2
    font-size: 20pt;
    font-weight: bold;
    text-decoration: underline;
    text-align: center;
    .tdparts2
    font-size: 16pt;
    font-weight: bold;
    .tb25
    width: 25%;
    font-size: 9pt;
    .tb20
    width: 20%;
    font-size: 9pt;
    .tb40
    width: 40%;
    font-size: 9pt;
    .tb30
    width: 30%;
    font-size: 9pt;
    </style>
    </
    asp:Content>
    It works fin, but the designer keeps craping out.  This was not happening until recently.  Not sure what is up with it.

  • Valid Use of a Collection in SCCM

    I've read the contents of this post with much interest and would like to ask about whether my particular requirement is possible.
    When we build a server for the first time we need to ensure that it is not placed in collection with other production servers for obvious reasons. So I was thinking about creating a provisional collection
    container where we can place newly built servers pending the QA of the build. The container will resemble the Production Collection in every respect except who has permissions to perform maintenance tasks on the objects in the collection. So if there is an
    issue with the build and we need to delete the object or reset its maintenance flag, we don't risk inadvertently doing this to a normally functioning production server. That way we can also restrict who has the authority to maintain the collection to the build
    teams. Only when the server is fully functioning and provisioned in AD and formally handed to the run teams, will it be moved to the Production Collection.
    Is this a valid way to use Collections? If so is there any existing SCCM Task Sequence tool that will move servers between containers or do we need to develop one?
    Many thanks....

    Hi,
    It sounds like a valid use of Collections. There is no builtin tool to move a device from a collection to another, you could check out the Right Click tools for SCCM 2007 and see if there is one or, simply change one of the right click tools script to have
    that feature.
    Regards,
    Jörgen
    -- My System Center blog ccmexec.com -- Twitter
    @ccmexec

  • Validation in entity level

    hi all
    I have an entity "currncy" and I want to make
    a validation in entity level on its attribute "Isdefaultcurrency"
    which is boolean.
    Entity Object : Currency
    attributes :
    1. Currencyid DBsequence
    2. Currencyname String
    3. Isdefaultcurrency, Boolean, CheckBox
    Rule Type : List
    Operator : In
    List Type : Query Result 'select ISDEFAULTCURRENCY from currency where ISDEFAULTCURRENCY=1'
    I want when user insert in table, validation checks the attribute 'Isdefaultcurrency'
    was true then show the error message that there was default currency and if you
    want to set it to true (or default) you must change another record that was true
    and uncheck it then back to current record and will make it true and
    there is one record in my table that its attribute 'Isdefaultcurrency' must be true
    please explain it

    Hi Thanks for reply,
    i used following but same issue, the respected fields are not getting marked.
    EoIMpl
      public void registerAttrValExceptionForAttribute(String attrName)
        oracle.jbo.AttributeDef attrDef = getDefinitionObject().getAttributeDefImpl(attrName);
        registerAttributeException(attrDef, 0,
                                          new oracle.jbo.AttrValException(oracle.jbo.common.MetaObjectBase.TYP_ENTITY_OBJECT, getResourceBundleDef(), ERRCODE, getEntityDef().getFullName(),
                                                                          attrName, getAttribute(attrName), null, false));
      }EO-Validation Groovy Script
    source.registerAttrValExceptionForAttribute('MyAttr');Thanks,
    Santosh.

  • Problem with Length validation in entity

    hi,
    I wanted to do length validation on entity, but when i put greater than 3 then my system is working if i enter 3 then it's giving error, i have taken Length Rule type also.

    Hi,
    What is the rule you specified? and What is the requirement?
    Sireesha

Maybe you are looking for

  • Curve 8520 browser problems - please help!

    I've had my Curve 8520 for three weeks and it was working like a dream. However, yesterday evening, the browser application suddenly stopped working. I know it's not an issue with my wi-fi, as my laptop is still working fine. When I try to load the b

  • JMS: is it possible to monitor the length of the queues?

    Hi, is it possible to monitor in realtime how many messages are in a JMS queue waiting for being processed? I'm using the standalone OC4J. Matteo Candaten

  • Nikon D80, Digital Rebel XTi / 400D / Kiss X ... RAW support Here

    Digital Camera RAW Support Update PPC : http://www.apple.com/support/downloads/digitalcamerarawsupportupdateppc.html Universal: http://www.apple.com/support/downloads/digitalcamerarawsupportupdateuniversal.ht ml " About this update Mac OS X Tiger pro

  • Yosemite drops WiFi when I AirPlay to Apple TV

    When I AirPlay from my Mac to my Apple TV I lose my WiFi connection. I understand this is because Yosemite now directly connects to Apple TV through WiFi, but is there a way to disable direct connect and just connect to Apple TV through my router lik

  • All browsers freeze in Mavericks

    Ever since i've moved from Mountain Lion to Mavericks i'm having major problems with all browsers (Safari, Chrome, Firefox, Chromium). They all freeze for 4-5 seconds, and this happens every 1-2 minutes. This happens on every pages i visit, even on '