Code Coverage
by mike
Hi there,
I was wondering if its possible to measure code coverage on test running
against a set of rules.
Thank you
Mike
14 years, 2 months
DSL translation handing - what is the most stable version?
by drdaveg
I've built rules using DSL's before and with 5.3 I am seeing Eclipse hang
intermitently during builds. I've seen this in previous versions of DROOLS
so wondered what/where is the most stable version of DROOLS? I downloaded,
but have not yet installed the product version (this is for a lartge US
firm, so buying the product is feasible). They could not accept needing to
kill off processes when they build. The schedule is VERY tight so I am
asking this question while I install the product version (5.2).
The rules, XOM, and DSL are simple, so I think the parser is intermitently
generating some infinitely deep tree during builds.
--
View this message in context: http://drools.46999.n3.nabble.com/DSL-translation-handing-what-is-the-mos...
Sent from the Drools: User forum mailing list archive at Nabble.com.
14 years, 2 months
Which version of Guvnor is compatible with Websphere Application Server 6.1 ???
by arup
I can't able deploy guvnor 5.1 in WAS 6.1. getting lots of error. can u
please let me khon which version of guvnor is most compatible with WAS
6.1???
Erros:
[1/23/12 18:51:26:015 IST] 00000022 WebApp E [Servlet
Error]-[/index.jsp]: java.lang.NullPointerException
at
org.jboss.seam.servlet.ContextualHttpServletRequest.run(ContextualHttpServletRequest.java:39)
at org.jboss.seam.web.ContextFilter.doFilter(ContextFilter.java:37)
at
com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
at
com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
at
com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)
at
com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:832)
at
com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:679)
at
com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:565)
at
com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)
at
com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:122)
at
com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.handleRequest(AbstractJSPExtensionServletWrapper.java:226)
at
com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionProcessor.handleRequest(AbstractJSPExtensionProcessor.java:285)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3440)
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:267)
at
com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:815)
at
com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1461)
at
com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:118)
at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:458)
at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:387)
at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:267)
at
com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
at
com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
at
com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
at
com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
at
com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:195)
at
com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:743)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:873)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473)
--
View this message in context: http://drools.46999.n3.nabble.com/Which-version-of-Guvnor-is-compatible-w...
Sent from the Drools: User forum mailing list archive at Nabble.com.
14 years, 2 months
drools flow - how to crate a human task form?
by gs76pl
hi,
What is the best way of creating some UI for human tasks with an input form?
I've a sample process with a human task that should update some values in
the process. I had a look into API of a task and the only thing i can find
there is 'content' which i'm not really sure about (is it the place where
for instance HTML UI should be created?) Is there any way to create this
form with some additional actions like : claim/fail etc?
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/drools-flow-how-to-cr...
Sent from the Drools - User mailing list archive at Nabble.com.
14 years, 2 months
Rules Evaluation based on agenda
by Vis
Hi,
We have many agenda-group based rules defined in application and while
firing rules, we set specifc agend group based on different use cases to the
session.
In evaluation phase of rules, it not only evaluate rules related with agenda
set to the session but also other rules which are not belong to the same
agenda which is set to the session.
Now problem here is:
since some time we get error, if a inserted fact is used in other agenda
group and their nested objects are not initialized which are used in
condition, it throws errors and exit.
if Drools could provide filtering capablitiy at evaluation time like wise
AgendaFilter is provided to filter activated rules, it will be great. If
there is any workaround it will be a great help.
Thanks in advance
-V
--
View this message in context: http://drools.46999.n3.nabble.com/Rules-Evaluation-based-on-agenda-tp3674...
Sent from the Drools: User forum mailing list archive at Nabble.com.
14 years, 2 months
rule dialect issue in local file stream Vs Guvnor
by domingo
I have one simple rule, just check the boolean attribute of the object and
print the value of the boolean, that simple rule. I am using java as my rule
dialect. I found something interesting while debugging.
1. When i read the drl file from the local file stream I found the
following...
getDialect ::: java
getConsequence :::
my.test.package.name.TestOne.Rule_boolean_test_rule_0DefaultConsequenceInvoker@b3a21684
2. when i read the same drl from the guvnor I found the following...
getDialect ::: mvel
getConsequence ::: org.drools.base.mvel.MVELConsequence@67bc67bc
Here is is my doubt...since i use the same rule file and 'java' as dialect
why the consequence and dialect are diffrence from ocal file stream.
If anyone clear this doubt will be greatly appreciated.
-----
with kind regards,
--
View this message in context: http://drools.46999.n3.nabble.com/rule-dialect-issue-in-local-file-stream...
Sent from the Drools: User forum mailing list archive at Nabble.com.
14 years, 3 months
Global variable error message
by domingo
Hi,
Thanks for your attention,
I am using global in my rule file(drl), I did some experiment with globals
my finding as follows...
1. declare both rules engine and drl file ==> all fine working properly.
2. I intentionaly commented out the global declaration in drl file and set
the global in the rules engine, it gives very clear error message like
'Unexpected global [identifiername]' and rule file is not compiled ==> this
is also fine very clear what is happening.
3. I declare the globals in drl file and intentionally not set the globals
into rules engine ==> I am getting the following error
message..."org.drools.runtime.rule.ConsequenceException: rule: XXXXX VVVV
rule_1"
my question here is the same error why the error message is different and
test no 3 . the error message is not clear.
This makes more difficult in debugging.
Please let me know if other way of display the correct error messahe. I
completely check the drools-compiler test files not getting any help.
drools guru's please advise me.
-----
with kind regards,
--
View this message in context: http://drools.46999.n3.nabble.com/Global-variable-error-message-tp3673889...
Sent from the Drools: User forum mailing list archive at Nabble.com.
14 years, 3 months
changeset.xml schema error
by domingo
I have some issues using changeset...
Experiment - 1
<change-set xmlns='http://drools.org/drools-5.0/change-set'
xmlns:xs='http://www.w3.org/2001/XMLSchema-instance'
xs:schemaLocation='http://drools.org/drools-5.0/change-set
drools-change-set-5.0.xsd'>
<add>
<resource source='classpath:dir1/dir2/filename.drl' type='DRL' />
</add>
</change-set>
when i use the above changeset (thanks to user forum)...the program works
fine no issues but i got the following warning messages...
(null: 1, 201): schema_reference.4: Failed to read schema document
'drools-change-set-5.0.xsd', because 1) could not find the document; 2) the
document could not be read; 3) the root element of the document is not
<xsd:schema>.
(null: 1, 201): cvc-elt.1: Cannot find the declaration of element
'change-set'.
(null: 1, 207): schema_reference.4: Failed to read schema document
'drools-change-set-5.0.xsd', because 1) could not find the document; 2) the
document could not be read; 3) the root element of the document is not
<xsd:schema>.
(null: 1, 285): schema_reference.4: Failed to read schema document
'drools-change-set-5.0.xsd', because 1) could not find the document; 2) the
document could not be read; 3) the root element of the document is not
<xsd:schema>.
(null: 1, 374): schema_reference.4: Failed to read schema document
'drools-change-set-5.0.xsd', because 1) could not find the document; 2) the
document could not be read; 3) the root element of the document is not
<xsd:schema>.
(null: 1, 446): schema_reference.4: Failed to read schema document
'drools-change-set-5.0.xsd', because 1) could not find the document; 2) the
document could not be read; 3) the root element of the document is not
<xsd:schema>.
(null: 1, 534): schema_reference.4: Failed to read schema document
'drools-change-set-5.0.xsd', because 1) could not find the document; 2) the
document could not be read; 3) the root element of the document is not
<xsd:schema>.
Question: how to get rid of this? I completely google the web including user
forum no answer.If it is available in the forum, my apologies for missing
that info...some one could forward me to that info location.
Experiment - 2
<change-set xmlns='http://drools.org/drools-5.0/change-set'
xmlns:xs='http://www.w3.org/2001/XMLSchema-instance'
xs:schemaLocation='http://drools.org/drools-5.0/change-set
http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-api/src/...'
>
<add>
<resource source='classpath:dir1/dir2/filename.drl' type='DRL' />
</add>
</change-set>
when i use the above changeset (grepcode drools-compiler 5.2.1
Final)...after 1 minute it gives the following error message and the thread
is open for ever...nothing happen.
INFO: KnowledgeDefinitionBuilder::::: changeset == <change-set
xmlns='http://drools.org/drools-5.0/change-set'
xmlns:xs='http://www.w3.org/2001/XMLSchema-instance'
xs:schemaLocation='http://drools.org/drools-5.0/change-set
http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-api/src/...'
> <add> <resource source='classpath:dir1/dir2/filename.drl' type='DRL' />
</add> </change-set>
(null: 1, 285): schema_reference.4:
Failed to read schema document
'http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-api/src/...',
because 1) could not find the document; 2) the document could not be read;
3) the root element of the document is not <xsd:schema>.
(null: 1, 285): cvc-elt.1: Cannot find the declaration of element
'change-set'.
Question: I copied the schemaLocation from the src, why it is not working?
please advise me?
-----
with kind regards,
--
View this message in context: http://drools.46999.n3.nabble.com/changeset-xml-schema-error-tp3676510p36...
Sent from the Drools: User forum mailing list archive at Nabble.com.
14 years, 3 months