RE: [rules-users] Problem with DSL and 4.0.2
by DELBART Vincent
done
http://jira.jboss.com/jira/browse/JBRULES-1272
V.
open a JIRA for it.
Markus Helbig wrote:
i only know i have this problem to when using 4.0.2 ->
conclusion:
don't use it ... stay with 4.0.1
2007/10/12, vdelbart <delbart.v(a)mipih.fr>
<mailto:delbart.v@mipih.fr> :
Nobody knows what's going wrong ?
All my DSLs are wrong and in the same time my rules
too... It's very
problematic...
V.
vdelbart wrote:
Hi,
I have a problem with my DSL and the 4.0.2
version :
this sentence doesn't work in 4.0.2 (work in
4.0.1) in Eclipse Editor :
[condition][]there is at least {number}
{object}=ArrayList( size >=
{number}) from collect( {object}() )
log :
!ENTRY org.eclipse.ui 4 0 2007-10-11
14:29:29.052
!MESSAGE String index out of range: -1
!STACK 0
java.lang.StringIndexOutOfBoundsException:
String index out of range: -1
at
java.lang.String.substring(String.java:1768)
at
org.drools.lang.dsl.DefaultDSLMappingEntry.setMappingKey(DefaultDSLMappi
ngEntry.java:139)
at
org.drools.eclipse.dsl.editor.MappingEditor.okPressed(Unknown Source)
at
org.eclipse.jface.dialogs.Dialog.buttonPressed(Dialog.java:508)
at
org.eclipse.jface.dialogs.Dialog$3.widgetSelected(Dialog.java:660)
at
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90)
at
org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at
org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
at
org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348)
at
org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968)
at
org.eclipse.jface.window.Window.runEventLoop(Window.java:820)
at
org.eclipse.jface.window.Window.open(Window.java:796)
at
org.drools.eclipse.dsl.editor.DSLEditor$8.widgetSelected(Unknown
Source)
at
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90)
at
org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at
org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
at
org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348)
at
org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968)
at
org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914)
at
org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:4
19)
at
org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at
org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActiva
tor.java:78)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplicat
ion(EclipseAppLauncher.java:92)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(Eclip
seAppLauncher.java:68)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:
400)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:
177)
at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at
java.lang.reflect.Method.invoke(Method.java:585)
at
org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
at
org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at
org.eclipse.core.launcher.Main.run(Main.java:977)
at
org.eclipse.core.launcher.Main.main(Main.java:952)
If I put two blanks between {number} {object},
it's working.
[condition][]there is at least {number}
{object}=ArrayList( size >=
{number}) from collect( {object}() )
But it's not a solution.
thanks for your help,
V.
--
View this message in context:
http://www.nabble.com/Problem-with-DSL-and-4.0.2-tf4606960.html#a1317021
3
Sent from the drools - user mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
17 years, 1 month
Loading Drools jars into Oracle 9i
by Edgardo
Hi list,
I need to load the drools jar's into the Oracle 9i JVM, but I have
dependencies error.
The jar´s loaded are:
- drools-core-4.0.1.jar
- mvel14-1.2rc4rv908.jar
- drools-compiler-4.0.1.jar
I need to load any other jar for Run Drools on Oracle 9i?
Greetings
--
Edgardo Ibañez O.
17 years, 1 month
RuleNameEqualsAgendaFilter
by Manukyan, Sergey
Folks,
The RuleNameEqualsAgendaFilter doesn't fire rules when used with Rule
Flow.
Without is all rules fire fine, but I need to limit it to only one.
Is that a know issue? Or maybe I cannot use it together with Rule
Flows....?
-Sergey
**********************
** LEGAL DISCLAIMER **
**********************
This E-mail message and any attachments may contain
legally privileged, confidential or proprietary
information. If you are not the intended recipient(s),
or the employee or agent responsible for delivery of
this message to the intended recipient(s), you are
hereby notified that any dissemination, distribution
or copying of this E-mail message is strictly
prohibited. If you have received this message in
error, please immediately notify the sender and
delete this E-mail message from your computer.
17 years, 1 month
Problem with DSL and 4.0.2
by vdelbart
Hi,
I have a problem with my DSL and the 4.0.2 version :
this sentence doesn't work in 4.0.2 (work in 4.0.1) in Eclipse Editor :
[condition][]there is at least {number} {object}=ArrayList( size >=
{number}) from collect( {object}() )
log :
!ENTRY org.eclipse.ui 4 0 2007-10-11 14:29:29.052
!MESSAGE String index out of range: -1
!STACK 0
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1768)
at
org.drools.lang.dsl.DefaultDSLMappingEntry.setMappingKey(DefaultDSLMappingEntry.java:139)
at org.drools.eclipse.dsl.editor.MappingEditor.okPressed(Unknown Source)
at org.eclipse.jface.dialogs.Dialog.buttonPressed(Dialog.java:508)
at org.eclipse.jface.dialogs.Dialog$3.widgetSelected(Dialog.java:660)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:820)
at org.eclipse.jface.window.Window.open(Window.java:796)
at org.drools.eclipse.dsl.editor.DSLEditor$8.widgetSelected(Unknown Source)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)
If I put two blanks between {number} {object}, it's working.
[condition][]there is at least {number} {object}=ArrayList( size >=
{number}) from collect( {object}() )
But it's not a solution.
thanks for your help,
V.
--
View this message in context: http://www.nabble.com/Problem-with-DSL-and-4.0.2-tf4606960.html#a13154907
Sent from the drools - user mailing list archive at Nabble.com.
17 years, 1 month
drools jbrms- forall condition!
by vamshidhar reddy chitti
hello,
is there any replace condition for 'forall' in drools jbrms web ui
tnx n advance
vamshidhar
---------------------------------
Yahoo! Clever: Stellen Sie Fragen und finden Sie Antworten. Teilen Sie Ihr Wissen.
17 years, 1 month
Problem with WorkingMemoryFileLogger and 4.0.2
by vdelbart
Hi,
I don't know why but with the 4.0.2 version I have this error :
Exception in thread "main" java.lang.NoSuchMethodError:
org.drools.audit.WorkingMemoryFileLogger.<init>(Lorg/drools/WorkingMemoryEventManager;)V
at execution.ExecReglesTest2.main(ExecReglesTest2.java:73)
with this class :
public class ExecReglesTest2
{
private static final Reader DSL = new
InputStreamReader(ExecReglesTest2.class
.getResourceAsStream("/rules/dslDemoMoteurVenueTEST.dsl"));
private static final Reader DRL = new
InputStreamReader(ExecReglesTest2.class
.getResourceAsStream("/rules/testReglesMoteurVenue.dslr"));
private static final Reader RULE_FLOW = new
InputStreamReader(ExecReglesTest2.class
.getResourceAsStream("/rules/ruleFlowDemoMoteurVenueTEST.rfm"));
private static final String FICHIER_LOG = "session";
/**
* @param args
*/
public static void main(String[] args)
{
try
{
/******************************************************************************************
* CREER LA BASE DE CONNAISSANCE
*****************************************************************************************/
// parser et compiler le package et le rule flow
// analyse et compilation du package de règles
PackageBuilder builder = new PackageBuilder();
builder.addPackageFromDrl(DRL, DSL);
// utilisation d'un rule flow
builder.addRuleFlow(RULE_FLOW);
// déploiment du package
RuleBase ruleBase = RuleBaseFactory.newRuleBase();
ruleBase.addPackage(builder.getPackage());
// chargement du package binaire
StatefulSession session = ruleBase.newStatefulSession();
/******************************************************************************************
* CREER ET ALIMENTER LE CONTEXTE
*****************************************************************************************/
WorkingMemoryFileLogger logger = new WorkingMemoryFileLogger(session);
thanks for your help,
regards,
V.
--
View this message in context: http://www.nabble.com/Problem-with-WorkingMemoryFileLogger-and-4.0.2-tf46...
Sent from the drools - user mailing list archive at Nabble.com.
17 years, 1 month
RE: [rules-users] Basic questions about rule deployment
by Hehl, Thomas
Just a note about URLs. URLs will automatically do base 64 encoding, which
primarily means that all spaces are replaced with %20%. If you are using a
URL to represent a file, make sure you test it with a file that has spaces
somewhere in the path.
I just learned this the hard way. You may need to convert your URL to a URI.
Good luck!
-----Original Message-----
From: rules-users-bounces(a)lists.jboss.org
[mailto:rules-users-bounces@lists.jboss.org] On Behalf Of Fermion
Sent: Thursday, October 11, 2007 5:29 AM
To: rules-users(a)lists.jboss.org
Subject: Re: [rules-users] Basic questions about rule deployment
Thank you very much!
I followed your advice and created URLs for my .drl and .dsl files.
Then I created a new URLClassLoader instance with these two URLs.
Finally I assigned this class loader to my packager builder using:
myPackageBuilder.getPackageBuilderConfiguration().setClassLoader(myURLClassL
oader);
Absolute path names seem to be Ok, as long as one uses "file:" as a prefix
to the URL string. I plan to use a config file to specify the locations of
my rule files (dsl and drl). The location of the config file itself will
then be defined by a command line argument.
Thanks again!
--
View this message in context:
http://www.nabble.com/Basic-questions-about-rule-deployment-tf4601653.html#a
13152365
Sent from the drools - user mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
17 years, 1 month
call function from one rule file to another file
by marimuthu.balasubramanian@wipro.com
Hi all
I am using Drools 4.0.
I have written a function in a rule file and i want to use that function
in another rule file.
Please tell me what should i do for this.
Regards
Marimuthu
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.
WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
www.wipro.com
17 years, 1 month