Need advice on how to model this rule

Hello

I got stuck in the modeling of a rule. I will try to paint the image with some examples:

Assume the following entities (and relationships)

the child (children)

the toy (children's toys)

the Cabinet (the Cabinet)

I would like to build a Boolean by saying that all kids can store their favorite toys more in the closet of best

What I've tried so far:

I have deduced a relationship for the closet best.

I also inferred a relationship for the more a child's favorite toy.

Now I'm stuck. What should be the way to do this? Is this possible? I have the feeling that I missed something. It could be up to simple, but I'm relative new to OPA.

Any help is appreciated.

See you soon,.

Han Joosten

HI Han,.

When I first had a go at this, I've had several alleged relationships and he complicated me, then I tried to simplify it down to relationships deemed minimal. Here's what I did...

Entities and relationships

Containment relationship

Global--> one - to-many--> children (relationship text: children)

child--> one - to-several--> toy for the child (text of relationship: the toys of the child; reverse text: the plaything of the child)

Global--> one - to-many--> the Cabinet (text of relationship: cabinets)

Alleged relationships

the Cabinet--> to-several--> toy for the child (text of relationship: toys of the Cabinet)

Note: Before you can write rules to match two different entities, you define a relationship between them in the properties file.

Rules

Determine the best closet...

I made a number of "priority of the Cabinet attribute." The best wardrobe is one who has the lowest number of priority, i.e. the closet with priority 1 beats the closet with priority 2.

the Cabinet is the best closet so

priority of the Cabinet = the number of priority of the Cabinet from the top of the page

the number of priority of the Cabinet from the top of the page = InstanceMinimum (cabinets, priority of the Cabinet)

If you want to reverse the logic of priority so that the largest number is the 'best', use InstanceMaximum instead.

Determine the favorite toy...

Similar approach with toys:

toy of the child is the favorite if toy

priority of the toy to the child = the high number of priority of toys of the child

the high number of priority of toys of the child = InstanceMinimum (toys of the child, the priority of the toy to the child)

Put the favorite of every child in the closet of best toy...

Write a membership rule to associate toys of the child and the cabinets:

toy of the child is a member of cabinet if toys

the Cabinet is the best closet and

ForScope (the toy to the child)

toy of the child is the favorite toy

Rules of procedure to tie it all together...

The rules above do all the work of tricky logic. If you want a global-level rule that binds together, you can add rules of procedure, for example

the appropriate cabinet has been determined for all of the favorite if toys

ForAll (children, the child's favorite toy was determined) and

ForAll (cabinets, we know whether or not the closet is the best wardrobe)

favorite childhood toy was determined if

ForAll (toys of the child, we know whether or not the child's toy is the favorite toy)

Test scenario

I tried the following test scenario, which worked as expected.

Entries

Child: Bart

Toys: Krusty Doll (priority 1), TV (priority 2)

Child: Lisa

Toys: Saxophone (priority 1), Malibu Stacy (priority 2)

Closet: Closet (priority 1)

Closet: Closet B (priority 2)

Results

A wardrobe is the best wardrobe

Instances of 'toy of the child' associated with Cabinet A: Krusty Doll, Saxophone

Enclosure B is not the best wardrobe

No case of 'toy of the child' associated with Cabinet B.

Other comments

If every child can have several "favourites" toys (that can go in the closet best), then do "toy of the child's favorite toy" an attribute of base level. Any toy where "the plaything of the child is the favorite toy" = true will partner with the best closet, i.e. Cabinet has in the above scenario.

According to what you do, it may be interesting to create an inferred relationship for 'favorite childhood toys', for example

toy of the child is a member of his favorite toys of the child if

IsMemberOf (toy for children, toys of the child) and

toy of the child is the favorite toy

See you soon,.

Jasmine

Tags: Oracle Applications

Similar Questions

  • I downloaded the trial version of ambient light recently and have not yet used.  It seems that someone in Uruguay has hacked my email account.  Can someone give me advice on how to handle this?  I have no intention of submitting a credit cardnum

    I recently downloaded the trial version of ambient light.  I have not yet used.  There is no eveidence that someone hacked into my email account.  I was intending to buy Hall of light at the end of the trial period, but have no intention to submit my credit card information until it is resolved.  I appreciate all the advice on how to handle this and secure the information I have.  Thank you.

    Start buying, security of your email account. After that when you go to buy the LR or the photographers subscription plan, you will be on the secure site of Adobe and has nothing to do with your e-mail account that is currently being hacked.

  • Need advice on how to create the report

    I don't know how to do this, so I ask for advice from the gods apex...

    Here is the question, I have two tables I need to combine the info from. not a problem in his car. I can do it. but here's the question. in table A, I have some data such as title, theids, disc_id, etc... Table B contains fullname, theid, emplid

    now in the table A column "theids" is filled with apex as a multi select list. the values in the column is therefore something like 48; 3; 88

    He got these identification numbers of the Table B (popup lov) query that returns theid of the one of the person.

    now, I need to create a report that will be used in an excel download and what they want is a line by disc_id and they want the most useful "cost" in the field where to run the "theids." It is instead of:

    disc_id title theids
    101 the 48 test; 3; 88

    they want:

    disc_id title Theids
    101 N33456, N3457, try N43562

    so I'm a bit stuck, I can understand how to write a sql using instr to get something like this:
    101 N33456 of test
    101 N3457 of test
    etc.

    but this isn't what they want. so I think I need to create a package to do this and some sort of return values. the problem is that I can't figure out how I can replace the 48; 3; 88 to N33456, N3457, N43562

    I'm still new to this kind of things pl/sql and apex sorry if this appears to be an obvious answer.

    If you have a look at this example:

    http://HTMLDB.Oracle.com/pls/OTN/f?p=31517:138

    You'll see there

    SELECT empno, ename, job, mgr, sal
      FROM emp
     WHERE INSTR(':'||:p138_select_empno||':', ':'||empno||':') > 0
    

    and

    p138_select_empno is a multiple selection list displaying the names of the employees and containing the string of nosm as 7888; 8900; 3499.

    This info is enough to get to a function like this:

    CREATE OR REPLACE FUNCTION get_string (p_string IN VARCHAR2)
       RETURN VARCHAR2
    IS
       v_string   VARCHAR2 (4000);
    BEGIN
       FOR c IN (SELECT ename
                   FROM emp
                  WHERE INSTR (':' || p_string || ':',
                               ':' || empno || ':'
                              ) > 0)
       LOOP
          v_string := v_string || ', ' || c.ename;
       END LOOP;
    
       v_string := LTRIM (v_string, ', ');
       RETURN v_string;
    END;
    

    and use this function in a report like this:

    SELECT get_string (:p138_select_empno)
      FROM DUAL
    

    Denes Kubicek
    ------------------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Opal-consulting.de/training
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    ------------------------------------------------------------------------------

  • I can't sign in on my Mac Pro 2009 iMessage. Any advice on how to remedy this situation would be appreciated.

    When you try to connect, I get the following error message.

    I am connected to internet via ethernet. I tried to connect via WiFi as well with no luck. Any other access to the internet is very good as are the connections. In addition, I tried to disconnect from iCloud and then signed in, booted in safe mode and finally reinstalled El Capitan with no luck. My Mac Pro is an early 2009, 8 core 2.66 GHz with 32 GB of RAM. My boot drive is an Accelsior E2 480 GB SSD. The current version of the operating system is 10.11.1.

    Any suggestions on how to address this problem would be greatly appreciated.

    Thank you.

    Have you tried:

    Get the help you accessing Messages, FaceTime, and Game Center

  • Need help on how to fix this 0x800106ba.

    IMesh due to a virus. Windows Defender will not work. Told to uninstall and reinstall. Typed in apwiz.cpl, but the Defender isn't here for me to uninstall. Need help please.

    Hello

    Defender is part of the vista operating system

    You cannot uninstall or reinstall

    read this information

    ·                         If you use microsoft security essentials avg avira mcafee norton etc they disable the vista version of windows defender by default

    the basics of Microsoft security has its own version of windows defender

    and other anti-virus programs use their own particular type of application to scan for spyware and malware

    It of nothing to worry and is the default action, which is designed for them to do

    If the above does not apply to your machine to read the information on the below link on how to disable the windows defender service in vista or make an autostart to enable

    http://www.groovypost.com/HOWTO/Microsoft/Vista/disable-Windows-Defender-service-in-Windows-Server-2008-or-Vista/

    and here is the method to remove it from startup in vista

    http://www.groovypost.com/HOWTO/Microsoft/Vista/remove-Windows-Defender-from-Vista-system-startup/

    and this is how you would normally activate or disable windows defender in vista from within defenders of own and options tools

    http://www.groovypost.com/HOWTO/Microsoft/Vista/disable-Windows-Defender-for-Microsoft-Vista/

    you would like to read this information on the malicious software removal

    Download update and scan with the free version of malwarebytes anti-malware

    http://www.Malwarebytes.org/MBAM.php

    You can also download and run rkill to stop the process of problem before you download and scan with malwarebytes

    http://www.bleepingcomputer.com/download/anti-virus/rkill

    If it does not remove the problem and or work correctly in normal mode do work above in safe mode with networking

    Windows Vista

    Using the F8 method:

    1. Restart your computer.
    2. When the computer starts, you will see your computer hardware are listed. When you see this information begins to tap theF8 key repeatedly until you are presented with theBoot Options Advanced Windows Vista.
    3. Select the Safe Mode with networking with the arrow keys.
    4. Then press enter on your keyboard to start mode without failure of Vista.
    5. To start Windows, you'll be a typical logon screen. Connect to your computer and Vista goes into safe mode.
    6. Do whatever tasks you need and when you are done, reboot to return to normal mode.
  • Need advice on how to analyze the integrated calculation

    Hello

    I have a following problem:

    I have a table1 where I have the list of parameters to their current values;

    I have a table2 where I have a list of calculations that use these input parameters; the formula is stored as a string in a field

    I also have a table 3 where I have a list of calculations with the corresponding parameters, which are used by them;

    I also have 4 table, which must contain the result of a calculation according to the formula of table2 with values of parameters from table1

    requirement: procedure that will populate the table 4.

    my original idea was to do the following:

    1 call the procedure with the id of calculation

    2 extract the list of parameters for calculating id

    3 assign the values from table1 to the parameters of the step 2

    4. run the formula with the assigned values-> new procedure called with the formula and table of variables/parameters? dynamic SQL?

    can you please advise me what will be the best approach here?

    Thank you for the advice

    Some examples of data

    / * remove the table TEST_PARAMS;

    drop table TEST_CALC;

    drop table TEST_CALC_PARAM; * /

    /

    create the table TEST_PARAMS

    (

    param_id varchar2 (10),

    varchar2 value (50)

    )

    /

    insert into TEST_PARAMS values('param1',15);

    insert into TEST_PARAMS values('param2',25);

    /

    create the table TEST_CALC

    (

    CALC_ID varchar2 (10),

    CALC_FORMULA varchar2 (50)

    )

    /

    insert into TEST_CALC

    values ("CALC1",'(param1 + param2) / (param1 * param2)')

    /

    create the table TEST_CALC_PARAM

    (

    CALC_ID varchar2 (10),

    CALC_PARAM VARCHAR2 (10)

    )

    /

    insert into TEST_CALC_PARAM values ("CALC1", "param1");

    insert into TEST_CALC_PARAM values ("CALC1", "param2");

    COMMIT;

    /

    Thank you very much

    Rgds

    XQUERY + MODEL:

    with t as)

    Select calc_id,

    calc_formula,

    Expr,

    r

    of test_calc c,.

    test_params p

    model

    partition (c.calc_id calc_id)

    dimension by (row_number () over (partition by order of 1 c.calc_id) r)

    measures)

    calc_formula,

    Replace (calc_formula, ' /', 'div') expr.

    param_id,

    value

    )

    rules)

    expr [any] order of r desc = regexp_replace (nvl (expr [cv () + 1], expr [cv ()]), param_id [cv ()], value [cv ()])

    )

    )

    Select calc_id,

    calc_formula,

    result xmlcast (xmlquery (expr content return) under the number)

    t

    where r = 1

    /

    CALC_ID CALC_FORMULA RESULT
    ---------- -------------------------------------------------- ----------
    CALC1 (param1 + param2) / (param1 * param2).106666667

    SQL >

    SY.

  • I need advice on how to solve a problem of blue screen.

    Whenever I leave my computer for 15-20 minutes, I get a blue screen.  The error message is the following:

    Stop: 0x000000F4 (0 x 00000003, 0x8AB5D588, 0x8AB5D6FC, 0x805D22AA)

    This line is followed with:

    Beginning physical memory dump

    The only way to close this blue window via the power on / off switch.

    I came back to an earlier backup and the same problem exists... I did a chkdsk /r recovery mode task, and that did not help... I took several recommendations that I found the Internet regarding how this fix did not work - nothing I've tried has solved this ongoing problem.

    Can someone give me a clue as to what the error is all about and how can I solve the problem?  Needless to say, I am lost on what to do next and any help sent my way will be greatly appreciated.

    Windows XP Pro Service Pack 3

    Frog

    Sorry that I was unable to return to it so far.  My computer decided to crash shortly after sending my first message in this thread.  A hard drive test informed me that she had not.  I decided to take my computer to the store for a new hard drive.  While there, the technology has attempted to re - install the software from my old hard drive on the new hard drive - that didn't work because the operating system was corrupt.  Thus, only the new operating system has been reinstalled on my new hard drive and I am just now able to get back to the internet.  Fortunately for me I had a backup of the system.  Although the back-up also had a corrupted operating system registered on it, this backup made allowed me to look at what was on my system before installation of my new hard drive.  In any case, I now work to restore the software that was previously on my computer.

    Yet once again, sorry for not responding not sent help my way - it was out of my control.

    Thanks for the replies.

    Frog

  • Need advice on how to recover the Aero theme

    I lost the theme Aero Windows Vista Edition Home Premium. Have you tried everything to bring him back, but the "themes" is no longer the same figure as in services.msc. Any ideas on how to get that back? Do not appear as an option in customize. Desktop window manager is launched and running, etc.
    Thank you

    Maybe this might help you:

    http://answers.Microsoft.com/en-us/Windows/Forum/windows_vista-desktop/Aero-theme-is-no-longer-working-in-Windows-Vista/9f384572-df25-4d13-a825-9082dcfa266a

    LC

  • Need advice on how to get SILVERLITE to connect properly to my Comcast/Showtime programming.

    I have a MacBook Pro.

    Recently, I'm subscribed to Showtime via Comcast.
    Microsoft of SILVERLITE should be "upgraded to watch Showtime.
    I managed to upgrade and download SILVERLITE.
    However, I am still not able to access Showtime programs.
    Comcast suggests it is a technical problem at Microsoft and I need your support to understand this.
    Help, please!
    Thank you.

    Hello

    Check this thread and ask in the SilverLight Forums:

    http://answers.microsoft.com/en-us/windows/forum/windows_other-windows_programs/in-updating-my-netflix-in-my-mac-book-pro-i-cant/87c2ab87-a3d6-4f7d-bef7-e4a5381f268b?msgId=f1441c5d-7b30-40a6-91db-e1ac7e75aebd

    SilverLight - Forums
    http://forums.Silverlight.NET/

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle=""><- mark="" twain="" said="" it="">

  • I need advice on how to best fill af:table

    I have af:table and VO: Select a, b, c and d from table1

    But I need the fifth column: select count (table2.e) table2, table1 where a = table1.a

    What is the best way?

    Just to add to the query of the view object, it will be added in the calculated field.

    Like this:

    Select a, b, c, d (select count (table2.e) from table2 where = table1.a) from table1

  • Help! Need advice on how to read an excerpt of the Catalogue database

    Recently, my secondary hard drive that contains my recent photos crashes :-(

    Here are all the photos, but I couldn't always high quality 1:1 access thumbnails that I generated in LR 2.5. What I know is that the thumbnails are located on C:\Documents and Ryan Documents\My Pictures\Lightroom\Lightroom 2 catalog Previews.lrdata\, someone has an idea how can I recover photos in thumbnails?

    We hope to get some advice...

    Yes. Go to imageingester.com and download LRViewer. It's free and will do what you want. It is available for Mac and PC.

    HAL

  • I was entering numbers in a table of existing pages and suddenly the formatting has changed and I can't type numbers the way I need too.  How to fix this?

    I was entering numbers in a chart in Pages to update the information and all of a sudden the cells do not have the formatting that I want.  It's changing the way numbers which I type them, and I don't know why or what to do?

    Hi Slf@LF,

    Numbers and pages are trying to be smart and recognize wht kind of data that you enter. If you enter something that resembles a date they will treat it as such. Some people have problems with serial numbers because programs to format their numbers and not text.

    View the data that you are trying to enter and how it's changed and we ca probably to understand what is happening to her.

    Quinn

  • Submit an RSS feed to itunes, but I keep getting a message saying 'cannot submit your feed. There is no description tag in your diet, or the description tag is empty. "Any advice on how to solve this problem?

    Our podcast is released through Libsyn, who confirmed to me that our RSS feed is valid. I talked to two Libsyn and itunes support or knew what it is I do. Thanks a lot for any advice you may have.

    RSS feed: http://enslavedbythebell.libsyn.com/rss

    I went and tweaked your workflow slightly.

    Try to send back you your feed now.

    Rob W

    libsyn

  • I installed a computer game called the Sims 3, I can start the game, but then just Kicks me off right back to my office. I need to know how to fix this to work right! Thank you!!

    The driver is the problem, and the Message says that the pilot had not, but he recovered and that's all he set up and I can't click on the Message for more information because he Disappaer out of the taskbar and the game just guard shot me. And I don't know what to do to solve the problem. I don't know if I need a better video card or if my license is the main problem?

    Or the other of your machines use Intel's integrated graphics? If so, maybe that's the problem. Sims 2 would do the same for users with these types of graphics cards.

  • BlackBerry Smartphones Hi all need advice on how to transfer the address of .ipd fileon list my PC to the torch.

    Hi my name is Rema. Just got my 2nd BB, a torch to replace my old Bold.Am of 2 years already having problems and I hope someone can help.

    first of all, when I do a backup of sync, I get an error Ox80040057 Gael. I have no ide what it means

    Secondly, I can't transfer the address list in the file .ipd of my "BOLD" on my PC to the torch.

    I tried to use magicberry read and check if the .ipd document is readable.

    Please notify. Thank you.

    Have you tried using the BlackBerry Desktop Manager's restore function to transfer contacts? Check the below section of the knowledge base for more details.

    KB10339  How to use BlackBerry Desktop Manager to restore the data to a BlackBerry smartphone from a backup file

Maybe you are looking for

  • I have a problem with the functionality of search bar

    If the search bar has changed recently and is shit... Basically, there is way more information to I type in my search, and if my mouse happened to move a button randomly when I hit "enter" it looking a different engine or go to "change search setting

  • Finder view options

    Hello. In the Finder, what is the difference between reorganize by - and the sort by options? Thank you.

  • 750se envy: envy of the brand new office no signal to the monitor via HDMI

    Just got my new 750se envy and 25 x 25 backlit monitor. After putting it all together, I connect the monitor of the Tower via HDMI. Tower boots, display lights, I pop in setting up the drive, but the monitor says that it cannot find a signal. I test

  • G72-B60US: how to fix the Windows 7 startup problem if HP has never provided a disk to reinstall Windows?

    Recently, my HP G72-B60US, is unable to boot. The window manager start Windows displays "unable to start Windows. To solve the problem: 1. Insert your Windows installation disc, and then restart your computer 2. choose your language settings, and the

  • Program at STARTUP

    I'm not aware of any changes that I made for my XP installation In the past, when I click on ' START ' will appear a list of programs, which included 'Control Panel' It's more, I really need to navigate to open the control panel. (enter the race). In