properties configuration
by mamadou.ensi
Hi,
can any one explain the means of properties configuration values
KnowledgeAgentConfiguration and knowledgeBaseConfiguration?
drools.agent.scanResources
drools.agent.scanDirectories
drools.agent.newInstance
drools.agent.monitorChangeSetEvents
drools.maintainTms = <true|false>
drools.sequential = <true|false>
drools.sequential.agenda = <sequential|dynamic>
drools.removeIdentities = <true|false>
drools.shareAlphaNodes = <true|false>
drools.shareBetaNodes = <true|false>
drools.alphaNodeHashingThreshold = <1...n>
drools.compositeKeyDepth =<1..3>
drools.indexLeftBetaMemory = <true/false>
drools.indexRightBetaMemory = <true/false>
drools.assertBehaviour = <identity|equality>
drools.logicalOverride = <discard|preserve>
drools.executorService = <qualified class name>
drools.conflictResolver = <qualified class name>
drools.consequenceExceptionHandler = <qualified class name>
drools.ruleBaseUpdateHandler = <qualified class name>
drools.sessionClock = <qualified class name>
drools.maxThreads = <-1|1..n>
drools.multithreadEvaluation = <true|false>
drools.mbeans = <enabled|disabled>
drools.classLoaderCacheEnabled = <true|false>
Regards
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/properties-configurat...
Sent from the Drools - Dev mailing list archive at Nabble.com.
14 years, 7 months
clean .m2 build is failing
by Randy Secrist
And yet, hudson shows it is passing. Anyone know if hudson cleans the .m2
each time it builds?
anyway ..
Drools GWT Console won't build w/o 1.1-M1 of errai-common and errai bus.
1.1-M1 is not yet in any of the repos.
-- Randy
[INFO]
------------------------------------------------------------------------
[INFO] Building Drools :: GWT Console
[INFO] task-segment: [clean, install]
[INFO]
------------------------------------------------------------------------
[INFO] [clean:clean]
[INFO] Deleting directory
/Users/randy/Documents/dev/views/drools/trunk/drools-process/drools-gwt-console/target
[INFO] [resources:resources]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
Missing:
----------
1) org.jboss.errai:errai-common:jar:1.1-M1
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.jboss.errai
-DartifactId=errai-common -Dversion=1.1-M1 -Dpackaging=jar
-Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file
there:
mvn deploy:deploy-file -DgroupId=org.jboss.errai
-DartifactId=errai-common -Dversion=1.1-M1 -Dpackaging=jar
-Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) org.drools:drools-gwt-console:jar:5.1.0.SNAPSHOT
2) org.jboss.bpm:gwt-console-server-integration:jar:2.1-SNAPSHOT
3) org.jboss.bpm:gwt-console-rpc:jar:2.1-SNAPSHOT
4) org.jboss.errai:errai-common:jar:1.1-M1
2) org.jboss.errai:errai-bus:jar:1.1-M1
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.jboss.errai
-DartifactId=errai-bus -Dversion=1.1-M1 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file
there:
mvn deploy:deploy-file -DgroupId=org.jboss.errai
-DartifactId=errai-bus -Dversion=1.1-M1 -Dpackaging=jar -Dfile=/path/to/file
-Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) org.drools:drools-gwt-console:jar:5.1.0.SNAPSHOT
2) org.jboss.bpm:gwt-console-server-integration:jar:2.1-SNAPSHOT
3) org.jboss.bpm:gwt-console-rpc:jar:2.1-SNAPSHOT
4) org.jboss.errai:errai-bus:jar:1.1-M1
----------
2 required artifacts are missing.
14 years, 7 months
build error in docs
by jschmied
Hi!
Im trying "mvn package" in the "trunk\drools-docs" subdir (fresh checkout)
and get:
[INFO] Scanning for projects...
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] The projects in the reactor contain a cyclic reference: Edge between
'Vertex{label='org.drools:docbook-xsl-drools'}' and 'Vertex{labe
l='org.drools:docbook-style-drools'}' introduces to cycle in the graph
org.drools:docbook-style-drools --> org.drools:docbook-xsl-drools -->
org.drools:docbook-style-drools
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Fri Feb 05 13:10:01 CET 2010
[INFO] Final Memory: 2M/5M
[INFO]
------------------------------------------------------------------------
I found this problem aked before here but no real solution.
Thanks
Juergen
--
View this message in context: http://n3.nabble.com/build-error-in-docs-tp196316p196316.html
Sent from the Drools - Dev mailing list archive at Nabble.com.
14 years, 7 months
Enum types in rules template
by Florian Beckmann
Hi all,
I got a question relating to value substitution of enum types in rule
templates.
Given the enum type:
public enum MyEnum
{
A("a");
B("b);
private String shortName;
private MyEnum(string shortName)
{
this.shortName = shortName;
}
public String shortName()
{
return shortName;
}
public String toString()
{
return shortName;
}
}
an object for the template
public class RuleObject
{
private MyEnum myEnum;
public TemplateObject(MyEnum myEnum)
{
this.myEnum = myEnum;
}
public void setMyEnum(MyEnum myEnum){this.myEnum = myEnum;}
public MyEnum getMyEnum(){ return myEnum;}
}
and a fact model object
public class FactObject
{
private MyEnum myEnum;
public void setMyEnum(MyEnum myEnum){this.myEnum = myEnum;}
public MyEnum getMyEnum(){ return myEnum;}
}
with an instance
TemplateObject templateObject = new TemplateObject(MyEnum.A);
and the template
----------------------------------
template header
name
myEnum
package my.package
import my.package.FactObject
import my.package.MyEnum
template "MyTemplate"
rule "@{name}"
when
$factObject: FactObject(myEnum == MyEnum.@{myEnum}} //<------------
toString() is used here
then
...
end
end template
----------------------------
It seems that for the substitution of @{myEnum} the toString() method of the
myEnum-Object is used. Without providing a toString() method in the declared
enum class the name() method is invoked implicitly. Hence the expression would
be substituted with 'A' ($factObject: FactObject(myEnum == A) . Therefore it's
necessary to put the Enums-Classname with a dot - "MyEnum." - in front so it
would be MyEnum.A in the generated rule ($factObject: FactObject(myEnum ==
MyEnum.A).
Trouble starts if I provide a custom toString() method in my enum type. With
the example above the expression @{myEnum} would be substituted with 'a'
($factObject: FactObject(myEnum == MyEnum.a) hence I get
MyEnum.a in my generated rule -> Rule error because type doesn't exist.
I don't know anything about the implementation details of the template to rule
generation - but wouldn't it make more sense
1. to substitute @{myEnum} with the enums classname and name() value
(@{myEnum} -> MyEnum.A) if the given field is an Enum instance?
or
2. At least use the name() method (which is final) to always get the enums
Name.
Maybe there are reasons why this makes no sense or can't be done? Your
thoughts please.
Cheers
Florian Beckmann
--
--------------------------------------------
camunda services GmbH - The Business Process Company
Zossener Straße 55-58 - 10961 Berlin
www.camunda.com - info(a)camunda.com
---------------------------------------------
Florian Beckmann
Entwickler
Telefon +49 30 664040 900
florian.beckmann(a)camunda.com
---------------------------------------------
Amtsgericht Charlottenburg: HRB 113230 B
Geschäftsführer: Jakob Freund, Bernd Rücker
---------------------------------------------
14 years, 7 months
Re: [rules-dev] .classpath files within drools trunk
by Randy Secrist
Thanks for taking care of these. Will make life more simple for us.
-- Randy
On Monday 10,May,2010 12:20:04 -0300, Jervisliu wrote:
> +1 to delete those files. Then add them to svn:ignore after deleting
> them, please.
14 years, 7 months
Guvnor on trunk is not working?
by Jervisliu
Hi, I deployed drools-guvnor.war that is generated from latest trunk
into JBOSS AS, looks like it does not work more. Tried to create a rule,
you got this message on console: "Sorry, a technical error occurred.
Please contact a system administrator.". Following exception has been
logged in log file:
2010-05-11 01:53:50,580 INFO [STDOUT] ERROR 11-05 01:53:50,580
(RepositoryServiceServlet.java:doUnexpectedFailure:82)
com.google.gwt.user.client.rpc.SerializationException: Type
'org.drools.ide.common.client.modeldriven.brl.RuleModel' was not
included in the set of types which can be serialized by this
SerializationPolicy or its Class object could not be loaded. For
security purposes, this type will not be serialized.: instance =
org.drools.ide.common.client.modeldriven.brl.RuleModel@16461d5
2010-05-11 01:53:50,580 ERROR [STDERR]
com.google.gwt.user.client.rpc.SerializationException: Type
'org.drools.ide.common.client.modeldriven.brl.RuleModel' was not
included in the set of types which can be serialized by this
SerializationPolicy or its Class object could not be loaded. For
security purposes, this type will not be serialized.: instance =
org.drools.ide.common.client.modeldriven.brl.RuleModel@16461d5
2010-05-11 01:53:50,580 ERROR [STDERR] at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:610)
2010-05-11 01:53:50,580 ERROR [STDERR] at
com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:129)
2010-05-11 01:53:50,580 ERROR [STDERR] at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter$ValueWriter$8.write(ServerSerializationStreamWriter.java:152)
2010-05-11 01:53:50,581 ERROR [STDERR] at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue(ServerSerializationStreamWriter.java:534)
2010-05-11 01:53:50,581 ERROR [STDERR] at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeClass(ServerSerializationStreamWriter.java:700)
2010-05-11 01:53:50,581 ERROR [STDERR] at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeImpl(ServerSerializationStreamWriter.java:730)
2010-05-11 01:53:50,581 ERROR [STDERR] at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:612)
2010-05-11 01:53:50,581 ERROR [STDERR] at
com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:129)
2010-05-11 01:53:50,581 ERROR [STDERR] at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter$ValueWriter$8.write(ServerSerializationStreamWriter.java:152)
2010-05-11 01:53:50,581 ERROR [STDERR] at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue(ServerSerializationStreamWriter.java:534)
2010-05-11 01:53:50,581 ERROR [STDERR] at
com.google.gwt.user.server.rpc.RPC.encodeResponse(RPC.java:609)
2010-05-11 01:53:50,581 ERROR [STDERR] at
com.google.gwt.user.server.rpc.RPC.encodeResponseForSuccess(RPC.java:467)
2010-05-11 01:53:50,581 ERROR [STDERR] at
com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:564)
2010-05-11 01:53:50,581 ERROR [STDERR] at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:188)
2010-05-11 01:53:50,581 ERROR [STDERR] at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:224)
2010-05-11 01:53:50,581 ERROR [STDERR] at
com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
2010-05-11 01:53:50,581 ERROR [STDERR] at
javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
2010-05-11 01:53:50,581 ERROR [STDERR] at
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
2010-05-11 01:53:50,581 ERROR [STDERR] at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
2010-05-11 01:53:50,581 ERROR [STDERR] at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
2010-05-11 01:53:50,581 ERROR [STDERR] at
org.jboss.seam.web.ContextFilter$1.process(ContextFilter.java:42)
2010-05-11 01:53:50,581 ERROR [STDERR] at
org.jboss.seam.servlet.ContextualHttpServletRequest.run(ContextualHttpServletRequest.java:53)
2010-05-11 01:53:50,581 ERROR [STDERR] at
org.jboss.seam.web.ContextFilter.doFilter(ContextFilter.java:37)
2010-05-11 01:53:50,581 ERROR [STDERR] at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
2010-05-11 01:53:50,581 ERROR [STDERR] at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
2010-05-11 01:53:50,581 ERROR [STDERR] at
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
2010-05-11 01:53:50,581 ERROR [STDERR] at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
2010-05-11 01:53:50,581 ERROR [STDERR] at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
2010-05-11 01:53:50,581 ERROR [STDERR] at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
2010-05-11 01:53:50,581 ERROR [STDERR] at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
2010-05-11 01:53:50,581 ERROR [STDERR] at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
2010-05-11 01:53:50,581 ERROR [STDERR] at
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
2010-05-11 01:53:50,581 ERROR [STDERR] at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
2010-05-11 01:53:50,581 ERROR [STDERR] at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
2010-05-11 01:53:50,581 ERROR [STDERR] at
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
2010-05-11 01:53:50,581 ERROR [STDERR] at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
2010-05-11 01:53:50,581 ERROR [STDERR] at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
2010-05-11 01:53:50,581 ERROR [STDERR] at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
2010-05-11 01:53:50,581 ERROR [STDERR] at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
2010-05-11 01:53:50,581 ERROR [STDERR] at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
2010-05-11 01:53:50,581 ERROR [STDERR] at
java.lang.Thread.run(Unknown Source)
Everything still works fine if I debug Guvnor in Eclipse . I suspect
this is related to our recent changes in ide-common (RuleModel is not
made available to GWT compiler), or am I missing anything?
Thanks,
Jervis
14 years, 7 months
.classpath files within drools trunk
by Randy Secrist
There are a number of references to M2_REPO in eclipse .classpath files
which are appear to no longer be used by the MVN build (for at least the
test case + install phase). I'm assuming it is because the CI loop is fine
but the eclipse stuff has not been maintained.
Would any committers here be interested if I patched out the artifacts
within the .classpath files which I don't think we need anymore and sent up
the diff?
or -
should we remove the .classpath and .project?
or -
should we enable the sonatype maven plugin within the .project files?
Some examples are:
drools-decisiontables/.classpath has
- antlr
- cglib
- stringtemplate
- hamcrest-core
- hamcrest-library
- jmock-legacy
- jmock
- objenesis
Let me know what you guys think ...
-- Randy Secrist
GE Healthcare
14 years, 7 months
Re: [rules-dev] Rule syntax to accumulate time segments over a limited set of date ranges
by Greg Barton
Two suggestions:
1) Use the joda time library for representing date/time if possible. It's bundled with droole because of fusion and is much easier to work with.
2) If you use some "ugly" pattern often, define a custom operator to makw the syntax cleaner.
GreG
On May 7, 2010, at 11:13, Bill Hainaut <billhainaut(a)gmail.com> wrote:
This seems to do the trick. I hate the ugly date math, but otherwise, I'm
satisfied:
$s : SeatAssignment ( )
$mission : CrewSegment( taskBeingTested == true )
$total : Number( doubleValue > 56 )
from accumulate( CrewSegment( personId == $s.personId,
endDate.time <= $mission.endDate.time, startDate.time >
($mission.endDate.time - (7L * 24L * 60L * 60L * 1000L)), $crewHours :
crewHours ),
sum( $crewHours ) )
Bill Hainaut wrote:
Drools Experts:
I have a list of the following fact objects sent to my rules:
CrewSegment
Date startDate
Date endDate
double crewHours
int personId
along with an object to designate seats:
SeatAssignment
int seatId
int personId
Here is the rule I want to enforce in English: No crew member (uniquely
identified by personId) can have more than 56 hours of total crewHours in
any 7 day period. The rule I've written so far is:
when
$s : SeatAssignment ( )
$total : Number( doubleValue > 56 )
from accumulate( CrewSegment( personId == $s.personId, $crewHours :
crewHours ),
sum( $crewHours ) )
This rule nicely catches any instance where more than 56 hours are
committed by a person, but does not limit the time period to 7 days.
How do I limit the search to be sure that it is 56 hours WITHIN 7 days,
and
not just 56 hours total over ANY time period?
Thanks in advance for any help you can provide!!!
Bill
_______________________________________________
rules-dev mailing list
rules-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Rule-syntax-to-accumu...
Sent from the Drools - Dev mailing list archive at Nabble.com.
_______________________________________________
rules-dev mailing list
rules-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev
14 years, 7 months
Rule syntax to accumulate time segments over a limited set of date ranges
by billhainaut@gmail.com
Drools Experts:
I have a list of the following fact objects sent to my rules:
CrewSegment
Date startDate
Date endDate
double crewHours
int personId
along with an object to designate seats:
SeatAssignment
int seatId
int personId
Here is the rule I want to enforce in English: No crew member (uniquely
identified by personId) can have more than 56 hours of total crewHours in
any 7 day period. The rule I've written so far is:
when
$s : SeatAssignment ( )
$total : Number( doubleValue > 56 )
from accumulate( CrewSegment( personId == $s.personId, $crewHours :
crewHours ),
sum( $crewHours ) )
This rule nicely catches any instance where more than 56 hours are
committed by a person, but does not limit the time period to 7 days.
How do I limit the search to be sure that it is 56 hours WITHIN 7 days, and
not just 56 hours total over ANY time period?
Thanks in advance for any help you can provide!!!
Bill
14 years, 7 months