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
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?
ThanksHi,
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/ -
I need help with Creating Key Pairs
Hello,
I need help with Creating Key Pairs, I generate key pais with aba provider, but the keys generated are not base 64.
the class is :
import java.io.*;
import java.math.BigInteger;
import java.security.*;
import java.security.spec.*;
import java.security.interfaces.*;
import javax.crypto.*;
import javax.crypto.spec.*;
import au.net.aba.crypto.provider.ABAProvider;
class CreateKeyPairs {
private static KeyPair keyPair;
private static KeyPairGenerator pairGenerator;
private static PrivateKey privateKey;
private static PublicKey publicKey;
public static void main(String[] args) throws Exception {
if (args.length != 2) {
System.out.println("Usage: java CreateKeyParis public_key_file_name privete_key_file_name");
return;
createKeys();
saveKey(args[0],publicKey);
saveKey(args[1],privateKey);
private static void createKeys() throws Exception {
Security.addProvider(new ABAProvider());
pairGenerator = KeyPairGenerator.getInstance("RSA","ABA");
pairGenerator.initialize(1024, new SecureRandom());
keyPair = pairGenerator.generateKeyPair();
privateKey = keyPair.getPrivate();
publicKey = keyPair.getPublic();
private synchronized static void saveKey(String filename,PrivateKey key) throws Exception {
ObjectOutputStream out= new ObjectOutputStream(new FileOutputStream(filename));
out.writeObject(key);
out.close();
private synchronized static void saveKey(String filename,PublicKey key) throws Exception {
ObjectOutputStream out= new ObjectOutputStream( new FileOutputStream(filename));
out.writeObject(key);
out.close();
the public key is:
�� sr com.sun.rsajca.JSA_RSAPublicKeyrC��� xr com.sun.rsajca.JS_PublicKey~5< ~��% L thePublicKeyt Lcom/sun/rsasign/p;xpsr com.sun.rsasign.anm����9�[ [ at [B[ bq ~ xr com.sun.rsasign.p��(!g�� L at Ljava/lang/String;[ bt [Ljava/lang/String;xr com.sun.rsasign.c�"dyU�| xpt Javaur [Ljava.lang.String;��V��{G xp q ~ ur [B���T� xp ��ccR}o���[!#I����lo������
����^"`8�|���Z>������&
d ����"B��
^5���a����jw9�����D���D�)�*3/h��7�|��I�d�$�4f�8_�|���yuq ~
How i can generated the key pairs in base 64 or binary????
Thanxs for help me
Luis Navarro Nu�ez
Santiago.
Chile.
South America.I don't use ABA but BouncyCastle
this could help you :
try
java.security.Security.addProvider(new org.bouncycastle.jce.provider.BouncyCastleProvider());
java.security.KeyPairGenerator kg = java.security.KeyPairGenerator.getInstance("RSA","BC");
java.security.KeyPair kp = kg.generateKeyPair();
java.security.Key pub = kp.getPublic();
java.security.Key pri = kp.getPrivate();
System.out.println("pub: " + pub);
System.out.println("pri: " + pri);
byte[] pub_e = pub.getEncoded();
byte[] pri_e = pri.getEncoded();
java.io.PrintWriter o;
java.io.DataInputStream i;
java.io.File f;
o = new java.io.PrintWriter(new java.io.FileOutputStream("d:/pub64"));
o.println(new sun.misc.BASE64Encoder().encode(pub_e));
o.close();
o = new java.io.PrintWriter(new java.io.FileOutputStream("d:/pri64"));
o.println(new sun.misc.BASE64Encoder().encode(pri_e));
o.close();
java.io.BufferedReader br = new java.io.BufferedReader(new java.io.FileReader("d:/pub64"));
StringBuffer keyBase64 = new StringBuffer();
String line = br.readLine ();
while(line != null)
keyBase64.append (line);
line = br.readLine ();
byte [] pubBytes = new sun.misc.BASE64Decoder().decodeBuffer(keyBase64.toString ());
br = new java.io.BufferedReader(new java.io.FileReader("d:/pri64"));
keyBase64 = new StringBuffer();
line = br.readLine ();
while(line != null)
keyBase64.append (line);
line = br.readLine ();
byte [] priBytes = new sun.misc.BASE64Decoder().decodeBuffer(keyBase64.toString ());
java.security.KeyFactory kf = java.security.KeyFactory.getInstance("RSA","BC");
java.security.Key pubKey = kf.generatePublic(new java.security.spec.X509EncodedKeySpec(pubBytes));
System.out.println("pub: " + pubKey);
java.security.Key priKey = kf.generatePrivate(new java.security.spec.PKCS8EncodedKeySpec(priBytes));
System.out.println("pri: " + priKey);
catch(Exception e)
e.printStackTrace ();
} -
Help with creating a form, I want to add a check box to enable me to unlock certain fields and deselect the block again
Look to the right under "More Like This". Your issue has been discussed many many times. The error you are seeing is because you do not have enough free "contiguous" space on your hard drive. Read the other threads that address this issue to find how to solve the issue.
Or, put "The disk cannot be partitioned because some files cannot be moved" into the search box at the upper right of this page. -
Hey i need help with creating a quiz with scoring and all.
I need a helping hand so if you can get me started that
would help a lot.
Use the Question class to define a Quiz class. A
quiz can be composed of up to 25 questions. Define the add method
of the Quiz class to add a question to a quiz. Define the giveQuiz
method of the Quiz class to present each question in turn to the user,
accept an answer for each one, and keep track of the results. Define
a class called QuizTime with a main method that populates a quiz,
presents it, and prints the final results.
// Question.java Author: Lewis/Loftus/Cocking
// Represents a question (and its answer).
public class Question implements Complexity
private String question, answer;
private int complexityLevel;
// Sets up the question with a default complexity.
public Question (String query, String result)
question = query;
answer = result;
complexityLevel = 1;
// Sets the complexity level for this question.
public void setComplexity (int level)
complexityLevel = level;
// Returns the complexity level for this question.
public int getComplexity()
return complexityLevel;
// Returns the question.
public String getQuestion()
return question;
// Returns the answer to this question.
public String getAnswer()
return answer;
// Returns true if the candidate answer matches the answer.
public boolean answerCorrect (String candidateAnswer)
return answer.equals(candidateAnswer);
// Returns this question (and its answer) as a string.
public String toString()
return question + "\n" + answer;
}Do you know why this lazy fart-ass is back? Because when he posted his homework last week, some sorry-assed idiot went and did it for him.
http://forum.java.sun.com/thread.jspa?threadID=5244564&messageID=10008358#10008358
He didn't even thank the poster.
It's the same problem over and over again. You feed the bears and it only teaches them to come back for handouts.
My polite suggestion to the original poster: please do your own fucking homework. -
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,
PaulHi 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 -
Need help with creating a brush
Hi guys,
I wanted to ask for help with creating a brush (even a link to a tutorial will be goon enough ).
I got this sample:
I've created a brush from it, and i'm trying to get this kind of result:
but it's only duplicates it and gives me this result:
Can someone help me please understand what i need to define in order to make the brush behave like a continues brush instead of duplicate it?
Thank you very much
shlomitwhat you need to do is make a brush that looks like the tip of a brush. photoshop has several already but you can make your own that will be better.
get a paintbrush and paint a spot kind of like what you did but dont paint a stroke. make it look kindof grungy. then make your brush from that, making sure to desaturate it and everything.
EDIT:
oh, and if you bring the fill down to like 10-20% your stroke will look better -
I need help with creating PDF with Preview...
Hello
I need help with creating PDF documetns with Preview. Just a few days ago, I was able to create PDF files composed of scanned images (notes) and everything worked perfectly fine. However, today I was having trouble with it. I scanned my notebook and saved 8 images/pages in jpeg format. I did the usual routine with Preview (select all files>print>PDF>save as PDF>then save). Well this worked a few days ago, but when I tried it today, I was able to save it, but the after opening the PDF file that I have saved, only the first page was there. The other pages weren't included. I really don't see anything wrong with what I'm doing. I really need help. Any help would be greatly appreciated.I can't find it. I went into advanced and then document processing but no batch sequence is there and everything is grayed out.
EDIT: I realized that you cant do batch sequences in standard. Any other ideas? -
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/ -
I need help with creating some formulas
I'm not sure if anyone around here can help me, but I'm trying to create a Numbers document and need some help with creating a formula/function.
I have a column of amounts and I would like to create a formula which deducts a percentage (11.9%) and puts the result in another column.
If anyone can help me, it would be greatly appreciated.Here is an example that shows one way to do this:
The original data is in column A. In column B we will store formulas to adjust the amounts:
1) select the cell where you want to formula (in this case cell B2)
2) Type the "=" (equal sign):
3) click cell A2:
4) now type the rest of the formula which is: "*(100-11.9)/100" that is asterisk, then open parenthesis, 100 minus eleven point nine close parenthesis forward slash one hundred
The Asterisk is the multiply operator (times) and the forward slash is the division operator (divide)
now hit return. select cell B2 and hover the cursor over the bottom edge of the cell:
drag the little yellow dot down to "fill" the formula down as needed. -
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:49Hi,
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 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,
MacPlease post business rules questions on the SOA Suite forum:
SOA Suite -
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; -
Help with creating color schemes in Illustrator file
I'm repeating a particular background image on each page of a calendar and would like to change its colors on each page. There are 2 gradients in the image which use a total of four different colors. I'm not at all skilled in color theory and was wondering if anyone can please tell me if there's an easy way to come up with harmonious color combinations that I can apply to the original Illustrator file? My shortcut solution would be to convert the color to grayscale and apply a color overlay, but the image just looks flat when I do that. I would prefer to adjust the gradients individually but just don't know how to find compatible colors.
Here's a preview of the image followed by a DropBox link to the Illustrator file.
https://dl.dropboxusercontent.com/u/52882455/background1.ai
Thanks!Couple ideas for you:
First, try using the color wheel on color.adobe.com. Select the middle color and add your hex code to the color. The app will automatically show you analogous colors. See an example here. You can also experiment with the other color rules in the Color Rule menu (just click on one of them).
Second, take a look at themes created by others. If you are looking generally for colors that work well with yellow, you can browse the most popular themes and spot some which use yellow.
I hope that helps. -
Help with expression for business days
Dear Frends,
I need help with business days expression.
The report is for call center operation. Whenever a user calls in and opens an issue it is recorded as a case. And each case is associated with create time and valueofone(which is always one).
My report contains 'case type' as the first column, and rest of the columns are age buckets(col1: 0-5 days, col2: 6-10 days). By saying agebuckets I mean number of days between create date and current date. All the cases that are less than 5 days older will go to first column and similarly all the cases that are 6-10 days old will go to the second column and so on.
In a normal case I use the following case statement: case when daysbetween(current_date, create_date) between x1 and x2 then count(valueofone) else null end
But I need to calculate only the business days as age, so I need an expression look something like this: case when (_days_between(current_date, create_date)-no of holidays) between x1 and x2 then count(valueofone) else null end
Note: My calendar table has a column 'Business Day' which assigns 'Y' to Business day and 'N' to holiday.
Any help with this expression or any suitable way.
Regards
ChillaIf you have a calendar table, wouldn't your function be just
CREATE FUNCTION business_days_between( p_day1 IN DATE, p_day2 IN DATE )
RETURN NUMBER
IS
l_cnt NUMBER;
BEGIN
SELECT COUNT(*)
INTO l_cnt
FROM calendar_table ct
WHERE ct.business_day = 'Y'
AND ct.<<date column>> >= trunc(p_day1)
AND ct.<<date column>> < trunc(p_day2);
RETURN l_cnt;
END;Basially, count the number of rows in your calendar table that are business days between the two dates.
Justin
Maybe you are looking for
-
Poor query performance in WebI on top of BEx queries
Hello, We are using Web Inteliigence i BO 3.1 (SP0) to report on BEx queries (BW 7.0). We experience however that reporting is much quicker for the same set of data when using BEx Analyzer than when using WebI. In BEx it is acceptable, but in WebI it
-
LabVIEW 2013 Web Service works on debug server but not on application server
I have made a LabVIEW web service, that needs to get 2 inputs from the user through html request, and one input from a running VI. For this communication I have used a notifier to transfer data between the VI and the webservice method. This works per
-
JSF 1.0 and Portlet API
Does JSF and Portlet API works together? Can we use JSF 1.0 for portlet JSP development?
-
Can we override X-UA-Compatible metatag generated by ADF 11g?
I have a page with google maps embedded in it. The page when run displays the map fine in Firefox and Safari but not in IE (7 or 8). In IE 8, if I change the document mode to IE8 then it displays fine. I notice that when I run the page in IE, ADF Fac
-
can anyone help on the following please. When I have been away from the office for a few days and check for emails it only supplies the most recent 100 emails and the ones before that are never received. thanks