How to create a complex Rule in Oracle Business Rules?
Hi, I have this classes:
public class User{
private List<Country> countries;
public List<Country> getCountries(){
return countries;
public class Country{
private String name;
public String getName(){
return name;
Is it posible to create a rule to evaluate if one of the countries of a User has its name equals to "USA" ? How can I do that?
I 'm evaluating this product but find that I only can create rules with very simple conditions.
Thanks in advance for your help.
1) Write a function that takes a List and a String and return true if the list is in the String.
2) Assert a fact
class UserCountry {
User u;
Country c;
to link the Country facts to the User facts.
3) Use an Advanced form pattern (in RuleAuthor) to do
fact User u &&
u.getCountries().contains("USA")
Similar Messages
-
How to disable password complexity rules at application express 4.2 installation?
Please, provide me how to disable password complexity rules at application express 4.2 installation.
Best Regards,
MoustafaAccording to the manual you need to check "Configuring Password Protection" in Oracle Database Security Guide
In the security guide http://docs.oracle.com/cd/B28359_01/network.111/b28531.pdf, section 3-9/p61, you'll see you need to alter the script UTLPWDMG.SQL. You''l find the script in ORA_HOME/rdbms/admin.
You'll need to change the script to your own liking. -
How to create a custom plugin in Oracle Access Manager to create a cookie
How to create a custom plugin in Oracle Access Manager to create a cookie or Header Variable..
VipinIts has more steps which you need to consider in addition to Note:101048.1 which is mentioned by Prashant_Pathak. Both notes have enough information. If not, let's know what else you need to set
-
How we create new data base in oracle 10g express edition
hello every body.. i student of B tech n new user of oracle so please help me how we creat new data base in oracle 10g express edition
Hello, Oracle XE can not create more than one instance, the other editions yes, but like other editions XE allows you to create database schemas, schemas logically grouped objects like tables, views, indexes created by a user. By creating an Oracle user is associated with a schema of the same name.
Using SYS or system accounts for creating user accounts.
Syntax to create a user:
create user Your_user
IDENTIFIED BY password
default tablespace users;
grant connect, resources to your_user;
Edited by: rober584812 on Jun 25, 2010 9:03 PM -
COPA Report - How to create a complex formula
Hi SAP guru,
Please shed some light on this issue.
In COPA drill down report, could any of you know how to create a complex formula? My client requires the report to show the conditional formula such as
IF value field 1 is zero, calculate A
IF value field 1 is not zero, calculate B etc..
Your help will greatly be appreciated.Hiya,
Specify the formula for that row, then double-click the value and it provides some options. I believe you can manipulate the calculation based on that.
The best option would be to create the Value outside of the report and use the report simply to display it.
Another option would be to use COPA enhancements (using T-Code SMOD) to calculate values. Since you can include ABAP code, you have the freedom to calculate just about anything you want out here.
Alternatively, you could use Actual Valuation (IMG --> CO --> COPA --> Master Data --> Valuation --> Using Condition Records) and input a formula based on an actual value. If the actual value is something like Sales Revenue, you can "map" it to that field within the Condition Type. Assign the Condition Type to a Value Field and provide a Val Strategy to pick it up during Actual Postings (PV = 1)
Hope this helps.
Cheers. -
How to create a learning certification in oracle learning management
Hi all,
can any body know how to create a lerning certification in oracle learning management.
thank you.Hi,
Please refer to [Oracle Learning Management User Guide |http://download-uk.oracle.com/docs/cd/B25516_14/current/acrobat/115olmug.pdf], Page 2-13 Learning Certications.
Regards,
Hussein -
How to create Profile Based Rule in Endeca Studio Developer
Hi,
Can anybody tell me how to create Profile based rule in the Endeca Studio Developer. and how to fecth the data in the JSP. what are the parameter required to pass in the ENEQuery
Thanks
ShaileshI use visual studio 2012.
I dont see rule set editor which can help me create busineesss rule.
Where can I find it?
Hi Rajesh,
If you want to learn more information about RuleSet Editor in .net framework 4.5, check out https://msdn.microsoft.com/en-us/library/ee960221(v=vs.110).aspx
for more information.
Best regards,
Angie
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
How To Creating A Object Libraries In Oracle Forms 6i
hi
All
I Not No How To Creating a Object Libraries In Oracle Forms 6i
How To Add Your Pl/sql Block In a Lib
But What Is Use it is i Know , So I Want To Creating a Object Libraries.
So Any One Have A Idea Plz Help Me.Hi,
there is a good paper:
http://www.quovera.com/whitepapers/downloads/102_doc.zip
http://www.quovera.com/whitepapers/downloads/102_ppt.zip
Best,
Friedhold -
Do you know How to Create Screen Layout Rules ?
Hi,
Do you know How to Create Screen Layout Rules ?
Best regards,Hi,
http://help.sap.com/saphelp_45b/helpdata/EN/ae/ea2c7dd435d1118b3f0060b03ca329/content.htm
Please also read the "Rules of the Engagement" before posting a query on this forum.
Regards,
Gaurav -
How to create java stored procedure from oracle(Dastageer)
how to create java stored procedure from oracle-please help me to create the procedure.
Hi,
This forum is exclusively for discussions related to Sun Java Studio Creator. Please post your question in the appropriate forum.
Thanks,
RK. -
How to create interactive map in SAP Visual Business using SAP UI5 SDK
Hi,
Please tell me,
How to create interactive map in SAP Visual Business using SAP UI5 SDK.
Is it possible to create interactive map using VB Control in SAP UI5 SDK..?
if possible please any one let me know.Hi folks, one question:
We have our development close moved and now it is earlier than originally planned.
That means that we maybe can't finish our convenient API and you have to wait till we will release it - early 2015 is planned.
But there is another option:
Currently we have a API based on json. The developer has to create json and to transfer it to the Visual Business control.
This interface is more used as a low level API and we are developing on top the more convenient one. So all the features are the same.
It will stay stable & compatible in the future and you can build on it.
Do you want to use this interface?
Then I will publish the documentation.
Let me know.
Thanks -
How to create a Complex Organization Index Materialized View Example
Hi
I have a 11g database that I'm trying to create a complex Materialized View that I would like to make Organization Index? How do I specify what I want for a primary Key?
CREATE MATERIALIZED VIEW RCS_STG.MV_NEXT_HOP_iot
ORGANIZATION INDEX
AS
SELECT r2.resource_key, r1.resource_key resource_key2, r2.resource_full_path_name, device_name, device_model,
service_telephone_number, service_package_name, telephone_number.telephone_number_key, c1.created_on
FROM network_resource PARTITION (network_resource_subinterface) r1,
connection c1,
network_resource PARTITION (network_resource_subinterface) r2,
device d1,
tn_network_resource,
telephone_number
WHERE r1.resource_key = c1.resource1_key
AND c1.resource2_key = r2.resource_key
AND d1.device_key = r2.device_key
AND tn_network_resource.resource_key(+) = r2.resource_key
AND telephone_number.telephone_number_key(+) = tn_network_resource.telephone_number_key
UNION ALL
SELECT r1.resource_key, r2.resource_key resource_key2, r1.resource_full_path_name, device_name, device_model,
service_telephone_number, service_package_name, telephone_number.telephone_number_key, c1.created_on
FROM network_resource PARTITION (network_resource_subinterface) r1,
connection c1,
network_resource PARTITION (network_resource_subinterface) r2,
device d1,
tn_network_resource,
telephone_number
WHERE r1.resource_key = c1.resource1_key
AND c1.resource2_key = r2.resource_key
AND d1.device_key = r1.device_key
AND tn_network_resource.resource_key(+) = r1.resource_key
AND telephone_number.telephone_number_key(+) = tn_network_resource.telephone_number_key
I get an error message ORA-25175: no PRIMARY KEY constraint found
I would like to specify resource_key, resource_key2, and service_telephone_number as my primary key?Ah,
I get it now. This is what I did.
CREATE TABLE mv_next_hop_iot
resource_key NUMBER (38),
resource_key2 NUMBER (38),
resource_full_path_name VARCHAR2 (256 BYTE),
device_name VARCHAR2 (64 BYTE),
device_model VARCHAR2 (64 BYTE),
service_telephone_number VARCHAR2 (20 BYTE),
service_package_name VARCHAR2 (64 BYTE),
telephone_number_key NUMBER (38),
created_on DATE,
CONSTRAINT mv_next_hop_pk PRIMARY KEY (resource_key, resource_key2, service_telephone_number)
ORGANIZATION INDEX
CREATE MATERIALIZED VIEW rcs_stg.mv_next_hop_iot
ON PREBUILT TABLE
AS
/* Formatted on 2010/06/10 1:39:04 PM (QP5 v5.149.1003.31008) */
SELECT resource_key, resource_key2, resource_full_path_name, device_name, device_model, service_telephone_number,
service_package_name, telephone_number_key, created_on
FROM (SELECT r2.resource_key, r1.resource_key resource_key2, r2.resource_full_path_name, device_name, device_model,
NVL (service_telephone_number, ' ') AS service_telephone_number, service_package_name,
telephone_number.telephone_number_key, c1.created_on
FROM network_resource PARTITION (network_resource_subinterface) r1,
connection c1,
network_resource PARTITION (network_resource_subinterface) r2,
device d1,
tn_network_resource,
telephone_number
WHERE r1.resource_key = c1.resource1_key
AND c1.resource2_key = r2.resource_key
AND d1.device_key = r2.device_key
AND tn_network_resource.resource_key(+) = r2.resource_key
AND telephone_number.telephone_number_key(+) = tn_network_resource.telephone_number_key
UNION ALL
SELECT r1.resource_key, r2.resource_key resource_key2, r1.resource_full_path_name, device_name, device_model,
NVL (service_telephone_number, ' ') AS service_telephone_number, service_package_name,
telephone_number.telephone_number_key, c1.created_on
FROM network_resource PARTITION (network_resource_subinterface) r1,
connection c1,
network_resource PARTITION (network_resource_subinterface) r2,
device d1,
tn_network_resource,
telephone_number
WHERE r1.resource_key = c1.resource1_key
AND c1.resource2_key = r2.resource_key
AND d1.device_key = r1.device_key
AND tn_network_resource.resource_key(+) = r1.resource_key
AND telephone_number.telephone_number_key(+) = tn_network_resource.telephone_number_key)
Many thanks. the PREBUILT TABLE is the secret. -
Hello,
I have a Win7 PC. I want to block all incoming connections except 3 or 4 IPs. How can i do this?
I created a new rule to block all connections using this steps:
Inbound rules > New Rule > Custom > All Programs > All Protocols / Ports > All Local/Remote IPs > Block the connectiion > All profiles > Then i gave a name
This rule works fine and blocks all incoming connections.
Then i want to create a new rule to allow specific IPs using this steps:
Inbound rules > New Rule > Custom > All Programs > All Protocols / Ports > Remote IPs: 192.168.10.5, 192.168.10.10 > Allow the connection > All profiles > Then i gave a name
But 192.168.10.5 and 192.168.10.10 couldn't reach W7 machine.
(If rules are disabled or FW is off; both IPs could reach W7 machine)
ThanksHi,
How did you check these two IP address? Through remote access? According to your description, it should only allow remote IP could access this computer. Please also allow local IP for test.
Roger Lu
TechNet Community Support -
How to create a validation rule in SAP BODS Job
Hi Experts
I have created a BODS Job and in that job i have to create a validation rule as if the cust_id is null the loading must stop.
I dont have idea where i have to define this validation rule in the Job and how to stop the load job if the validation rule file.
My Job was defined like below image
Please guide me where i have to define the validation rule and how to stop the load job.
Thanks in advance
PrasannaKumarHi samatha b
Thanks for your response. I have done as you said and now i can rise the exception.
I have another requirement as per the validation transformation the data will load into Pass table and Fail table after job execution. If any data entered into fail table i have delete the data loaded into Pass table.
Here i am facing problem as my target tables are MySQL tables and when i am writing scripts i wrote the script as
sql('database','delete from <tablename>');
but as it is an SQL Query execution it is rising exception for the query.
How can i delete the data loaded into MySQL Target table using scripts.
Please guide me for this error also
Thanks in Advance
PrasannaKumar -
How to create SSWA plsql function in Oracle Apps of HTML call .html
Hello Team,
I am working on Oracle Apps 11i (11.5.10.2)
I want to know , what is the process to create a , "SSWA plsql function" in Oracle Apps of type "HTML" and html call tab.
How to create that Function and how to attach the PL/SQL code to these functions.
How it works.
Please help me to understand this concept from basics.
Kind RegardsHi;
Please review:
how to setup a forms function in R12 to launch an URL?
http://www.trutek.com/serendipity/index.php?/archives/15-An-Example-of-How-to-Create-Custom-Functions,-Menus,-and-Responsibilities.html
Regard
Helios
Maybe you are looking for
-
How to remove Batch Management Check in the Material
I have one requirement to remove batch management check in the materials which should not be deleted. I created a testing material with batch management check on and put in material through 561, then did good issue for scrapping to remove the stock o
-
Purchase Order: Confirmation of cancellation
Hello, I'm facing the following problem: if a purchase order, or a few items are cancelled the business wants to get a confirmation of the supplier that he received the cancellation. How can this be configured? Kind regards, Renaat
-
Need Help, i have an Ipad2 after 6.3.1 update, i have no cameras, or e-mail, I already reset, multiple times, but no improvment, can anyone help?
-
Build Q - minimizing size of applet
hello, I'm writing a charting applet with JFreeChart, which is awesome but large. I've tried both including jfreechart.jar in the run-time libraries, and pulling out the .class files & putting them in my source folder, in the hope that Creator would
-
Broken Folder Error On Mac Mini
Hi, I recently brought Mini Mac of i5 2.3ghz 8GB 500GB hdd, when i have got the system it's was perfectly alright and today when i have tried to install windows 7 on my mini mac by divided 500 into two partition while installing i did not found Bootc