Problems with Association Rules
Hi all,
I am trying to use ODMr to run association rules and am getting the following error message:
Server task state: error
Server task detail:
ORA-40101: Data Mining System Error ORA-40101: Data Mining System Error ORA-40101: Data Mining System Error ODM_ASSOCIATION_MODEL-BUILD--20010
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 105
ORA-06512: at "DMSYS.ODM_ASSOCIATION_RULE_MODEL", line 144
ORA-06512: at "DMSYS.ODM_ASSOCIATION_RULE_MODEL", line 1396
ORA-00902: invalid datatype
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 105
ORA-06512: at "DMSYS.ODM_ASSOCIATION_RULE_MODEL", line 144
ORA-06512: at "DMSYS.ODM_ASSOCIATION_RULE_MODEL", line 1396
ORA-06512: at "DMSYS.DBMS_DATA_MINING", line 305
ORA-06512: at "DMSYS.DBMS_JDM_INTERNAL", line 157
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 86
ORA-06512: at "DMSYS.DBMS_JDM_INTERNAL", line 179
ORA-06512: at line 1
This error is generated on the sample data as used in the ORACLE 10G Release 2 Data Mining Tutorial, and on other datasets that I tried.
My sense is that the algorithm is expecting data in the datatype of DM_NESTED_NUMERICALS, even though the documentation asks for transactional data. When I converted to nested columns, the prog errored out again as it was expecting a number rather than nested column.??
Hi Carolyn,
I reviewed the tutorial and tested out the example for Association Rules. The example uses SH.SALES and SH.PRODUCTS.
It worked fine.
ODMr converts the "transactional" data, in the case of Association Rules, into DM_NESTED_NUMERICALS.
When ODM documentation refers to transactional data, it implies the use of nested columns. This can be confusing given that older versions of ODM actually supported a "transactional format", which is now supported only through nested columns.
I copied the following view definition that was passed in to ODM to build the Association Rules model (based on the tutorial noted above). Take a look at them to get a better understanding on what ODMr is doing to prepare the data.
If you can give us a specific example including the tutorial table you used and the settings you specified in the Association Rules Wizard, I can review that to see what the problem might be.
Thanks, Mark
SELECT caseTable."DMR$CASE_ID", txnTable1."PROD_ID" FROM "DMUSER"."DM4J$VSALES657013432" caseTable, (SELECT "DMR$CASE_ID", CAST(COLLECT(DM_Nested_Numerical("NAME", "VALUE")) AS DM_Nested_Numericals) "PROD_ID" FROM "DMUSER"."DM4J$SALES423975876" GROUP BY "DMR$CASE_ID") txnTable1 WHERE caseTable."DMR$CASE_ID" = txnTable1."DMR$CASE_ID"
The view makes references to other tables/views defined below:
DM4J$VSALES657013432 is shown below:
SELECT distinct "DMR$CASE_ID" FROM
(SELECT "CUST_ID","TIME_ID", DENSE_RANK() OVER (ORDER BY "CUST_ID","TIME_ID") DMR$CASE_ID FROM "SH"."SALES")
ORDER BY "DMR$CASE_ID"
DM4J$SALES423975876 is shown below:
SELECT DMR$CASE_ID, CAST("PROD_ID" AS VARCHAR2(30)) as NAME, 1 as VALUE
FROM
(SELECT "PROD_ID", "CUST_ID","TIME_ID", DENSE_RANK() OVER (ORDER BY "CUST_ID","TIME_ID") DMR$CASE_ID FROM "SH"."SALES")
ORDER BY DMR$CASE_ID
Similar Messages
-
Business rule problem with association
Hi,
i am facing an issue with business rules am not able to associate with planning outline in AAS console
RamHi Ram,
Navigate to
1. C:\Hyperion\AnalyticAdministrationServices\storage\easusers\users.xml
2. Edit users.xml file
3. Update admin to "true" and save file.
4. For example,
EASUsers><EASUser directory="admin" email="[[email protected]]" external="true" fullName="EAS Administrator" id="1" isMigrated="false" password="A627FC9A6DEA834C1FA7772..........." roles="roles" supervisor="true" username="admin"/>
This should help you
5. After this, you restart RMI, AAS and planning services.
6. Now, it should work
Sandeep Reddy Enti
HCC
http://hyperionconsultancy.com/ -
Hi all,
I have a problem with a business rule (BR) deployed as a standalone Descision service.
the BR consists on a simple decision table wich compare an input (bigInteger) with 50. It returns two facts (as output).
the two conditions are confugured (i.e. <50 and >=50).
the Decision service (stateless) is called in a simple BPEL process. in some cases the the assign activity in the bpel process rise this exception :
<bpelFault><faultType>0</faultType><selectionFailure xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/"><part name="summary"><summary>empty variable/expression result. The XPath variable or expression /ns5:callFunctionStatelessDecision/ns5:resultList/ns6:processResponse/ns6:CodeRetour is empty at line 440. An attempt to read or copy data referenced or computed by the XPath expression either had invalid data, according to the XML schema, or did not contain certain optional data. Ensure that the variable or expression result named in the error message is not empty. Enable XML schema validation of related variables to ensure the run-time data is valid. </summary></part></selectionFailure></bpelFault>
it seems like an output of the business rule used by the assign after the invoke activity is empty.
But in the input payload for the decision service all elements are not empty. I can't inderstand how the OBR return an empty variable?
Any help please?In the taskflow you should be capable to trace step by step what happens in the execution. Does this give any clue, e.g. why sometimes the assert does not work?
cu
Andreas -
Problem with Business Rules in OBPM 10.3.1 Enterprise for WebLogic
We're having a problem with our Business Rules. We've updated two of our business rules (that are used by business rule transitions) in Studio; however, when we publish the updated process, the business rules are not updated. We cannot find anywhere in the Process Admin where to administer the rules to make sure they're overwritten.
I've double checked, and the updated rule code is in the .project.xpdl, but for whatever reason, the rules are not being updated during the deployment. I'm sure that we've done this many times in the past, but for some reason, now it is not working.
We're tried variations of the different versioning when we publish, and we've also tried to unpublish all of the older versions of our process, but it does not change the business rules. We can try to unpublish and undeploy, but it seems like we would lose all old instances of that process that are still running if we did that.
Has anyone ever had this issue, or know if there is a way to effect the business rules via the process admin?I see what you're saying, but here's why it works the way you're observing it.
Once deployed, the 10g business rules are edited by a business user (the owner of the rule). Changes in Studio that a developer makes to a business rule don't override the changes that the business user made.
To let the business owner edit the rule, add a Global Interactive activity and change its property setting to edit the business rule. Put this activity in the role for the business owner (the person you want to edit the rule).
Dan -
Problems with Associations between entities (jdev903production)
Hi,
every now and then, I feel a strong urge to pick up my pc and throw it out the window, when I'm working in jdeveloper.
But usually just in time I realise the power that bc4j still has, and the fact that people walking under my window might not be too pleased with my pc landing on their head convinces me to just count to 10, and just retry what I was trying to do.
I will explain the problems below:
1. Wrongly numbered and magically renumbered members
I have an entity with about 13 attributes. The underlying schema object is a view (simple view
on a table, nothing fancy).
I have a few associations between this entity and several other entities, one of which is an association with itself (parent/child relation). Some of these associations have accessors, and the parent/child association has accessors both ways (getParent() and getChildren()).
When I compile, I get an error like this:
Error(399,12): duplicate case label.
This problem occurs because near the top of the file, the attributes have been defined as follows:
protected static final int ASSET = 0;
protected static final int PARENT = 1;
protected static final int PRICELINES = 2;
protected static final int CHILDREN = 3;
protected static final int ID = 0;
protected static final int CODE = 1;
protected static final int ENDDATE = 2;
protected static final int STARTDATE = 3;
protected static final int TYPE = 4;
The first 4 are from the association accessors, the rest (starting with ID) are attributes. Why do these get the same numbers?
I edited the first 4 lines and gave them increasing numbers that didn't conflict with any of the attributes. But each time I edit one of the associations, all of these lines get renumbered again and start counting at 0! (even if I move the lines down so they are in the correct order).
So even if I just edit the parent/child association, even the PRICELINES (which is an accessor NOT from the association I'm editing) thing gets renumbered wrongly.
Why?!
2. Internal XML parser error
Every now and then, after playing around with associations and viewlinks, I suddenly get an error message like this:
"Expected Name instead of '<'."
from the XML parser, when I try to open a ViewObject from the navigator. The XML files look fine, but even a restart of jdeveloper doesn't help. In this case I usually delete my files, get the last known working versions from CVS and redo what I did before it went wrong. Because of the randomness (though quite frequent) of this problem, I can't provide you with good 'steps to reproduce' yet, but do you have any clue as to what might cause this? It's quite a nuisance.
Greetings,
Ivo[list]
[*]Wrongly numbered and magically renumbered members
We just found and fixed a problem for 9.0.4 yesterday where in some cases
the constants for the accessors got inadvertently renumbered.
I hope it's the same issue you're hitting, but I cannot
be 100% sure unless you could send me a testcase project
for me to try and reproduce with 9.0.3 and with the
fixed 9.0.4 release.
[*]Internal XML parser error
An error like "Expected Name instead of '<'." can mean some kind of corruption in the XML file. When you say they "look" fine, are you able to verify by trying to parse them externally to make sure it's not some subtle error your eye is not seeing?
If you can give me a testcase project and tell me what steps to try and repeat, I can have our QA team try and exercise your steps to hopefully reproduce the problem.
[*]View Accessors are not being created
You mentioned a source control system in the mix. Is there any possibility that the YourViewImpl.java file is read-only on the file system? This would cause BC4J to not be able to write the accessor into the file.
[*]Magically disappearing ViewLink source/destination attributes
Obviously, this is not intentional. I'll ask the developer to see if
there's anything obvious that could be the cause of this
"short-circuit" of correct functionality.
[*]Dependencies not checked correctly when using entitylevel inheritance
"(no inheritance is possible on the view level)"
The above statement confused me. We do support View objects extending
other view objects, however I was able to reproduce the problem
and I filed Bug#2678090 to get it fixed.
[*]EVERY question/problem on the forum needs to be analyzed by a team member with 1 exclusive question: [How] Could have better documentation / help file elimenated this problem?
Excellent point. And we are doing this!
[*]Don't get me wrong; if this weren't a super product; I would not be here.
Neither would we. ;->
Let's identify every remaining technical issue for you, ideally get a testcase to reproduce the problem, and then we'll fix it.
[*]And truly; thank you for taking this time with us. Not every company affords so many resources with their customers; let alone free downloads.
We believe it's a great 21st-century way to be in direct contact with our customers. The feedback we get here is awesome for the product!
[*](Hey! I Want to pay. Help me finish and sell my app!)
We want you help you finish faster, too. Keep the questions and issues coming and we're doing our best to address them.
[list] -
Good afternoon, I have a problem with the conversion rules, when I transfer the employee does not take into account any of the scrambling rules, those made by me and with the rules that I copied by CNV_TDMS_HCM_SCRAM transaction. I understand that this conversion is performed in the task to prepare data transfer. Someone can give me an idea that I may fail to do. Somebody has documentation of Scrambling rules? Thanks in advance.
Manuel CamposThank you, when I execute the program wherever Phase or activity ID that I select, for example PC001_RULES_MAINTAIN
It shows me this:
Rules for packege 90042
Rule Name Status Active
CNV_MBT_BOP red check
INITIAL red check
MOVE red check
01_RVNUM_CK_DGT red check
99_HR_PEVAL2 red check
99_PD_SEQ_NR red check
ADDR_SCRAM1 green check
SAMP_SCR_DOM red check
SAMP_SCR_FIELD green check
In your package appear something like this?
I used transaction CNV_TDMS_HCM_SCRAM to prepare and maintain customizing for
scrambling at project or subproject level. And I made this:
To use the SAP template, choose Copy from other Project. You can now copy a scramble
definition. To copy the SAP template, input the following:
Pack ID: TDHSC
Project: *
Subproject: *
Process Type: R
Select the "Get from client 000" checkbox .
You can use a description prefix, for example SAP_, to easily identify elements. For
example, if you use this prefix and the name of a scramble group in the template is
HCM_DE_01, then after the copy the name is SAP_HCM_DE_01. This is useful for copying
in add-on mode into an existing project, because it helps you to determine what was new
from this copy.
Then I tried to use this scrambling rules copied, but They doesn´t work.
Thanks a lot for your help -
Problem with Settelment Rule for iw32
Hi,
Good day guys
Iam getting the problem while creating the settelment rule creation. Ive got a problem with " wa_srules-SOURCE = '1' ".
If i wont fill this field, settelment rule is going to be created. but i need to fill this field as per requirement.
Ive got a error message "Enter an Existing source assingment for souce stracutre CS.
Plz any one guide me, how to overcome this prob
DATA: srules TYPE srules_ext OCCURS 0,
wa_srules TYPE srules_ext,
lv_mandt type SYMANDT.
DATA IT_OBJNR TYPE STANDARD TABLE OF IONRB WITH HEADER LINE.
DATA: ls_copadata type BAPI_COPA_DATA occurs 0.
DATA: ls_cobrb type standard table of cobrb with header line.
IT_OBJNR-OBJNR = CAUFVD_IMP-OBJNR.
APPEND IT_OBJNR.
break-point.
CALL FUNCTION 'K_SRULE_PRE_READ'
EXPORTING
I_PFLEGE = ' '
TABLES
T_SENDER_OBJNR = IT_OBJNR
* T_COBRA =
EXCEPTIONS
WRONG_PARAMETERS = 1
OTHERS = 2
CALL FUNCTION 'K_SETTLEMENT_RULE_EXISTENCE'
EXPORTING
objnr = caufvd_imp-objnr
* FLG_LOCAL = ' '
* IMPORTING
* E_COBRA =
EXCEPTIONS
RULE_NOT_FOUND = 1
OTHERS = 2
CALL FUNCTION 'K_SRULE_CREATE'
EXPORTING
i_objnr = caufvd_imp-objnr
* I_CHECK_ONLY_LOCAL = ' '
* IMPORTING
* E_COBRA =
EXCEPTIONS
rule_already_exists = 1
OTHERS = 2.
wa_srules-SOURCE = '1'.
wa_srules-settl_type = 'FUL'.
wa_srules-percentage = '100'.
*wa_srules-amount = ''.
wa_srules-COMP_CODE = caufvd_imp-bukrs.
*wa_srules-PROFIT_CTR = caufvd_imp-PRCTR.
*wa_srules-costcenter = caufvd_imp-kostl.
wa_srules-costcenter = '10-60'.
APPEND wa_srules TO srules.
wa_srules-SOURCE = '1'.
wa_srules-settl_type = 'PER'.
wa_srules-percentage = '100'.
*wa_srules-amount = ''.
wa_srules-COMP_CODE = caufvd_imp-bukrs.
*wa_srules-PROFIT_CTR = caufvd_imp-PRCTR.
*wa_srules-costcenter = caufvd_imp-kostl.
wa_srules-costcenter = '10-60'.
APPEND wa_srules TO srules.
CALL FUNCTION 'K_ORDER_SRULE_ADD'
EXPORTING
object_no = caufvd_imp-objnr
* IMPORTING
* FLG_RULE_INSERTED =
tables
srules = srules
IF sy-subrc = 0.
commit work.
Endif
Regards
Edited by: balaji kiran on Mar 26, 2010 10:18 AMHello Vitaliy,
Nice to "see" you here
I did try remodelling and it works fine here. A constant value rule really gets a constant value.
The user exit option also works fine here. Here's an example of a very simple user exit for a KF:
method IF_RSCNV_EXIT~EXIT.
FIELD-SYMBOLS: <l_s_old> TYPE ANY,
<l_fillfield> TYPE ANY,
<l_newfield> TYPE ANY,
<fs_kfsource> type any.
* Assign the references to field symbols
ASSIGN c_r_newfield->* TO <l_newfield>.
ASSIGN i_r_old->* TO <l_s_old>.
* We will use the value of the 0AMOUNT KF. The value of the new KF is 0AMOUNT + 5.
ASSIGN COMPONENT 'AMOUNT' OF STRUCTURE <l_s_old> TO <fs_kfsource>.
<l_newfield> = <fs_kfsource> + 5.
endmethod.
For a KF, you can check the fields of the FACT Table (/BIx/Fzzzz) to know the field names for your source KFs.
Hope this helps. -
I'm trying to build a simple prototype of our application using JDeveloper (9.0.3.10.35). I've started by building a set of entities to represent our core business. I'm trying to use the automagic BC4J application wizards to create a simplistic prototype.
I've gone through this process a couple of times with increasing complexity. However in the latest iteration, I've run into a problem. For one of my entity objects, any associations I create for it behave strangely. Anytime I add them to a UML diagram everything seems fine. I can manipulate everything fine. Save the diagram. Close it. Reopen it. Everything is fine. I exit JDev and restart it. Whenever I open a UML diagram with one of these associations, I get an error message and a dialog asking me to find a *.bas file.
After some nosing around in the XML, I discovered that these associations are missing a section in their name.xml file in the src tree.
The basic structure of my other association files is below. However, these problematic ones lack the <data> sections. Does anyone know where/how this <data> section is generated?
<?xml version="1.0" encoding='windows-1252'?>
<!DOCTYPE Association SYSTEM "jbo_03_01.dtd">
<Association
Name="Blah" >
<Data[i]Long postings are being truncated to ~1 kB at this time.<?xml version="1.0" encoding='windows-1252'?>
<!DOCTYPE Association SYSTEM "jbo_03_01.dtd">
<Association
Name="Blah" >
<Data>
</Data>
<DesignTime>
</DesignTime>
<AssociationEnd
<Data>
</Data>
<AttrArray Name="Attributes">
</AttrArray>
<DesignTime>
</DesignTime>
</AssociationEnd>
<AssociationEnd
<Data>
</Data>
<AttrArray Name="Attributes">
</AttrArray>
<DesignTime>
</DesignTime>
</AssociationEnd>
</Association> -
SOS Problem with navigation rules
Hello,
I have been stuck for some time with a navigation problem: It seems my faces DD is read but the navigations rules are not. Unfortunately it does not give me any exception. The only thing that occurs is that the home page reloads itself instead of redirecting to the second page.
Here is my DD:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN" "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
<faces-config>
<!-- ============================== Application ============================== -->
<application>
<locale-config>
<default-locale>en</default-locale>
</locale-config>
</application>
<!-- ============================== Managed Beans ============================== -->
<managed-bean>
<managed-bean-name>GuideSearchManagedBean</managed-bean-name>
<managed-bean-class>com.softwareag.test_guide.web.temp.PGSearchManagedBean</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
<!-- ============================== Navigation rules ============================== -->
<navigation-rule>
<from-view-id>/home.jsp</from-view-id>
<navigation-case>
<from-action>#{GuideSearchManagedBean.newSearchAction}</from-action>
<from-outcome>displayResults</from-outcome>
<to-view-id>/errorOccured.jsp</to-view-id>
</navigation-case>
</navigation-rule>
</faces-config>Here is my jsf:
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<f:view>
<html>
<head>
<title>home</title>
</head>
<body>
<h:form id="guide_form">
category
<h:selectOneMenu id="category" value="#{GuideSearchManagedBean.category}" required="true">
<f:selectItem itemValue="2" itemLabel="resto"/>
<f:selectItem itemValue="1" itemLabel="bar"/>
<f:selectItem itemValue="3" itemLabel="disco"/>
</h:selectOneMenu>
<br /><br />
postcode<br /><br />
<h:selectManyListbox id="postcodes" value="#{GuideSearchManagedBean.postcodes}" required="true">
<f:selectItem itemValue="75001" itemLabel="75001"/>
<f:selectItem itemValue="75002" itemLabel="75002"/>
<f:selectItem itemValue="75003" itemLabel="75003"/>
<f:selectItem itemValue="75004" itemLabel="75004"/>
<f:selectItem itemValue="75005" itemLabel="75005"/>
<f:selectItem itemValue="75006" itemLabel="75006"/>
</h:selectManyListbox>
<br /><br />
name
<h:inputText id="name" value="#{GuideSearchManagedBean.name}"/>
<br /><br />
with comments
<h:selectBooleanCheckbox id="commentsExist" value="#{GuideSearchManagedBean.commentsExist}"/>
<br /><br />
order by
<h:selectOneRadio id="sortOrderCriterion" value="#{GuideSearchManagedBean.sortOrderCriterion}" layout="pageDirection">
<f:selectItem itemValue="GRADES" itemLabel="note"/>
<f:selectItem itemValue="DB_ESTABLISHMENT_NAME" itemLabel="name"/>
<f:selectItem itemValue="DB_POSTCODE" itemLabel="postcode"/>
</h:selectOneRadio>
<br /><br />
minimum note
<h:selectOneMenu id="minimumNote" value="#{GuideSearchManagedBean.minimumNote}">
<f:selectItem itemValue="1" itemLabel="1"/>
<f:selectItem itemValue="2" itemLabel="2"/>
<f:selectItem itemValue="3" itemLabel="3"/>
<f:selectItem itemValue="4" itemLabel="4"/>
<f:selectItem itemValue="5" itemLabel="5"/>
</h:selectOneMenu>
<br /><br />
<h:commandButton id="submit" action="#{GuideSearchManagedBean.newSearchAction}" value="Submit" />
</h:form>
</body>
</html>
</f:view>Here is my Managed bean:
package com.softwareag.test_guide.web.temp;
import java.rmi.RemoteException;
import java.util.List;
import com.softwareag.test_guide.web.util.PGFactory;
* @author Julien Martin
public class PGSearchManagedBean {
private String category;
private List postcodes;
private String name;
private boolean commentsExist;
private String sortOrderCriterion;
private int minimumNote;
public String newSearchAction(){
System.out.println("----------within new search action--------------");//this line never gets printed
return "displayResults";
public String nextAction() throws RemoteException { //TODO: Remove that
PGSearch search = PGFactory.getSearchInstance();
String issue = search.next();
return issue;
public String previousAction() throws RemoteException { //TODO: Remove that
PGSearch search = PGFactory.getSearchInstance();
String issue = search.previous();
return issue;
public String getCategory() {
return category;
public boolean getCommentsExist() {
return commentsExist;
public int getMinimumNote() {
return minimumNote;
public String getName() {
return name;
public List getPostcodes() {
return postcodes;
public String getSortOrderCriterion() {
return sortOrderCriterion;
public void setCategory(String string) {
category = string;
public void setCommentsExist(boolean bool) {
commentsExist = bool;
public void setMinimumNote(int i) {
minimumNote = i;
public void setName(String string) {
name = string;
public void setPostcodes(List list) {
postcodes = list;
public void setSortOrderCriterion(String string) {
sortOrderCriterion = string;
}Can anyone help? I am really stuck. :-)
Julien Martin.Hi,
I added a messages component to your home.jsp page and saw that the page produced validation errors (often the cause for failed navigation).
The problem is that the beans property minimumNote expects an int but gets a String. When you change the the type in the bean to String it works.
You will probably want to add a converter to the uicomponent to get the correct type. I'd be happy to tell you how, but I'm just starting with jsf ;-). -
Problem with a rule in workflow
Hello, i have a workflow that use a rule for assign inbox of the users,
when i test the rule it seem to be good, because in the result i can see the right user.
In my workflow i have 4 levels of authorizations.
The first level works well, but the second not.
1) Information for agent determination for step
0000000013.
A problem occurred when determining the recipient for step 0000000013. This problem does not lead to execution being canceled.
2) Error in resolution of rule 'AC99800002' for step '0000000013'
The function module for rule 'AC99800002' initialized an exception and returned a message ("MESSAGE ... [RAISING ...]").
3) No agent found
How can i resolve this issue?
ThanksIf you use responsibilities, you should check if you have all options covered. There shouldn't be an input variable for which no outcome is defined. So take a good look at the rule again.
And as suggested you can test it with the input variables you have in the container of the workflow.
Regards,
Martin -
Hello!!!
I'm using Jboss Jbpm with JSF and I want to navigate to other page when I fill a form and I send the data that I entered. I have declare the navigation-rules but it doesn't work and I don't know why.
In my faces-config.xml I've added the navigation-rules:
<managed-bean>
<managed-bean-name>usuario</managed-bean-name>
<managed-bean-class>com.miApp.UserBean</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
<navigation-rule>
<from-view-id>/SolicitarAlta.xhtml</from-view-id>
<navigation-case>
<from-action>#{usuario.registrar}</from-action>
<from-outcome>correcto</from-outcome>
<to-view-id>/results/correcto.jsp</to-view-id>
</navigation-case>
</navigation-rule>
The UserBean has the method registrar:
public String registrar() {
if(dni==null || nombre==null || apellidos==null || ocupacion==null || mail==null || tlf==null ||
password==null)
return "campos-obligatorios";
if ((mail.trim().length() < 3) || (mail.indexOf("@") == -1))
return "mail-incorrecto";
else if(tlf.length()!=9) return "telefono-incorrecto";
else if(dni.length()!=8) {return "dni-incorrecto";}
return "correcto";
And with this line:
<h:commandButton type="submit" value="Enviar" action="#{usuario.registrar}"/> the method registrar is executed and I know that this method returns the string "correcto" but ... This doesn't redirect me to the page correcto.jsp
I thought that maybe if SolicitarAlta was an xhtml file the correcto page should be also an .xhtml file. I changed it but it doesn't work.
Any ideas? Could it be that I have to add something more in the faces-config.xml & web.xml file???
Thx!I found the solution to my problem but I don't really understand why it was not working. My problem was due to the use of command button with a render set to false. I just put them at true and all my navigation rules work!
If someone know why it was not working, I would be glad to know! -
Problem with udev rule to disable touchpad when USB mouse connects
Hi, I've been running Arch on this laptop, but I can't get this udev rule to work properly.
What I want to happen is: when I plug in my usb mouse, the laptop touchpad is disabled, and the left and right buttons are reversed (I'm left handed)
After following several tutorials, both from the arch wiki and other sites, I've come up with this udev rule:
ACTION=="add", SUBSYSTEM=="input", RUN+="/usr/local/bin/USBMouse.sh"
ACTION=="remove", SUBSYSTEM=="input", RUN+="/usr/local/bin/USBMouse.sh"
And here's the script it links to (USBMouse.sh):
#!/bin/bash
export DISPLAY=:0.0
synclient TouchPadOff=$(/usr/bin/lsusb | grep "Microsoft Corp.\
Nano Transceiver v1.0 for Bluetooth" | wc -l)
if [[ $(/usr/bin/lsusb | grep "Microsoft Corp.\
Nano Transceiver v1.0 for Bluetooth" | wc -l) == 1 ]]
then
xmodmap -e 'pointer = 3 2 1'
fi
if [[ $(/usr/bin/lsusb | grep "Microsoft Corp.\
Nano Transceiver v1.0 for Bluetooth" | wc -l) == 0 ]]
then
xmodmap -e 'pointer = 1 2 3'
fi
Running the script from a terminal returns no errors and works as expected. The problem is when I plug/unplug the mouse from the usb port, nothing happens.
I appreciate any insight you might have about how to fix this, and thank you in advanceThis has already been done. And another relevant thread.
-
Problem with academic rule in report
Hello,
I have an academic rule that uses the Module Booking Single callup point (0003) and the checking is provided by an user-exit
The problem is that the rule Works fine through the transaction PIQST00 -> Change Module booking, (dialog mode) but when the hriq_student_booking function is called from a report, the rule doesn't check.
We have another academic rules created as this one, and they work fine in both environments (dialog and through HRIQ_STUDENT_BOOKING into a report)
I debugged the report and the value returned for this rule by sy-subrc is zero, when the expected value for a negative check result is nine
Any comments about this will be of great help.
Regards,
DiegoHi Diego,
Within HRIQ_STUDENT_BOOKING we have the parameters IV_DIALOG and IV_MODE control the way the function responds when error messages are returned on a module booking (including VSR rule messages). Please check how are this parameters used in your implementation of the RFC.
I attach a brief documentation of the usage.
<b>IV_DIALOG = D</b>.- Technical errors will stop process immediately (RETURN_CODE = 4, message in EXP_OBJECT_SUBRC). With this option business errors will be collected by message handler (filtered by user customization) and displayed by VSR tool. If there is at least one remaining error message, no database update will be possible (RETURN_CODE = 4), but if user accepted displayed messages then the database update is processed.
<b>IV_DIALOG =B</b>.- Technical errors will stop process immediately (RETURN_CODE = 4, message in EXP_OBJECT_SUBRC). With this option business errors will be collected into global table GT_OBJECT_SUBRC, filtered by message handler and exported; if there is at least one remaining error message
no database update is done (RETURN_CODE = 4) if there are no errors database update is processed (RETURN_CODE = 0).
<b>IV_MODE = T</b>.- Test mode, no database update is processed, RETURN_CODE = 0 -> update would be processed without any problems RETURN_CODE = 4 -> update would not have been processed with the given module list due to errors (all messages are collected into ET_RETURN).
<b>IV_MODE = V</b>.- Database update is processed if no business errors are detected (such as VSR rules).
<b>IV_MODE = F</b>.- Database update even if business errors are detected (Overriding rules). -
0PM_DS02 - Problem with Update Rule
Hi ,
I have installed the Standard ODS 0PM_DS02 from BI content.
Problem is --> In Update Rule all Data Fields have been installed perfectly but all Key Fields with Blank ( No Assignment ) .
I would like to know what is the reason that All the KEY Fields have installed with Blank .
Though I can do the manual assignment for characteristics like Equipment / Functional location but my specific area of Concern is what to assign to time characteristcs 0CALDAY / 0CALMONTH etc.
I would appreciate your help in guiding me what to assign in Key fields of 0PM_DS02 update rule.
regards
VishalProbably you have got it resolved already. The key fields are assigned along with the data fields in the statement RESULT_TABLE[] = G_T_UPDATE_IMAGE.
G_T_UPDATE_IMAGE has the same structure as /BI0/APM_DS0200, which is nothing but the active data table of 0PM_DS02. This structure gets populated in the FM BW_MCI1_KEYFIGURE_ARRAY_GET. -
I am trying to set up a mail rule that triggers an Applescript. The Applescript will open all attachments with Preview in this case. I know the rule is being triggered because I have two actions for the rule, run the Applescript and Make a sound, and I hear the sound.
Here is the script:
using terms from application "Mail"
on perform mail action with messages theMessages
tell application "Finder" to set pathToAttachments to (path to desktop folder as string)
tell application "Mail"
repeat with theMessage in theMessages
set theText to content of theMessage
if theMessage's mail attachments is not {} then
repeat with theAttachment in theMessage's mail attachments
set theFileName to pathToAttachments & (theMessage's id as string) & space & theAttachment's name
try
save theAttachment in theFileName
on error errnum
end try
tell application "Preview" to open theFileName
tell application "Finder" to delete theFileName
end repeat
end if
end repeat
end tell
end perform mail action with messages
end using terms from
(* tell application "Mail"
set myMessages to selection
tell me to perform mail action with messages myMessages
end tell
If I comment out the stub at the bottom, and run the script, it runs perfectly all the time.
If I select the e-mail in question and trigger using *Apply Rules*, the script runs some of the time.
I have yet to get the script to trigger on newly arriving e-mails.
The rule is checked and I haven't found a +Apply Rules to Incoming Emails+ check box. I thought that happen automatically. Anyone have any ideas on what is going wrong or further ways I could debug it?Testing your script, I found that, in the few cases where it didn't work well, I could have it work properly with the following modification:
*tell application "Preview" to open theFileName*
*delay 1*
*tell application "Finder" to delete theFileName*
It should also be possible to replace *delay 1* with something better, like *repeat while … end repeat*.
Hope it can help.
Maybe you are looking for
-
Error while executing function
hiii all, hope doing welll iam getting error while executing the function and error is ORA-00932: inconsistent datatypes: expected NUMBER got AMPLEX_GRAND1.SYS_PLSQL_75185_9_1
-
Change from PC to Apple Mac help
Hi Guys, I'm looking at switching from PC and laptops to a MacBook Pro 15" with retina. I have a few questions that hopefully you can answer. 1) Can I play and burn Blurays and DVDs with an external drive? 2) Can I transfer purchased windows software
-
8.2 update issues for iphone 4
since i updated, my wifi is disconnecting, my apps are either crashing or not working, everything is slower. Is there anything that can be done to correct this? I am so frustrated.
-
HT202549 I need help with my messages app on my macbook pro.
I'm trying to send/receive messages to/from my son who recently switched from iphone to android. I have a 4s running ios 7.1.2 if that matters. When I try to send him a message through the messages app on my laptop, it says "(his number) is not reg
-
Studio 8 - ColdFusion MX7.0
Hey, On cd 2 From Studio 8 there is also the program ColdFusion MX 7.0 When I want to install CF the asked for a key, I entered my key fram studio 8 but he won't accept this key! When I select the developer I can install this without any problem. My