Re: [rules-users] add process only - bug ?

2007-08-31 Thread hypnosat7

That still not work with the latest version (4.0.1)
any help pls:,(


hypnosat7 wrote:
 
 hi,
 
   I try to add a ruleflow to my rule base :
   builder.addRuleFlow(RULE_FLOW);
   Package pkg = builder.getPackage();
   ruleBase.addPackage(builder.getPackage());
 
 But !!:
 java.lang.NullPointerException
   at
 org.drools.compiler.PackageBuilder.addRuleFlowsToPackage(PackageBuilder.java:469)
   at 
 org.drools.compiler.PackageBuilder.getPackage(PackageBuilder.java:449)
   at mcmipih.rules.demo.service.TestDraft.main(TestDraft.java:31)
 

-- 
View this message in context: 
http://www.nabble.com/add-process-only--%3E-bug---tf4334017.html#a12424043
Sent from the drools - user mailing list archive at Nabble.com.

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] removing all packages

2007-08-31 Thread hypnosat7

I'm tried this :
 .

// get the compiled package
Package pkg = builder.getPackage();

// remove the old packages
ListPackage oldPackages = 
Arrays.asList(ruleBase.getPackages());

for (Package oldPkg : oldPackages)
{

ruleBase.removePackage(oldPkg.getName());

}

// add the package
ruleBase.addPackage(pkg);

But my behavior's rule flow is changing !!

hypnosat7 wrote:
 
 Hi,
 
   How can I remove all the packages from a rule base without creating a
 new rulebase ?
 

-- 
View this message in context: 
http://www.nabble.com/removing-all-packages-tf4359507.html#a12429713
Sent from the drools - user mailing list archive at Nabble.com.

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] package merging

2007-08-30 Thread hypnosat7

Hi, 
in the documentation (7.1.4.2. Package) it seems possible to merge package
in the rule base, how ca I do this.
(Drools 4.0.1 SNAPSHOT)

-- 
View this message in context: 
http://www.nabble.com/package-merging-tf4355086.html#a12409940
Sent from the drools - user mailing list archive at Nabble.com.

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] function call

2007-08-29 Thread hypnosat7

I try and change the dialect but it doesn't work

rule Your First Rule
dialect mvel
when

then
 
drools.rule.dialect=java
System.out.println(drools.getRule().getDialect());
System.out.println(ok+func());


end

the package still invalid :
* (1,6) unable to resolve method using strict-mode:
java.lang.Object.func(...)
* (1,6) unable to resolve method using strict-mode:
java.lang.Object.func(...)



hypnosat7 wrote:
 
 Hi,
 
   I have a simple rule :
 
 function String isTrue() {
   return true;
 }
 
 rule new rule
 dialect mvel
   when
   eval(true)
   then
   System.out.println(passe+isTrue());
 end
 
 But it seems impossible to call function's :
 
 org.mvel.PropertyAccessException: failed to access property:
 System.out.println(passe+isTrue()) in: null
   at
 org.mvel.optimizers.impl.refl.ReflectiveAccessorOptimizer.compileGetChain(ReflectiveAccessorOptimizer.java:137)
   at
 org.mvel.optimizers.impl.refl.ReflectiveAccessorOptimizer.optimizeAccessor(ReflectiveAccessorOptimizer.java:96)
   at org.mvel.ASTNode.getReducedValueAccelerated(ASTNode.java:194)
   at org.mvel.MVELRuntime.execute(MVELRuntime.java:87)
   at org.mvel.MVEL.executeDebugger(MVEL.java:327)
   at 
 org.drools.base.mvel.MVELConsequence.evaluate(MVELConsequence.java:43)
   at 
 org.drools.common.DefaultAgenda.fireActivation(DefaultAgenda.java:545)
   at org.drools.common.DefaultAgenda.fireNextItem(DefaultAgenda.java:509)
   at
 org.drools.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.java:430)
   at
 org.drools.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.java:392)
   at mcmipih.rules.demo.service.TestDraft.main(TestDraft.java:37)
 Caused by: org.mvel.PropertyAccessException: null pointer exception in
 property: isTrue()
   at
 org.mvel.optimizers.impl.refl.ReflectiveAccessorOptimizer.compileGetChain(ReflectiveAccessorOptimizer.java:143)
   at
 org.mvel.optimizers.impl.refl.ReflectiveAccessorOptimizer.optimizeAccessor(ReflectiveAccessorOptimizer.java:96)
   at org.mvel.ASTNode.getReducedValueAccelerated(ASTNode.java:194)
   at
 org.mvel.ast.BinaryOperation.getReducedValueAccelerated(BinaryOperation.java:20)
   at org.mvel.MVELRuntime.execute(MVELRuntime.java:87)
   at org.mvel.CompiledExpression.getValue(CompiledExpression.java:98)
   at
 org.mvel.optimizers.impl.refl.ReflectiveAccessorOptimizer.getMethod(ReflectiveAccessorOptimizer.java:421)
   at
 org.mvel.optimizers.impl.refl.ReflectiveAccessorOptimizer.compileGetChain(ReflectiveAccessorOptimizer.java:109)
   ... 10 more
 Caused by: java.lang.NullPointerException
   at
 org.mvel.optimizers.impl.refl.ReflectiveAccessorOptimizer.getMethod(ReflectiveAccessorOptimizer.java:429)
   at
 org.mvel.optimizers.impl.refl.ReflectiveAccessorOptimizer.compileGetChain(ReflectiveAccessorOptimizer.java:109)
   ... 17 more
 org.drools.spi.ConsequenceException: org.mvel.PropertyAccessException:
 failed to access property: System.out.println(passe+isTrue()) in:
 null
   at 
 org.drools.common.DefaultAgenda.fireActivation(DefaultAgenda.java:549)
   at org.drools.common.DefaultAgenda.fireNextItem(DefaultAgenda.java:509)
   at
 org.drools.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.java:430)
   at
 org.drools.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.java:392)
   at mcmipih.rules.demo.service.TestDraft.main(TestDraft.java:37)
 Caused by: org.mvel.PropertyAccessException: failed to access property:
 System.out.println(passe+isTrue()) in: null
   at
 org.mvel.optimizers.impl.refl.ReflectiveAccessorOptimizer.compileGetChain(ReflectiveAccessorOptimizer.java:137)
   at
 org.mvel.optimizers.impl.refl.ReflectiveAccessorOptimizer.optimizeAccessor(ReflectiveAccessorOptimizer.java:96)
   at org.mvel.ASTNode.getReducedValueAccelerated(ASTNode.java:194)
   at org.mvel.MVELRuntime.execute(MVELRuntime.java:87)
   at org.mvel.MVEL.executeDebugger(MVEL.java:327)
   at 
 org.drools.base.mvel.MVELConsequence.evaluate(MVELConsequence.java:43)
   at 
 org.drools.common.DefaultAgenda.fireActivation(DefaultAgenda.java:545)
   ... 4 more
 Caused by: org.mvel.PropertyAccessException: null pointer exception in
 property: isTrue()
   at
 org.mvel.optimizers.impl.refl.ReflectiveAccessorOptimizer.compileGetChain(ReflectiveAccessorOptimizer.java:143)
   at
 org.mvel.optimizers.impl.refl.ReflectiveAccessorOptimizer.optimizeAccessor(ReflectiveAccessorOptimizer.java:96)
   at org.mvel.ASTNode.getReducedValueAccelerated(ASTNode.java:194)
   at
 org.mvel.ast.BinaryOperation.getReducedValueAccelerated(BinaryOperation.java:20)
   at org.mvel.MVELRuntime.execute(MVELRuntime.java:87)
   at org.mvel.CompiledExpression.getValue

[rules-users] add process only - bug ?

2007-08-27 Thread hypnosat7

hi,

  I try to add a ruleflow to my rule base :
builder.addRuleFlow(RULE_FLOW);
Package pkg = builder.getPackage();
ruleBase.addPackage(builder.getPackage());

But !!:
java.lang.NullPointerException
at
org.drools.compiler.PackageBuilder.addRuleFlowsToPackage(PackageBuilder.java:469)
at 
org.drools.compiler.PackageBuilder.getPackage(PackageBuilder.java:449)
at mcmipih.rules.demo.service.TestDraft.main(TestDraft.java:31)
-- 
View this message in context: 
http://www.nabble.com/add-process-only--%3E-bug---tf4334017.html#a12343434
Sent from the drools - user mailing list archive at Nabble.com.

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] global Service service

2007-08-23 Thread hypnosat7

Hi,

  I'm using Drools 4.0.1 snapshot but the Global Data View seems not work :

this is my rule :

global Service service
global Parking parking



rule gestion file d'attente
when
v:Vehicule( age = 3 ) from service.getVehicules()
then 
parking.garer(v); // add vehicule to parking

end

1) But in debug mode, in the Global Data View I have this message :
 The selected working memory has no globals defined
2) And In the Agenda View I don't see any activation, I see
MAIN[focus]:.. (id=1370), is it normal ?
  when I check my parking I find a vehicule, so the rule was executed!

Thanks
-- 
View this message in context: 
http://www.nabble.com/global-Service-service-tf4316159.html#a12289656
Sent from the drools - user mailing list archive at Nabble.com.

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Working Memory View

2007-08-23 Thread hypnosat7

And for the Audit View ??


Mark Proctor wrote:
 
 StatelessSession does not implement or extending Working Memory, it 
 intead has it as a member variable. So you need to select that member 
 variable for those views to work.
 
 Mark
 hypnosat7 wrote:
 Hi,

Why the Working Memory and the agenda Views didn't work with a
 StatelessSession ?
 Thanks
   
 
 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users
 
 

-- 
View this message in context: 
http://www.nabble.com/Working-Memory-View-tf4312013.html#a12291410
Sent from the drools - user mailing list archive at Nabble.com.

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] statelessSession and rule flow

2007-08-22 Thread hypnosat7

Hi,

  Is there any way to use rule flows with a statelessSession ?
Thanks
-- 
View this message in context: 
http://www.nabble.com/statelessSession-and-rule-flow-tf4310262.html#a12270501
Sent from the drools - user mailing list archive at Nabble.com.

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] error in the manual ?

2007-08-22 Thread hypnosat7

Hi,

  I see on :
file:///C:/Utils/Drools%204/drools-4.0.0-bin/documentation/manual/html/index.html

in the sequential mode : Sequential mode can only be used with a
StatefulSession and is off by default. ...

Is it statefulSession or stateless ?
-- 
View this message in context: 
http://www.nabble.com/error-in-the-manual---tf4310800.html#a12272046
Sent from the drools - user mailing list archive at Nabble.com.

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] Realtime audit view

2007-08-17 Thread hypnosat7

Hi,

   What is the realtime audit view ?
-- 
View this message in context: 
http://www.nabble.com/Realtime-audit-view-tf4286417.html#a12201671
Sent from the drools - user mailing list archive at Nabble.com.

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] find the error line number in a rule

2007-08-15 Thread hypnosat7

Hi,

   I use a package builder to build rule packages loaded from a DB. Those
rules are written in a dsl so I use also a dsl file. But I'm looking for a
simply way to return the line number if there is a parsing error. In fact I
need something like DroolsError.getLine(). how can I do this

Thank's
-- 
View this message in context: 
http://www.nabble.com/find-the-error-line-number-in-a-rule-tf4273189.html#a12162298
Sent from the drools - user mailing list archive at Nabble.com.

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] find the error line number in a rule

2007-08-15 Thread hypnosat7


-- 
View this message in context: 
http://www.nabble.com/find-the-error-line-number-in-a-rule-tf4273166.html#a12162223
Sent from the drools - user mailing list archive at Nabble.com.

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] DSL editor

2007-08-14 Thread hypnosat7

hi,

  I have the same question concerning the Object in the dsl editor.
Thanks

megoy1 wrote:
 
 Did you ever get an answer to this? I was thinking the same thing.
 
 
 cmathrusse wrote:
 
 I'm using JBoss Rules 4.0MR2. I've installed the Eclipse IDE as well and
 begining to work with the DSL editor. It seems to be rather easy and
 intuitive
 except for one thing. The editor provides edit fields for Expression,
 Mapping,
 Object and scope. All of which make sense except for Object. What is this
 used
 for? There doesn't seem to be any reference to this field in the
 documentation.
 Can someone please privde me with an explanation and perhaps an example?
 
 Thanks very much
 
 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/DSL-editor-tf3885450.html#a12140875
Sent from the drools - user mailing list archive at Nabble.com.

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] dsl mapping for and/or

2007-08-14 Thread hypnosat7


hi is it possible to have a dsl providing users to write somthing like :

  bool1  AND bool2 OR (bool4 AND bool5)

I tried to use eval and the mapping bellow :

TELS QUE {v1} ET ({v2} OU {v3})   --  eval({v1}  ({v2} || {v3}));

In my drl I have this condition :TELS QUE EA001 ET ( N OU F )

But it seems not working :


testFromMessage/Rule_indicateur___facturer_0.java (15:551) : Syntax 
error
on token OU, invalid AssignmentOperator
testFromMessage/Rule_indicateur___facturer_0.java (15:554) : F cannot be
resolved
-- 
View this message in context: 
http://www.nabble.com/dsl-mapping-for-and-or-tf4266238.html#a12141603
Sent from the drools - user mailing list archive at Nabble.com.

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] rule validation

2007-08-14 Thread hypnosat7

Hi,

  I have some rules written in a dsl in a data base and I need to validate
those rule so I used a PackageBuilder instance and a PackageBuilderErrors
but it's a bit akward to manage with the subclasses of DroolsError. What I
need is to get the line number of the error in my drl file (the DroolsError
). 



How can I proceed ?
thanks

This is what I tried to do :
PackageBuilderErrors pkgBuilderErrors = builder.getErrors();
DroolsError[] droolsErrors = pkgBuilderErrors.getErrors();
ListDroolsError errorList = new
ArrayListDroolsError(Arrays.asList(droolsErrors));
for (DroolsError droolsError : errorList)
{
 if (droolsError instanceof ParserError)
{  ...
-- 
View this message in context: 
http://www.nabble.com/rule-validation-tf4268341.html#a12147869
Sent from the drools - user mailing list archive at Nabble.com.

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] expander mappings empty !

2007-08-13 Thread hypnosat7

But why the expand methode in DrlParser.parse(final String source, final
Reader dsl)  can't build the expander with an inputStreamReader on a used
ressource ?
And If I use two FileReader on the same dsl file it work's

example :

dslReader = new
InputStreamReader(getClass().getResourceAsStream(dslSource));
...
   DSLMappingFile dslMappingFile = new DSLMappingFile();
   dslMappingFile.parseAndLoad(dslReader);
   ...
   builder.addPackageFromDrl(drlReader, dslReader);

the package built is invalid because the mappings property in the expander
is empty

Any explaination to this ?
thanks




hypnosat7 wrote:
 
 
 In fact I used the dsl Reader before to build a DefaultDslMapping. So the
 problem is fixed
 
 
 hypnosat7 wrote:
 
 Hi,
  I have an error when I try to buil a package using a dsl Reader :
 [EMAIL PROTECTED],1]: unknown:16:1 Unexpected
 token 'une'
 
 I try to debug it with eclipse and I find no mappings in the variable
 expander
  
 final String expanded = expander.expand( source );
 
 I'ts in the method DrlParser.parse(final String source, final Reader dsl)
 throws DroolsParserException
 
 So what can be the problem
 
 
 

-- 
View this message in context: 
http://www.nabble.com/expander-mappings-empty-%21-tf4260034.html#a12124221
Sent from the drools - user mailing list archive at Nabble.com.

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] expander mappings empty !

2007-08-13 Thread hypnosat7

I need the mapping for a wizard.

In fact if I execute the methode below before the
addPackageFromDrl(drlReader, dslReader) I have problems.

private DSLMapping generateDslMapping(Reader dslReader)
{

DSLMappingFile dslMappingFile = new DSLMappingFile();
try
{
dslMappingFile.parseAndLoad(dslReader);
}
catch (IOException e)
{
throw new DroolsRuleAppException(e);
}

return dslMappingFile.getMapping();
}



Kris Verlaenen wrote:
 
 This is not Drools-related but rather a generic Java problem.
 You should read the Java API of the Reader class.
 A reader remembers the last position it used to read out data.
 So if you try to use the same reader twice, the second time it will be 
 empty,
 as it will already be at the end of the file.
 You could try to reset the reader to the start of the file, however,
 this method is not supported by all implementations of Reader.
 
 It is unclear why you are building your own dslMappingFile however.
 The builder will do all that for you if you just use
 builder.addPackageFromDrl(drlReader, dslReader);
 
 Kris
 
 - Original Message - 
 From: hypnosat7 [EMAIL PROTECTED]
 To: rules-users@lists.jboss.org
 Sent: Monday, August 13, 2007 12:53 PM
 Subject: Re: [rules-users] expander mappings empty !
 
 

 But why the expand methode in DrlParser.parse(final String source, final
 Reader dsl)  can't build the expander with an inputStreamReader on a used
 ressource ?
 And If I use two FileReader on the same dsl file it work's

 example :

dslReader = new
 InputStreamReader(getClass().getResourceAsStream(dslSource));
...
   DSLMappingFile dslMappingFile = new DSLMappingFile();
   dslMappingFile.parseAndLoad(dslReader);
   ...
   builder.addPackageFromDrl(drlReader, dslReader);

 the package built is invalid because the mappings property in the
 expander
 is empty

 Any explaination to this ?
 thanks




 hypnosat7 wrote:


 In fact I used the dsl Reader before to build a DefaultDslMapping. So
 the
 problem is fixed


 hypnosat7 wrote:

 Hi,
  I have an error when I try to buil a package using a dsl Reader :
 [EMAIL PROTECTED],1]: unknown:16:1 Unexpected
 token 'une'

 I try to debug it with eclipse and I find no mappings in the variable
 expander

 final String expanded = expander.expand( source );

 I'ts in the method DrlParser.parse(final String source, final Reader 
 dsl)
 throws DroolsParserException

 So what can be the problem




 -- 
 View this message in context: 
 http://www.nabble.com/expander-mappings-empty-%21-tf4260034.html#a12124221
 Sent from the drools - user mailing list archive at Nabble.com.

 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users 
 
 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users
 
 

-- 
View this message in context: 
http://www.nabble.com/expander-mappings-empty-%21-tf4260034.html#a12126286
Sent from the drools - user mailing list archive at Nabble.com.

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] error using a dsl

2007-08-10 Thread hypnosat7

hi,
When I used a dsl file with an empty rule I have this :

MCO/Rule_regle_DSL_0.java (8:265) : Syntax error, insert
AssignmentOperator Expression to complete Expression
MCO/Rule_regle_DSL_0.java (8:265) : Syntax error, insert ; to complete
BlockStatements
MCO/Rule_regle_DSL_0.java (8:265) : then cannot be resolved

Maybe because the  dialect of the package is java, what it means ? is it the
default dialect 
-- 
View this message in context: 
http://www.nabble.com/error-using-a-dsl-tf4248883.html#a12091876
Sent from the drools - user mailing list archive at Nabble.com.

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] bug or feature not yet implemented

2007-08-10 Thread hypnosat7

But my rule is an emty one :

#list any import classes here.
import java.util.List;
import java.util.Date;



#declare any global variables here


rule ruleDsl
when
une date
then

end



And in my dsl file I have :
[condition][]une date=Date()


And I have an expanderException ... unexpected token 'une' !! :(










Manukyan, Sergey wrote:
 
 
 Folks,
 
 I found that drools 4.0GA doesn't recognize variables in the left side
 of operator expression
 
 Like this produces error:
 
 
 When
   S : Supplier( 
   $sts  : supplierBusinessStatus.businessStatus,
   $csts :
 corporateSupplier.supplierBusinessStatus.businessStatus,
   $sts != $csts
   )
 Then
   ...
 
 
 
 It tries to treat the $sts variable as a field of Supplier, instead
 understanding that it is a variable declared earlier,
 
 Please advise,
 
 Thanks,
 
 -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.
 
 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users
 
 

-- 
View this message in context: 
http://www.nabble.com/error-using-a-dsl-tf4248883.html#a12094053
Sent from the drools - user mailing list archive at Nabble.com.

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] problems using the from

2007-08-07 Thread hypnosat7

Hi,
  This is my rule :


#declare any global variables here
global MockServiceRepository service


rule Your First Rule

when

Variable($list : values ) from 
service.findVariableByName(njdn,dedkm)
r : Rum(diagnostic  memberOf (value in $list))
then 
System.out.println(test From ok);

end

And this is the errors

testFromPackage/Rule_Your_First_Rule_0.java (12:581) : value cannot be
resolved
testFromPackage/Rule_Your_First_Rule_0.java (12:587) : Syntax error on
token in, instanceof expected
testFromPackage/Rule_Your_First_Rule_0.java (12:590) : $list cannot be
resolved to a type


I have a class Variable with a values property :
private SetVariableValue values = new LinkedHashSetVariableValue();

And a class VariableValue with those properties :
private String id;

protected String value;

private Variable variable;


-- 
View this message in context: 
http://www.nabble.com/problems-using-the-from-tf4229482.html#a12032198
Sent from the drools - user mailing list archive at Nabble.com.

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] rule name regular expression

2007-08-02 Thread hypnosat7

No I mean how can I check the validity of the rule names before put it in a
DB, maybe I have to look to DRL.g grammar file ?
is it this :

ID  
:
('a'..'z'|'A'..'Z'|'_'|'$'|'\u00c0'..'\u00ff')('a'..'z'|'A'..'Z'|'_'|'0'..'9'|'\u00c0'..'\u00ff')*
 

thanks



Mark Proctor wrote:
 
 There is no regexp for this. Easiest thing to do is make a package with 
 a single rule in it and pass it into a packagebuilder session.
 
 Mark
 hypnosat7 wrote:
 Hi,
   When can I find the regular expression to check the validity of a rule
 name ?
 thanks
   
 
 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users
 
 

-- 
View this message in context: 
http://www.nabble.com/rule-name-regular-expression-tf4201280.html#a11959690
Sent from the drools - user mailing list archive at Nabble.com.

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] Update error: handle not found for object

2007-08-02 Thread hypnosat7

hi I have an exception after using an update

  This is my rule :

package packageDrlTest

#list any import classes here.
import java.lang.Integer;


#declare any global variables here

rule incrementation
no-loop 
when
unEntier : java.lang.Integer()
then 
unEntier++;
System.out.println(incrementation firing...);
update(unEntier);

end


when I execute my rule on this list of facts :

List integerList = new ArrayList();
integerList.add(Integer.valueOf(1));
for (Object fact : integerList )
{
session.insert(fact);  // session is a StatefulMemory
}

Update error: handle not found for object: 2. Is it in the working memory?

détails :

incrementation firing...
org.drools.FactException: Update error: handle not found for object: 2. Is
it in the working memory?
at
org.drools.base.DefaultKnowledgeHelper.update(DefaultKnowledgeHelper.java:93)
at
packageDrlTest.Rule_incrementation_0.consequence(Rule_incrementation_0.java:9)
at
packageDrlTest.Rule_incrementation_0ConsequenceInvoker.evaluate(Rule_incrementation_0ConsequenceInvoker.java:22)
at 
org.drools.common.DefaultAgenda.fireActivation(DefaultAgenda.java:545)
at org.drools.common.DefaultAgenda.fireNextItem(DefaultAgenda.java:509)
at
org.drools.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.java:430)
at
org.drools.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.java:392)
-- 
View this message in context: 
http://www.nabble.com/Update-error%3A-handle-not-found-for-object-tf4206369.html#a11965297
Sent from the drools - user mailing list archive at Nabble.com.


___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] generating a DSLMapping

2007-08-01 Thread hypnosat7

Hi,

  Is there a methode to generate a DSLMapping from a dsl reader ?
-- 
View this message in context: 
http://www.nabble.com/generating-a-DSLMapping-tf4200795.html#a11947983
Sent from the drools - user mailing list archive at Nabble.com.

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] rule name regular expression

2007-08-01 Thread hypnosat7

Hi,
  When can I find the regular expression to check the validity of a rule
name ?
thanks
-- 
View this message in context: 
http://www.nabble.com/rule-name-regular-expression-tf4201280.html#a11949495
Sent from the drools - user mailing list archive at Nabble.com.

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] parsing errors

2007-07-31 Thread hypnosat7

Hi,

  I'm trying to recover errors information on parsing errors but I don't
know how to get a ListRecognitionException from the DrlParser instance :

Reader drlReader2 = new
InputStreamReader(PackageValidator.class.getResourceAsStream(PACKAGE_DRL));
DrlParser drlParser = new DrlParser();
PackageDescr packageDescr = drlParser.parse(drlReader2);
ListRecognitionException parsingErrors = new
ArrayListRecognitionException();
parsingErrors = drlParser.getErrors() 

May be I can extends the DrlParser class with I new method like :
getErrorRecognition
Is it a good Idea ?

Thanks
-- 
View this message in context: 
http://www.nabble.com/parsing-errors-tf4192364.html#a11922150
Sent from the drools - user mailing list archive at Nabble.com.

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] fireAllRules fire an exception !

2007-07-30 Thread hypnosat7

Hi,
I try to execute this code :
session.startProcess(ruleFlowId);
session.insert(fact);
session.fireAllRules();

But I have a NullPointerEception :

java.lang.NullPointerException
at 
mipih.Rule_Correction_acte_0.consequence(Rule_Correction_acte_0.java:15)
at
mipih.Rule_Correction_acte_0ConsequenceInvoker.evaluate(Rule_Correction_acte_0ConsequenceInvoker.java:23)
at 
org.drools.common.DefaultAgenda.fireActivation(DefaultAgenda.java:545)
at org.drools.common.DefaultAgenda.fireNextItem(DefaultAgenda.java:509)
at
org.drools.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.java:430)
at
org.drools.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.java:392)

Any help pls
-- 
View this message in context: 
http://www.nabble.com/fireAllRules-fire-an-exception-%21-tf4169266.html#a11861345
Sent from the drools - user mailing list archive at Nabble.com.

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] adding process to an empty rule base

2007-07-27 Thread hypnosat7

Is it possible to set the rule flow in my rule base before adding rule
packages :

ruleBase = RuleBaseFactory.newRuleBase();
org.drools.compiler.ProcessBuilder processBuilder = new ProcessBuilder(new
PackageBuilder());
processBuilder.addProcessFromFile(ruleFlow);
ruleBase.addProcess(processBuilder.getProcesses()[0]);

thanks
-- 
View this message in context: 
http://www.nabble.com/adding-process-to-an-empty-rule-base-tf4157978.html#a11829714
Sent from the drools - user mailing list archive at Nabble.com.

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] adding process to an empty rule base

2007-07-27 Thread hypnosat7


I try this:
...
InputStream stream =
getClass().getResourceAsStream(/rules/demoRuleFlow.rfm);
Reader ruleFlowReader = new InputStreamReader(stream);
ruleEngine.setRuleFlow(ruleFlowReader);
..

PackageBuilder builder = new PackageBuilder();
builder.addRuleFlow(ruleFlow);
Package pkgRuleFlow = builder.getPackage();
ruleBase.addPackage(pkgRuleFlow);

but I have this error:
Caused by: java.lang.NoSuchMethodError:
org.mvel.optimizers.OptimizerFactory.setDefaultOptimizer(Ljava/lang/String;)V
at
org.drools.rule.builder.dialect.mvel.MVELDialect.init(MVELDialect.java:132)
at org.drools.compiler.DialectRegistry.initAll(DialectRegistry.java:49)
at org.drools.compiler.PackageBuilder.init(PackageBuilder.java:139)
at org.drools.compiler.PackageBuilder.init(PackageBuilder.java:88)



Kris Verlaenen wrote:
 
 Yes, that is possible, but you should also add the (generated) package of 
 your PackageBuilder.
 
 But this process is actually much simpler when using the ProcessBuilder 
 exclusively.
 It should look something like this:
 
 PackageBuilder builder = new PackageBuilder();
 // add your rules (if any)
 builder.addPackageFromDrl( ... );
 // add your processes (if any)
 builder.addRuleFlow( ... );
 // add Package to ruleBase
 Package pkg = builder.getPackage(); // this includes all the rules and 
 processes
 ruleBase.addPackage( pkg );
 
 Kris
 
 - Original Message - 
 From: hypnosat7 [EMAIL PROTECTED]
 To: rules-users@lists.jboss.org
 Sent: Friday, July 27, 2007 3:59 PM
 Subject: [rules-users] adding process to an empty rule base
 
 

 Is it possible to set the rule flow in my rule base before adding rule
 packages :

 ruleBase = RuleBaseFactory.newRuleBase();
 org.drools.compiler.ProcessBuilder processBuilder = new
 ProcessBuilder(new
 PackageBuilder());
 processBuilder.addProcessFromFile(ruleFlow);
 ruleBase.addProcess(processBuilder.getProcesses()[0]);

 thanks
 -- 
 View this message in context: 
 http://www.nabble.com/adding-process-to-an-empty-rule-base-tf4157978.html#a11829714
 Sent from the drools - user mailing list archive at Nabble.com.

 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users 
 
 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users
 
 

-- 
View this message in context: 
http://www.nabble.com/adding-process-to-an-empty-rule-base-tf4157978.html#a11831502
Sent from the drools - user mailing list archive at Nabble.com.

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] adding process to an empty rule base

2007-07-27 Thread hypnosat7

thanks, it works but now I have this :
Caused by: java.lang.NullPointerException
at
org.drools.compiler.PackageBuilder.addRuleFlowsToPackage(PackageBuilder.java:469)
at 
org.drools.compiler.PackageBuilder.getPackage(PackageBuilder.java:449)



Kris Verlaenen wrote:
 
 This error is caused by a mismatch between the version of the mvel library 
 you are using and the version that is expected by drools.
 Drools 4.0.0 is expecting mvel14-1.2rc1.jar.  Previous versions of drools 
 are probably based on older versions of mvel.
 Might also be caused by having multiple versions of mvel in your
 classpath.
 
 Kris
 
 - Original Message - 
 From: hypnosat7 [EMAIL PROTECTED]
 To: rules-users@lists.jboss.org
 Sent: Friday, July 27, 2007 5:30 PM
 Subject: Re: [rules-users] adding process to an empty rule base
 
 


 I try this:
 ...
 InputStream stream =
 getClass().getResourceAsStream(/rules/demoRuleFlow.rfm);
 Reader ruleFlowReader = new InputStreamReader(stream);
 ruleEngine.setRuleFlow(ruleFlowReader);
 ..

 PackageBuilder builder = new PackageBuilder();
 builder.addRuleFlow(ruleFlow);
 Package pkgRuleFlow = builder.getPackage();
 ruleBase.addPackage(pkgRuleFlow);

 but I have this error:
 Caused by: java.lang.NoSuchMethodError:
 org.mvel.optimizers.OptimizerFactory.setDefaultOptimizer(Ljava/lang/String;)V
 at
 org.drools.rule.builder.dialect.mvel.MVELDialect.init(MVELDialect.java:132)
 at org.drools.compiler.DialectRegistry.initAll(DialectRegistry.java:49)
 at org.drools.compiler.PackageBuilder.init(PackageBuilder.java:139)
 at org.drools.compiler.PackageBuilder.init(PackageBuilder.java:88)



 Kris Verlaenen wrote:

 Yes, that is possible, but you should also add the (generated) package
 of
 your PackageBuilder.

 But this process is actually much simpler when using the ProcessBuilder
 exclusively.
 It should look something like this:

 PackageBuilder builder = new PackageBuilder();
 // add your rules (if any)
 builder.addPackageFromDrl( ... );
 // add your processes (if any)
 builder.addRuleFlow( ... );
 // add Package to ruleBase
 Package pkg = builder.getPackage(); // this includes all the rules and
 processes
 ruleBase.addPackage( pkg );

 Kris

 - Original Message - 
 From: hypnosat7 [EMAIL PROTECTED]
 To: rules-users@lists.jboss.org
 Sent: Friday, July 27, 2007 3:59 PM
 Subject: [rules-users] adding process to an empty rule base



 Is it possible to set the rule flow in my rule base before adding rule
 packages :

 ruleBase = RuleBaseFactory.newRuleBase();
 org.drools.compiler.ProcessBuilder processBuilder = new
 ProcessBuilder(new
 PackageBuilder());
 processBuilder.addProcessFromFile(ruleFlow);
 ruleBase.addProcess(processBuilder.getProcesses()[0]);

 thanks
 -- 
 View this message in context:
 http://www.nabble.com/adding-process-to-an-empty-rule-base-tf4157978.html#a11829714
 Sent from the drools - user mailing list archive at Nabble.com.

 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users

 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users



 -- 
 View this message in context: 
 http://www.nabble.com/adding-process-to-an-empty-rule-base-tf4157978.html#a11831502
 Sent from the drools - user mailing list archive at Nabble.com.

 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users 
 
 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users
 
 

-- 
View this message in context: 
http://www.nabble.com/adding-process-to-an-empty-rule-base-tf4157978.html#a11832555
Sent from the drools - user mailing list archive at Nabble.com.

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] adding process to an empty rule base

2007-07-27 Thread hypnosat7

If I do like this, it works :

PackageBuilder builder = new PackageBuilder();
Reader drlReader = new
InputStreamReader(getClass().getResourceAsStream(/emptyPackage.drl));
builder.addPackageFromDrl(drlReader);
builder.addRuleFlow(ruleFlow);
Package pkgRuleFlow = builder.getPackage();
ruleBase.addPackage(pkgRuleFlow);

In the emptyPackage.drl file this no rules, but it seems to be impossible to
have a rule base with only a rule flow. I hope I'm wrong :)



hypnosat7 wrote:
 
 thanks, it works but now I have this :
 Caused by: java.lang.NullPointerException
   at
 org.drools.compiler.PackageBuilder.addRuleFlowsToPackage(PackageBuilder.java:469)
   at 
 org.drools.compiler.PackageBuilder.getPackage(PackageBuilder.java:449)
 
 
 
 Kris Verlaenen wrote:
 
 This error is caused by a mismatch between the version of the mvel
 library 
 you are using and the version that is expected by drools.
 Drools 4.0.0 is expecting mvel14-1.2rc1.jar.  Previous versions of drools 
 are probably based on older versions of mvel.
 Might also be caused by having multiple versions of mvel in your
 classpath.
 
 Kris
 
 - Original Message - 
 From: hypnosat7 [EMAIL PROTECTED]
 To: rules-users@lists.jboss.org
 Sent: Friday, July 27, 2007 5:30 PM
 Subject: Re: [rules-users] adding process to an empty rule base
 
 


 I try this:
 ...
 InputStream stream =
 getClass().getResourceAsStream(/rules/demoRuleFlow.rfm);
 Reader ruleFlowReader = new InputStreamReader(stream);
 ruleEngine.setRuleFlow(ruleFlowReader);
 ..

 PackageBuilder builder = new PackageBuilder();
 builder.addRuleFlow(ruleFlow);
 Package pkgRuleFlow = builder.getPackage();
 ruleBase.addPackage(pkgRuleFlow);

 but I have this error:
 Caused by: java.lang.NoSuchMethodError:
 org.mvel.optimizers.OptimizerFactory.setDefaultOptimizer(Ljava/lang/String;)V
 at
 org.drools.rule.builder.dialect.mvel.MVELDialect.init(MVELDialect.java:132)
 at org.drools.compiler.DialectRegistry.initAll(DialectRegistry.java:49)
 at org.drools.compiler.PackageBuilder.init(PackageBuilder.java:139)
 at org.drools.compiler.PackageBuilder.init(PackageBuilder.java:88)



 Kris Verlaenen wrote:

 Yes, that is possible, but you should also add the (generated) package
 of
 your PackageBuilder.

 But this process is actually much simpler when using the ProcessBuilder
 exclusively.
 It should look something like this:

 PackageBuilder builder = new PackageBuilder();
 // add your rules (if any)
 builder.addPackageFromDrl( ... );
 // add your processes (if any)
 builder.addRuleFlow( ... );
 // add Package to ruleBase
 Package pkg = builder.getPackage(); // this includes all the rules and
 processes
 ruleBase.addPackage( pkg );

 Kris

 - Original Message - 
 From: hypnosat7 [EMAIL PROTECTED]
 To: rules-users@lists.jboss.org
 Sent: Friday, July 27, 2007 3:59 PM
 Subject: [rules-users] adding process to an empty rule base



 Is it possible to set the rule flow in my rule base before adding rule
 packages :

 ruleBase = RuleBaseFactory.newRuleBase();
 org.drools.compiler.ProcessBuilder processBuilder = new
 ProcessBuilder(new
 PackageBuilder());
 processBuilder.addProcessFromFile(ruleFlow);
 ruleBase.addProcess(processBuilder.getProcesses()[0]);

 thanks
 -- 
 View this message in context:
 http://www.nabble.com/adding-process-to-an-empty-rule-base-tf4157978.html#a11829714
 Sent from the drools - user mailing list archive at Nabble.com.

 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users

 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users



 -- 
 View this message in context: 
 http://www.nabble.com/adding-process-to-an-empty-rule-base-tf4157978.html#a11831502
 Sent from the drools - user mailing list archive at Nabble.com.

 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users 
 
 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/adding-process-to-an-empty-rule-base-tf4157978.html#a11833321
Sent from the drools - user mailing list archive at Nabble.com.

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] or split

2007-07-25 Thread hypnosat7

Hi,

   When I set the split type to OR I have this exception :

Exception in thread AWT-EventQueue-0 java.lang.ClassCastException:
org.drools.common.RuleFlowGroupNode cannot be cast to
org.drools.spi.Activation

What it could be
-- 
View this message in context: 
http://www.nabble.com/or-split-tf4142836.html#a11784787
Sent from the drools - user mailing list archive at Nabble.com.

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] problems using rule flow

2007-07-23 Thread hypnosat7

When I use my rule flow with only one asserted fact it work very well, but
when I assert more than one fact it goes wrong. I used the Audit View to fix
the problem.

My rule flow : Start - ruleFlowGroup1 - split - ruleFlowGroup2 
  - join 
When I edit my split node I have this :
  To node ruleFlowGroup2 : constraint
  To node join : constraint

For the node join constraint I specified something like :
myFact(state==myFact.state1)

And when a fact with state==myFact.state1 is inserted the split node
constraint are true for the others facts even if their states are different
from myFact.state.

I'm also updating my fact in all the rules.

So my question is, how can I say to the split node to consider the fact
outgoing from the ruleFlowGroup1 and not a fact in the working memory 

Thanks

Any help pls ?
-- 
View this message in context: 
http://www.nabble.com/problems-using-rule-flow-tf4128169.html#a11739566
Sent from the drools - user mailing list archive at Nabble.com.

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] XOR split exception

2007-07-21 Thread hypnosat7

I have this exception
java.lang.IllegalArgumentException : XOR split could not find at least one
valid outgoing connection for split Split1

I checked my split outgoing conditions but there's nothing wrong 
Any help pls ?
-- 
View this message in context: 
http://www.nabble.com/XOR-split-exception-tf4123315.html#a11726365
Sent from the drools - user mailing list archive at Nabble.com.

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] org.drools.common.RuleFlowGroupNode

2007-07-19 Thread hypnosat7

When I fire my rules with a giving rule flow I have this exception :

java.lang.ClassCastException: org.drools.common.RuleFlowGroupNode cannot be
cast to org.drools.spi.Activation
at
org.drools.ruleflow.instance.impl.RuleFlowSplitInstanceImpl.trigger(RuleFlowSplitInstanceImpl.java:90)
at
org.drools.ruleflow.instance.impl.RuleFlowSequenceNodeInstanceImpl.triggerCompleted(RuleFlowSequenceNodeInstanceImpl.java:38)
at
org.drools.common.RuleFlowGroupImpl$DeactivateCallback.execute(RuleFlowGroupImpl.java:212)
at
org.drools.common.AbstractWorkingMemory.executeQueuedActions(AbstractWorkingMemory.java:1135)
at
org.drools.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.java:394)
at
org.drools.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.java:384)

Any help pls ?


-- 
View this message in context: 
http://www.nabble.com/org.drools.common.RuleFlowGroupNode-tf4108894.html#a11684418
Sent from the drools - user mailing list archive at Nabble.com.

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Version 4.0.0.MR4

2007-07-18 Thread hypnosat7

Is there any information for the version 4 ?

Mark Proctor wrote:
 
 planned for the 16th. The engine is near enough frozen now, just waiting 
 on the IDE stufff to finish, hopefully any day now.
 
 Mark
 hypnosat7 wrote:
 And for the 4.0.0 release ?
 thanks

 Mark Proctor wrote:
   
 you can try that now from the continuous build releases:
 http://cruisecontrol.jboss.com/cc/artifacts/jboss-rules

 I want to do it by tue/wed this week, I'm just waiting for them to 
 finish the gui stuff off - this will hopefully be the last milestone 
 release before we ship a candidate release.

 Mark
 hypnosat7 wrote:
 
 Can you pls tell us when the version 4 MR4 will be released ?
 I'm waiting for the feature JBRULES-350 : client/server API for rule
 deployment and management
   
   
 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users


 

   
 
 
 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users
 
 

-- 
View this message in context: 
http://www.nabble.com/Version-4.0.0.MR4-tf4011681.html#a11663630
Sent from the drools - user mailing list archive at Nabble.com.

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] Entreprise using Drools with success

2007-07-18 Thread hypnosat7

Is there any companies which used Drools successfully ?
Tell us more about your experiences, I need it to make decision
-- 
View this message in context: 
http://www.nabble.com/Entreprise-using-Drools-with-success-tf4101493.html#a11663657
Sent from the drools - user mailing list archive at Nabble.com.

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] date-effective

2007-07-06 Thread hypnosat7

I put in one of my rules :  date-effective 16-FEB-2007
But Drools 4 MR3 dosn't parse it in my project. Any help
Thanks
-- 
View this message in context: 
http://www.nabble.com/date-effective-tf4036244.html#a11466627
Sent from the drools - user mailing list archive at Nabble.com.

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] query in function

2007-07-05 Thread hypnosat7

Can we call a query in a function in the drl file

Thanks
-- 
View this message in context: 
http://www.nabble.com/query-in-function-tf4030626.html#a11449368
Sent from the drools - user mailing list archive at Nabble.com.

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Version 4.0.0.MR4

2007-07-02 Thread hypnosat7

And for the 4.0.0 release ?
thanks

Mark Proctor wrote:
 
 you can try that now from the continuous build releases:
 http://cruisecontrol.jboss.com/cc/artifacts/jboss-rules
 
 I want to do it by tue/wed this week, I'm just waiting for them to 
 finish the gui stuff off - this will hopefully be the last milestone 
 release before we ship a candidate release.
 
 Mark
 hypnosat7 wrote:
 Can you pls tell us when the version 4 MR4 will be released ?
 I'm waiting for the feature JBRULES-350 : client/server API for rule
 deployment and management
   
 
 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users
 
 

-- 
View this message in context: 
http://www.nabble.com/Version-4.0.0.MR4-tf4011681.html#a11393397
Sent from the drools - user mailing list archive at Nabble.com.

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] peering Drools

2007-06-28 Thread hypnosat7

Is it possible to do peering with Drools engines ?
I mean is it possible to share a unique rule base between multiple Drools
engines (different JVM)
-- 
View this message in context: 
http://www.nabble.com/peering---Drools-tf3993140.html#a11339186
Sent from the drools - user mailing list archive at Nabble.com.

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] rules in a working memory

2007-06-27 Thread hypnosat7

hello,

we know that a WeakHashMap keeps references of WorkingMemories in a rule
base but allow them to be garbage collected.
But when their be garbage collected ?

Thanks
-- 
View this message in context: 
http://www.nabble.com/rules-in-a-working-memory-tf3987800.html#a11322787
Sent from the drools - user mailing list archive at Nabble.com.

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] use jbossrules-4.0.0.11754MR2-bin ??

2007-06-22 Thread hypnosat7

Hi

  I'm working with eclipse IDE, I copied the
org.drools.eclipse_4.0.0.11754MR2 jar file to the eclipse plugins directory,
It is important to copy the binaries (jbossrules-4.0.0.11754MR2-bin
directory) ? and where can I copy it ?

Thanks
-- 
View this message in context: 
http://www.nabble.com/use-jbossrules-4.0.0.11754MR2-bintf3965304.html#a11254290
Sent from the drools - user mailing list archive at Nabble.com.

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users