swapnil thanx for the reply,
this is my modified code
try{
System.out.println("Initializing Fact");
URL[] urls = new URL[]{ new URL("file://"+path) };
ClassLoader loader = new URLClassLoader(urls);
Class clazz = load
Has anyone been able to compile an XLS decision table into a package via an
Ant build script?
I've scouring the documentation on the Drools Ant Compiler Task (what little
I could find) and I can't find any documentation on hw to pass configuration
into the ant task for things such as compiling XLS
Drools explicitly disables control statements in MVEL consequences,
at it is usually not a good sign. I.e., you should probably encapsulate that
check you are doing in a LHS condition (even if you have to wrap it up in an
eval()), so that the rule will not be activated and fired when it sho
hi there!
i am asking myself if there is a way to get the compiled type declaration? i
found one thread that says that guvnor can do it.
what i want to do is s.th. like that:
- writing rules using dynamic facts (type declarations)
- generating a jar with the compiled type declarations
- using t
Hello,
I am having an issue with persisting the Stateful Session in MySQL and
hopefully someone can help. I'll try and return the favor in the future.
:-)
I am running the following environment
Drools 5.1M1 (Stateful Rule Session with Persistence)
Tomcat 6
MySQL 5
When I run with a unit tes
Hi,
Wesley Akio Imamura wrote:
> Hi,
>
> I'm using this drools 5.0 scenario: agent using changeset file pointing
> to a LATEST package guvnor URL.
>
> The guvnor docs says how to start the agent resource scanning to make
> the engine change aware:
> - ResourceFactory.getResourceChangeNotifierS
Hi,
similar as
http://lists.jboss.org/pipermail/rules-users/2009-October/010742.html,
I have Maven build problems for Drools 5.1
- "The projects in the reactor contain a cyclic reference ." when including
-Ddocumentation in the Maven parameters
- java.lang.StackOverflowError when excluding "-Dd
Are there any synchronization requirements on calling
knowledgeBase.newStatelessKnowledgeSession()? Must I synchronize on
anything to make this call in a multithreaded environment?
Once I have a StatelessKnowledgeSession, must I synchronize on anything to
work with it, or is it truly stateless in
Hi All,
I am trying to compile a drool rule using MVEL dialect and getting the
following weird error.
Unable to determine the used declarations.
unbalanced braces (near code: << ... core1_entityOID); ...>>) (position:
33) : [Rule name=Legacy ETSDB Rule, agendaGroup=MAIN, salience=0,
no-loop=f
Yes, there are a few examples on how to implements a work item handler
here:
http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-process/drools-workitems/src/main/java/org/drools/process/workitem/
For example, this code allows you to invoke a service on the JBoss ESB:
public void exe
Hi Ambika,
your rules in the first rule flow group "MasterHud" set a new value on
a fact's field.
Then you expect that your rules in the second rule flow group fire.
The rule engine has no idea that some facts' fields changed until you
let the engine know via update();
Open your MasterHud deci
Has anybody ported a large number of rules from ILog JRules to Drools?
If yes, I'm very much interested in the following information:
- how did you do the migration (automatic vs. manual)?
- if automatic, how exactly (AST to AST transform, custom JRules
parser, ...)
- which features of JRules
No synchronization is needed to call newStatelessKnowledgeSession.
I'm unclear on what you mean by "work with" the stateless session. While it's
running the execute method no outside initiated threads should be interacting
with the session. If outside threads will be initiating interaction you
Hi Daniel,
you can create a new DSLR rule when you choose 'DSL Business Rule' in
the 'New Rule' dialog.
Cheers,
Jarek
dbrownell83 wrote:
> Hi all,
>
> is there a way to upload a DSL and DSLR in Guvnor?
>
> I see you can enter a new DSL, so copy-pasting is an option... but then what
> ab
Kris,
thanks for the quick reply. It makes perfect sense what you're saying about
the implementation issues on the task level. Did I get it right that e.g. a
specific task for (asynchronous) web service invocation would be implemented
very similar to the WorkItemHandler
http://www.mail-archive.com
Created a JIRA
https://jira.jboss.org/jira/browse/JBRULES-2325
Vijay
-Original Message-
From: rules-users-boun...@lists.jboss.org
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Kris Verlaenen
Sent: Tuesday, November 03, 2009 4:44 AM
To: Rules Users List; Vijay K Pandey
Markus,
You should not block the execution thread using long-running tasks (like
sleep()) in actions, as this will actively lock the resources of the
engine. You should use wait states, event nodes and/or work item nodes
if you want to perform long-running tasks. Even when implementing a
work it
> Hi there,
>
> I just began exploring the capabilities of drools and also considered its
> applicability for typical EAI scenarios.
>
> It really may be a beginner's question. But I took the simple example
> workflow and inserted a Thread.sleep() for its task action.
>
> I experienced the bloc
Got it! Thanks Kris and Mauricio for your guidance on this.
-Original Message-
From: Kris Verlaenen [mailto:kris.verlae...@cs.kuleuven.be]
Sent: Monday, November 02, 2009 6:01 PM
To: Rules Users List; Scott Stevenson
Subject: Re: [rules-users] How to execute a Process API result?
Scott,
I'm guessing that you have multiple version of javax.persistence in your
classpath (one in the server war and one on the server classpath),
causing the cast to fail. Could you verify that this might be true?
If so, simply remove the duplicate persistence-api.jar from the server
war, that should f
We might eventually support this in the future, but no plans yet. Reason
is that the static parameters are used for compile time analysis to support
automatic event lifecycle management. Variables would prevent that.
[]s
Edson
2009/11/3 Chetan Mahadev
> >>I think that you ask this q
session.getAgenda().getAgendaGroup("Phase1").setFocus();
auto-focus automatically sets the focus when the rule is activated, but
that might not be what you want...
Edson
2009/11/3 Rongala, Kanthi
> Hi,
>
> As suggested, I made the following changes, to get the desired output. I
> have
Hi all,
is there a way to upload a DSL and DSLR in Guvnor?
I see you can enter a new DSL, so copy-pasting is an option... but then what
about the DSLR?
Thanks,
Daniel
--
View this message in context:
http://old.nabble.com/Uploading-DSL-DSLR-to-guvnor-tp26160116p26160116.html
Sent from the
swapnil thanx for the reply,
this is my modified code
try{
System.out.println("Initializing Fact");
URL[] urls = new URL[]{ new URL("file://"+path) };
ClassLoader loader = new URLClassLoader(urls);
Class clazz = loader.loadClass("test.Messa
>>I think that you ask this questions because you probably have a lot of
similar rules with >>different time periods right?
Yes , I have some cases where only the time periods applied for temporal
reasoning change. I was thinking of generalizing with a single rule
instead of writing rules for ea
I don't know, we can ask Edson Terelli about that.
If you think about it, its good that the rule condition is always constant.
Because it will describe a static situation in your context.
This, will cause that when you have problems with that rule you will know
exactly what the condition is.
I thin
Thank you for the reply Kris and Satish. It really helped me to remove the
errors from eclipse. However I still face the error when I click on process
on web-console.
ERROR [[Resteasy]] Servlet.service() for servlet Resteasy threw exception
org.jboss.resteasy.spi.UnhandledException: java.lang.Ru
Check out
https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/docs/drools-flow/html/ch05.html#d0e1577
The code sample there contains a line where the transaction manager is
registered in the environment (using the Bitronix one in this case):
env.set( EnvironmentNa
Re-initialize is simply not an option. The rule engine is written so
that it knows when to re-evaluate certain constraints. Re-initializing
would mean re-evaluting all rules, and considering you could have a huge
amount of data, that could be very inefficient.
The ruleflow-group does not change
Best might indeed be to update the id to a long instead of a String.
Also check out
http://opensource.atlassian.com/projects/hibernate/browse/HB-1113
Could you open a JIRA for this?
Kris
Quoting Vijay K Pandey :
> Thanks for the reply Kris.
>
>
>
> Before posting to the forum I tested with d
Are you inserting the instance of the dynamically loaded class into the
KnowledgeBase?
i.e. session.insert(dynamicInstance);
If not the rule won't get fired.
Cheers,
Swapnil
2009/11/3 Hemanth kumar
>
> hi,
> Im working on a sample test project.
> In that im dynamically creating a class ( fac
hi,
Im working on a sample test project.
In that im dynamically creating a class ( fact) and compiling it.
here is my test project
--
mainJavaclass
public void runRule()
{
try {
Thanks.I can't understand .When process reaches a ruleSet a ruleflow-group be
set no-loop remain long time.Why is not reinitialize per reache a ruleSet?
liuzhikun
2009-11-03
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jbos
33 matches
Mail list logo