[rules-users] JBoss password required to connect a PKG via a Agent

2010-06-09 Thread mmquelo massi
Hi everybody,

I am using Guvnor 501M2 on JBoss standalone.

I am accessing the PKG resource from my java code as follows:



ResourceBundle resourceBundle = ResourceBundle.getBundle("guvnoragent");
Properties props = new Properties();
props.setProperty("drools.resource.scanner.interval",
resourceBundle.getString("poll")); ResourceChangeScanner service =
ResourceFactory.getResourceChangeScannerService();
ResourceChangeScannerConfiguration rconf =
service.newResourceChangeScannerConfiguration(props); service.configure(
rconf ); //Agent Conf KnowledgeAgentConfiguration aconf =
KnowledgeAgentFactory.newKnowledgeAgentConfiguration();
aconf.setProperty("drools.agent.scanDirectories",
resourceBundle.getString("scanDir"));
aconf.setProperty("drools.agent.scanResources",
resourceBundle.getString("scanRsc")); BufferedReader bfr=null; try { bfr =
new BufferedReader(new FileReader(new File("..Changeset.xml"))); } catch
(Exception e) { ... } //Agent configurato e con Packages guvnor aggiunti
KnowledgeAgent kagent = KnowledgeAgentFactory.newKnowledgeAgent("AgentPOC",
aconf); Resource csReader = ResourceFactory.newReaderResource(bfr);
kagent.applyChangeSet(csReader);<<

Here I get the following exception:

*Caused by: java.io.IOException: Server returned HTTP response code: 401 for
URL:
http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/Test/LATEST
* at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1187)
at org.drools.io.impl.UrlResource.grabStream(UrlResource.java:194) at
org.drools.io.impl.UrlResource.getInputStream(UrlResource.java:130) at
org.drools.agent.impl.KnowledgeAgentImpl.createPackageFromResource(KnowledgeAgentImpl.java:574)
... 7 more [2010:06:160 19:06:671:debug] KnowledgeAgent obtaining pkg
resource=[UrlResource path='
http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/Test/LATEST']
[2010:06:160 19:06:671:exception] java.lang.RuntimeException: KnowledgeAgent
exception while trying to deserialize KnowledgeDefinitionsPackage at
org.drools.agent.impl.KnowledgeAgentImpl.addResourcesToKnowledgeBase(KnowledgeAgentImpl.java:829)
at
org.drools.agent.impl.KnowledgeAgentImpl.rebuildResources(KnowledgeAgentImpl.java:627)
at
org.drools.agent.impl.KnowledgeAgentImpl.buildKnowledgeBase(KnowledgeAgentImpl.java:513)
at
org.drools.agent.impl.KnowledgeAgentImpl.applyChangeSet(KnowledgeAgentImpl.java:145)
at
org.drools.agent.impl.KnowledgeAgentImpl.applyChangeSet(KnowledgeAgentImpl.java:130)
at
com.reply.alitalia.mm.poc.engine.RuleService.exeRules(RuleService.java:74)
at Main.main(Main.java:113)


*This is why the server is asking Java the JBoss credentials!!!*

How can I pass them?
Should I define them in the changeset.xml?
If it is so where can I fine the XSD file  I guess there is a tag or an
attribute like "password" or something
that will contain date that the Agent has to send to the server
Should I remove the password check from JBoss?

Please let me know.

As far as I know there are other people on the IRC CHAT with the same issue.

Thank you 4 any help u can give me.

Bye,

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


Re: [rules-users] Drools Boot Camp: Dallas October 25th and 26th

2009-09-21 Thread mmquelo massi
I wish I could come to Dallas!
When will you come back to EU?

Will You ever come to Italy?

Is that because you do not have enough customers in italy?

Please come!

Bye.

2009/9/21 Edson Tirelli 

>
>Hello all,
>
>More info on the Drools Boot Camp that will happen co-located with the
> October Rules Fest conference in Dallas:
>
> http://blog.athico.com/2009/09/drools-boot-camp-dallas-october-25th.html
>
>Hope to see you all there,
>
>  Edson
>
> --
>  Edson Tirelli
>  JBoss Drools Core Development
>  JBoss by Red Hat @ www.jboss.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


Re: [rules-users] JRules\Drools benchmarking...

2008-05-15 Thread mmquelo massi
You r right...

I have to tell you what I have done...

I did not define a "stand-alone" benchmark like the "Manners" one.

I benchmarked a real j2ee application.

I have got jrules deployed with a resource adapter and drools deployed
with simple jars libraries plus jbrms.

Jrules uses a "bres" module which does the same trick jbrms does.

Both of them are deployed on the same AS, in the same time, same
machine (my laptop: dual core 2 duo 1.66, 2GB).

Using the inversion of control pattern I found out how to "switch the
rule engine" at run-time. So I can easily choose then rule engine to
use between drools and jrules.

Ofcourse thay have got two separate rule repositories but both of them
persist the rules on the same DB which is Derby.

The j2ee application I benchmarked sends a request object to the
current rule engine and get back a reply from it. I just measured the
elapsed time between the request and reply generation using drools
first and the jrules.

I did the measurements tens of times.

Both rule engines implement the same rules and the Drools rules (which
I personally implemented) are at least as optimized as the jrules
ones. In the Jrules version of the rules there are a lot of
"Eval(...)" blocks in the Drools version I did not use the "Eval()" at
all but I just did pattern matching.

If you want i can send you a more specific documentation but I hope
this explanation will be enough to show you that the measurements I
have done are not that bad.

In any case I noticed that after a warming-up phase, the drools engine
gives a reply back 3 times slower than the jrules engine.

The link I have sent show you something related to it, It reports the
manners execution time using drools and jrules. As you can see the
difference is a 1,5x factorso I was wrong... drools is not that
slow. In anycase seems to be slower that jrules.

Look at this:

http://blogs.ilog.com/brms/wp-content/uploads/2007/10/jrules-perf-manners.png

Massimiliano



On 5/15/08, Edson Tirelli <[EMAIL PROTECTED]> wrote:
>The old recurring performance evaluation question... :)
>
>You know that an explanation can only be made after having looked at the
> tests used in the benchmark, the actual rules used by both products,
> hardware specs, etc... so, not quite sure what answer do you want?
>
>For instance, there are a lot of people that think exactly the contrary.
> Just one example:
> http://blog.athico.com/2007/08/drools-vs-jrules-performance-and-future.html
>
>My preferred answer is still:
>
> "In 99% of the applications, the bottleneck is IO: databases, network, etc.
> So, test your use case with both products, make sure it performs well
> enough, add to your analysis the products feature set, expressiveness power,
> product flexibility, cost, professionals availability, support quality, etc,
> and choose the one that best fits you."
>
>That is because I'm sure, whatever your rules are, in whatever product
> you try them, they can be further optimized by having a product expert
> looking into them. But what is the point?
>
>Cheers,
>   Edson
>
>
>
> 2008/5/14 mmquelo massi <[EMAIL PROTECTED]>:
>
>>
>> Hi everybody,
>>
>> I did a benchmark on Drools\Jrules.
>>
>> I found out that drools is about 2,5-3 times slower than Jrules.
>>
>> How comes?
>>
>> The results I got are quite similar to the ones in:
>>
>>
>> http://images.google.com/imgres?imgurl=http://blogs.ilog.com/brms/wp-content/uploads/2007/10/jrules-perf-manners.png&imgrefurl=http://blogs.ilog.com/brms/category/jrules/&h=516&w=722&sz=19&hl=it&start=1&um=1&tbnid=YBqwC0nwaSLxwM:&tbnh=100&tbnw=140&prev=/images%3Fq%3Dbrms%2Bbencmark%26um%3D1%26hl%3Dit
>>
>> Any explanations?
>>
>> Thank you.
>>
>> Bye
>>
>> Massi
>>
>> ___
>> rules-users mailing list
>> rules-users@lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/rules-users
>>
>>
>
>
> --
> Edson Tirelli
> JBoss Drools Core Development
> Office: +55 11 3529-6000
> Mobile: +55 11 9287-5646
> JBoss, a division of Red Hat @ www.jboss.com
>
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] JRules\Drools benchmarking...

2008-05-14 Thread mmquelo massi
Hi everybody,

I did a benchmark on Drools\Jrules.

I found out that drools is about 2,5-3 times slower than Jrules.

How comes?

The results I got are quite similar to the ones in:

http://images.google.com/imgres?imgurl=http://blogs.ilog.com/brms/wp-content/uploads/2007/10/jrules-perf-manners.png&imgrefurl=http://blogs.ilog.com/brms/category/jrules/&h=516&w=722&sz=19&hl=it&start=1&um=1&tbnid=YBqwC0nwaSLxwM:&tbnh=100&tbnw=140&prev=/images%3Fq%3Dbrms%2Bbencmark%26um%3D1%26hl%3Dit

Any explanations?

Thank you.

Bye

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


[rules-users] RuleAgent DOES NOT connect to the JBRMS....WHYYY?????? :-(

2008-04-20 Thread mmquelo massi
Hi there,

First of all I have got to say that I tried the following :

Jboss 4.0.5
Jboss 4.2.2
jbrms 4.0.2
jbrms 4.0.3
jbrms 4.0.4
jbrms 4.0.x (SVN first days of march)

I tried all the possible combinations between those above.

Then let me show u my scenario.

I have got a client which sends a "contract id"  to a queue.

Then an MDB is invoked to pass that "id" to an deserializer which builds up
a "contract object".

Once I have got the "contract object" I pass it to Drools in order
to perform some reasoning over it and to get back a reply from
the engine.

*Let me show you how my application "Uses drools":*


 *public* *static* *synchronized* *final* WorkingMemoryEventManager
getSession(*boolean* statefull) {

 *log*.info("Getting Agent Singleton from: "+Thread.*currentThread*
().getName());

 *if* ( *ruleagent* == *null* ) {

*try* {

*ruleagent* = *BRMS_RuleAgent*();

  } *catch* (Exception e) {

e.printStackTrace();

}

}

 *if* (statefull){

*rulebase* = *ruleagent*.getRuleBase();

*session* = *rulebase*.newStatefulSession();

}

*else* {

*rulebase* = *ruleagent*.getRuleBase();

*session* = *rulebase*.newStatelessSession();

}

*log*.info("Releasing Agent Singleton from: "+Thread.*currentThread*
().getName());

*return* *session*;

}



As You can see I can get either a statefull session or a stateless one in a
thread-safe way.

Let's say i always get a stateless one.

*The Ruleagent is used as follows:*

*private* *static* RuleAgent BRMS_RuleAgent() *throws* Exception {

RuleAgent agent = RuleAgent.*newRuleAgent*("/brmsdeployedrules.properties");


//add the package to a rulebase (deploy the rule package).

*return* agent;

}

*I configured the ruleagent to "newInstance=true", with a refresh of 5 secs
and localcachedir=.*

So, everytime the contract comes to be evaluated i call a *getSession*()  in
order

to load the rulebase.

In EVERY AServer and with EACH JBRMS version, the the RuleAgent seems can't
connect

to the rulebase and so it simply loads the rules from the cache.

Furthermore if I change the jbrms rules, the RuleAgent really DOES NOT CARE

about it and we know that after 5 seconds it should AUTOMATICALLY refresh
the

rulebase but at the end IT DOES NOT DO ANYTHING!

*After a while I also get back the following error message:*

*11:17:06,219 ERROR [[/drools-jbrms]] Exception while dispatching incoming
RPC call
11:17:09,997 ERROR [[GWTRemotingServlet]] Servlet.service() for servlet
GWTRemotingServlet threw exc
eption
java.lang.OutOfMemoryError: PermGen space
11:17:10,005 INFO  [Log4jService$URLWatchTimerTask] Configuring from URL:
resource:jboss-log4j.xml
11:17:10,890 ERROR [CoyoteAdapter] An exception or error occurred in the
container during the reques
t processing*

*And after it the AS REALLY CRASHES and one more of my hairs BECOMES WHITE
 :( :(*

*To be more clear let me show you what happens if I execute drools*

*with jboss 405 and jbrms 404, without the ruleagent cache activated:*

*11:50:18,275 INFO  [DroolsServiceProvider] Getting Agent Singleton from:
JMS SessionPool Worker-0
11:50:18,331 ERROR [STDERR] RuleAgent(RuleAgentMassi) INFO (Sat Aug 04
11:50:18 CEST 2007): Configuring with newInstance=true, secondsToRefresh=5
11:50:18,336 ERROR [STDERR] RuleAgent(RuleAgentMassi) INFO (Sat Aug 04
11:50:18 CEST 2007): Configuring package provider : URLScanner monitoring
URLs:  
**http://127.0.0.1:8080/drools-jbrms/org.drools.br*
*ms.JBRMS/package/com.spyd.rules.initAction/initAction
**http://127.0.0.1:8080/drools-jbrms/org.drools*
*.
brms.JBRMS/package/com.spyd.rules.ConsolidateData/ConsolidateData **
http://127.0.0.1:8080/droolsjbrms*
*
/org.drools.brms.JBRMS/package/com.spyd.rules.DetermineConnection/DetermineConnection
11:50:19,840 INFO  [STDOUT] PackageName: com.spyd.rules.initAction
11:50:19,841 INFO  [STDOUT] PackageVersion: initAction
11:50:19,841 INFO  [STDOUT] PackageIsLatest: false
11:50:20,559 ERROR [STDERR] RuleAgent(RuleAgentMassi) EXCEPTION (Sat Aug 04
11:50:20 CEST 2007): org
.drools.base.dataproviders.MVELDataProvider; local class incompatible:
stream classdesc serialVersio
nUID = 6980593313545470049, local class serialVersionUID =
1901006343031798173. Stack trace should f
ollow.11:50:20,563 ERROR [STDERR] java.io.InvalidClassException:
org.drools.base.dataproviders.MVELDataPro
vider; local class incompatible: stream classdesc serialVersionUID =
6980593313545470049, local class serialVersionUID = 1901006343031798173
11:50:20,564 ERROR [STDERR] at
java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:562)
11:50:20,565 ERROR [STDERR] at
java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:

Re: [rules-users] the "not in" expression does not work...have u ever had this issue before?

2008-04-11 Thread mmquelo massi
Sorry Guys,

It was my fault!

The "*not in*" sugar operator DOES WORK!!!

I had a problem with the decision table values...

So...never mind. No JIRAs for it.

Thank You anyway.

Massi

On Wed, Apr 9, 2008 at 2:49 PM, Edson Tirelli <[EMAIL PROTECTED]> wrote:

>
>No, I did not had this problem before. Can you please open a JIRA and
> add a self contained test to reproduce the problem?
>
>Thanks,
>     Edson
>
> 2008/4/9 mmquelo massi <[EMAIL PROTECTED]>:
>
> >
> > Hi there!
> >
> > I am using  a svn-built version of drools-core.jar and
> > drools-decisiontable.jar runtime lib (3rd March 2008).
> >
> > I have got the following "Decision table" generated row:
> >
> >
> > *#From row number: 25*
> >
> > *rule "Otherwise_25"*
> >
> > **
> >
> > *no-loop true*
> >
> > *ruleflow-group "Convert"*
> >
> > *when*
> >
> > *  
> > cw:ContractWrapper(mycontract.serviceDetail.name<http://mycontract.servicedetail.name/>
> > not in ("STRING 1", "STRING 2", "STRING 3", "STRING 4", "STRING 5",
> > null))*
> >
> > *then*
> >
> > *  ...*
> >
> > *end*
> >
> >  The point is... despite of a ContractWrapper fact that DOES NOT
> > encapsulate a
> >
> >  nested 'name' whose value is in the above set, the rule does not fire
> > anyway.
> >
> > For instance, if i have got a fact (in working memory) cw1 of class
> > ContractWrapper with 
> > cw1.mycontract.serviceDetail.name<http://cw1.mycontract.servicedetail.name/>=
> >  "
> > *STRING *6",
> >
> > i expect the rule "Otherwise_25" to fire BUT IT ACTUALLY DOES NOT!
> >
> > Furthermore if i omit the 'not' operator and i insert a fact cw2 with
> > cw2.mycontract.serviceDetail.name<http://cw2.mycontract.servicedetail.name/>=
> >  "
> > *STRING *2",
> >
> > the RULE DOES fire!
> >
> > For this reason there should be something wrong with the "not" operator.
> >
> > but I do not know what exactly!
> >
> > By the time the rule is generated from an .xls decision table
> >
> > i really would not express the "otherwise" rule simply using
> >
> > a sequence of "!=" and "and" operators (which would be a workaround)
> >
> >  If I did so the decisiontable would appear "too technical" and
> >
> > not suitable for a business user.
> >
> > Have u ever had this issue before?
> >
> > I have also tried to omit the "null" value from the set but thait is not
> >
> > the problem.
> >
> > Please let me know.
> >
> > Massi
> >
> > ___
> > rules-users mailing list
> > rules-users@lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/rules-users
> >
> >
>
>
> --
> Edson Tirelli
> JBoss Drools Core Development
> Office: +55 11 3529-6000
> Mobile: +55 11 9287-5646
> JBoss, a division of Red Hat @ www.jboss.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


[rules-users] the "not in" expression does not work...have u ever had this issue before?

2008-04-09 Thread mmquelo massi
Hi there!

I am using  a svn-built version of drools-core.jar and
drools-decisiontable.jar runtime lib (3rd March 2008).

I have got the following "Decision table" generated row:


*#From row number: 25*

*rule "Otherwise_25"*

**

*no-loop true*

*ruleflow-group "Convert"*

*when*

*  cw:ContractWrapper(mycontract.serviceDetail.name not in ("STRING 1",
"STRING 2", "STRING 3", "STRING 4", "STRING 5", null))*

*then*

*  ...*

*end*

 The point is... despite of a ContractWrapper fact that DOES NOT encapsulate
a

 nested 'name' whose value is in the above set, the rule does not fire
anyway.

For instance, if i have got a fact (in working memory) cw1 of class
ContractWrapper with cw1.mycontract.serviceDetail.name = "*STRING *6",

i expect the rule "Otherwise_25" to fire BUT IT ACTUALLY DOES NOT!

Furthermore if i omit the 'not' operator and i insert a fact cw2 with
cw2.mycontract.serviceDetail.name = "*STRING *2",

the RULE DOES fire!

For this reason there should be something wrong with the "not" operator.

but I do not know what exactly!

By the time the rule is generated from an .xls decision table

i really would not express the "otherwise" rule simply using

a sequence of "!=" and "and" operators (which would be a workaround)

 If I did so the decisiontable would appear "too technical" and

not suitable for a business user.

Have u ever had this issue before?

I have also tried to omit the "null" value from the set but thait is not

the problem.

Please let me know.

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


[rules-users] What the.... is happening?

2008-04-04 Thread mmquelo massi
Sorry guys,

but I can't understand why u released 4.0.5 a couple of weeks ago, then u
suddenly released
a brand new "4.0.6" release few days ago (which I promptly downloaded) and
now u put back again
the "4.0.4"???

*Why???*

What is the stable one

Does the svn is working?? Should we build from repository or shouldn't we?

Looking forward to hearing any news on this matter

Thank you anyway.

Bye.

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


Re: [rules-users] Re: deadlock when rules get updated?

2008-02-23 Thread mmquelo massi
I meant that I called the rule agent in such a way  that I call it only
once.

I put it in a singleton.

As far as I know the "update in place" works fine.

Bye,

Massi

On Fri, Feb 22, 2008 at 7:17 PM, Zoltan Farkas <[EMAIL PROTECTED]>
wrote:

> I use the url to get the rulebase, I supply a localCacheDir=. with a local
> folder only to cache the rulebase.
> The url is from a deployed package via the drools JBRMS.
>
> I am not sure I understand what you mean by "how do u implement the
> ruleagent"
>
> I use:  org.drools.agent.RuleAgent and I did not implement that class...
>
> I suspect there is something wrong with the "update in place"
> implementation, or I am doing something really wrong :-)
>
>
> --zoly
>
> ________
> From: [EMAIL PROTECTED] [mailto:
> [EMAIL PROTECTED] On Behalf Of mmquelo massi
> Sent: Friday, February 22, 2008 12:31 PM
> To: Rules Users List
> Subject: [rules-users] Re: deadlock when rules get updated?
>
>
> Hi,
>
> Sorry to reply with another question but I need it to ask  u...
>
> Ho do u define the localDir???
>
> I need to use it as well and I do not know how to use it.
>
> Should I put the .pkg file somewhere in Jboss dir?
>
> As far as concerned your issue how do u implement
> the ruleagent???
>
> I do the same steps in order to get the rulebase but I encapsulated
> everything within a singleton "getSession()" method just
> like the "drools insurance example".
>
> Did u do the same??
>
> Let me know.
>
> Massi
>
>
> ___
> 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


[rules-users] Deploying style and Rule Sessions...

2008-02-23 Thread mmquelo massi
Hi there,

I know... I am a "question generator" sorry about that!

Just a couple of questions on Drools 4.0.4 BRMS:

1) Is a statefull session necessary in order to use a ruleflow?
Can we use stateless sessions as well?

2) What kind of RuleAgent configuration do we need  to provide
in order to adopt a "push style" (par 7.1.5.3.2) rules deploy?
Do we first have to set the newInstace property to true?
I guess we do because setting newInstance to true we are
constrained to call the gerRuleBase() method
in order to get the new rules from the BRMS.

In this way the BRMS would "push" the new rules every "poll"
seconds, but we would use them only when we decide to call
getRuleBase() method. In this way we would have control on
the Rule update, wouldn't we???


Thank You as usual guys!

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


[rules-users] Re: Closing connections with BRMS\JackRabbit Repository

2008-02-22 Thread mmquelo massi
Ah... one more thing

Now It gives me the same exception although I restart the pc or
I define a different datasource.

What the hell is happening?

With direct jdbc everything woks!
why?

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


[rules-users] Re: deadlock when rules get updated?

2008-02-22 Thread mmquelo massi
Hi,

Sorry to reply with another question but I need it to ask  u...

Ho do u define the localDir???

I need to use it as well and I do not know how to use it.

Should I put the .pkg file somewhere in Jboss dir?

As far as concerned your issue how do u implement
the ruleagent???

I do the same steps in order to get the rulebase but I encapsulated
everything within a singleton "getSession()" method just
like the "drools insurance example".

Did u do the same??

Let me know.

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


[rules-users] Re: Re: Closing connections with BRMS\JackRabbit Repository

2008-02-22 Thread mmquelo massi
Thank You Jeffrey, but I did as u told me but anything changed


Here is the DS definition:

*
  jdbc_XA/Drools_Rep
oracle.jdbc.driver.OracleDriver
jdbc:oracle:thin:@localhost:1521:xe
...
...

org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter


  
 Oracle9i
  
 false
*


... I got back the same exception even with the local-tx Datasource!!


*17:35:33,430 INFO [STDOUT] PackageName: com.spyd.rules.Scoring*

*17:35:33,430 INFO [STDOUT] PackageVersion: Scoring*

*17:35:33,430 INFO [STDOUT] PackageIsLatest: false*

**

*(I THINK THIS ONE DOES NOT REALLY MATTER)*

*17:35:43,559 INFO [STDOUT] ERROR 22-02 17:35:43,558 (**
Contexts.java:flushAndDestroyContexts:335**) could not discover transaction
status*

**

*17:35:43,560 INFO [CachedConnectionManager] Closing a connection for you.
Please close them yourself:
[EMAIL PROTECTED]

*java.lang.Throwable: STACKTRACE*

*at
org.jboss.resource.connectionmanager.CachedConnectionManager.registerConnection
(**CachedConnectionManager.java:290**)*

*at
org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection
(**BaseConnectionManager2.java:417**)*

*at
org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection
(**BaseConnectionManager2.java:842**)*

*at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(**
WrapperDataSource.java:88**)*

*at
org.apache.jackrabbit.core.persistence.db.JNDIDatabasePersistenceManager.getConnection
(**JNDIDatabasePersistenceManager.java:77**)*

*at
org.apache.jackrabbit.core.persistence.db.DatabasePersistenceManager.initConnection
(**DatabasePersistenceManager.java:730**)*

*at
org.apache.jackrabbit.core.persistence.db.DatabasePersistenceManager.reestablishConnection
(**DatabasePersistenceManager.java:806**)*

*at
org.apache.jackrabbit.core.persistence.db.DatabasePersistenceManager.executeStmt
(**DatabasePersistenceManager.java:852**)*

*at
org.apache.jackrabbit.core.persistence.db.DatabasePersistenceManager.exists(
**DatabasePersistenceManager.java:673**)*

*at
org.apache.jackrabbit.core.state.SharedItemStateManager.hasNonVirtualItemState
(**SharedItemStateManager.java:1104**)*

*at org.apache.jackrabbit.core.state.SharedItemStateManager.hasItemState(**
SharedItemStateManager.java:289**)*

*at org.apache.jackrabbit.core.state.LocalItemStateManager.hasItemState(**
LocalItemStateManager.java:180**)*

*at org.apache.jackrabbit.core.state.XAItemStateManager.hasItemState(**
XAItemStateManager.java:252**)*

*at org.apache.jackrabbit.core.state.SessionItemStateManager.hasItemState(**
SessionItemStateManager.java:199**)*

*at org.apache.jackrabbit.core.ItemManager.itemExists(**ItemManager.java:258
**)*

*at org.apache.jackrabbit.core.NodeImpl.hasProperty(**NodeImpl.java:2708**)*

*at org.drools.repository.PackageItem.getCompiledPackageBytes(**
PackageItem.java:666**)*

*at org.drools.brms.server.files.FileManagerUtils.loadBinaryPackage(**
FileManagerUtils.java:146**)*

*at sun.reflect.NativeMethodAccessorImpl.invoke0(**Native Method**)*

*at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)*

*at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)*

*at java.lang.reflect.Method.invoke(Unknown Source)*

*at org.jboss.seam.util.Reflections.invoke(**Reflections.java:21**)*

*at org.jboss.seam.intercept.RootInvocationContext.proceed(**
RootInvocationContext.java:31**)*


I am quite annoyed with this, cause when I define a direct
JDBC connection to the Oracle Drools Repository everything
works as expected and it is really Fast as well!

So... Why do I get this kind of issues once I use the Datasource

Can You advise me any way to (at least) reduce the exception
waiting time?

Let me know.

Thank again

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


[rules-users] Closing connections with BRMS\JackRabbit Repository

2008-02-22 Thread mmquelo massi
Hi guys!

I have got JBoss 4.2.2, DROOLS BRMS 4.0.4 and Oracle 10g XE as RDBMS.

I defined an Oracle XA Datasource Drools Repository as follows:

*
 jdbc_XA/Drools_Rep

false
oracle.jdbc.xa.client.OracleXADataSource

jdbc:oracle:thin:@//localhost:1521/xe
...
...

org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter


   
   
   
   *
*
   
org.jboss.resource.adapter.jdbc.vendor.OracleValidConnectionChecker
*
*
  
 Oracle9i
  
 false
*

This repository is managed with JackRabbit.

So i defined the "repository.xml" telling jackrabbit that I want
to persist the rules into the Oracle XA Datasource I previously defined:

*
 
 
 
 
*

The problem comes out each time I reload the rulebase from
the BRMSeach time the RuleAgent wants to load
a rulebase (from the XA datasource ) the following exception is
thrown and the execution stops for 4-5 seconds:


*12:29:36,170 INFO [CachedConnectionManager] Closing a connection for you.
Please close them yourself:
[EMAIL PROTECTED]

*java.lang.Throwable: STACKTRACE*

*at
org.jboss.resource.connectionmanager.CachedConnectionManager.registerConnection
(**CachedConnectionManager.java:290**)*

*at
org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection
(**BaseConnectionManager2.java:417**)*

*at
org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection
(**BaseConnectionManager2.java:842**)*

*at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(**
WrapperDataSource.java:88**)*

*at
org.apache.jackrabbit.core.persistence.db.JNDIDatabasePersistenceManager.getConnection
(**JNDIDatabasePersistenceManager.java:77**)*

*at
org.apache.jackrabbit.core.persistence.db.DatabasePersistenceManager.initConnection
(**DatabasePersistenceManager.java:730**)*

*at
org.apache.jackrabbit.core.persistence.db.DatabasePersistenceManager.reestablishConnection
(**DatabasePersistenceManager.java:806**)*

*at
org.apache.jackrabbit.core.persistence.db.DatabasePersistenceManager.executeStmt
(**DatabasePersistenceManager.java:852**)*

*at
org.apache.jackrabbit.core.persistence.db.DatabasePersistenceManager.exists(
**DatabasePersistenceManager.java:673**)*

*at
org.apache.jackrabbit.core.state.SharedItemStateManager.hasNonVirtualItemState
(**SharedItemStateManager.java:1104**)*

*at org.apache.jackrabbit.core.state.SharedItemStateManager.hasItemState(**
SharedItemStateManager.java:289**)*

*at org.apache.jackrabbit.core.state.LocalItemStateManager.hasItemState(**
LocalItemStateManager.java:180**)*

*at org.apache.jackrabbit.core.state.XAItemStateManager.hasItemState(**
XAItemStateManager.java:252**)*

*at org.apache.jackrabbit.core.state.SessionItemStateManager.hasItemState(**
SessionItemStateManager.java:199**)*

*at org.apache.jackrabbit.core.ItemManager.itemExists(**ItemManager.java:258
**)*

*at org.apache.jackrabbit.core.NodeImpl.hasProperty(**NodeImpl.java:2708**)*

*at org.drools.repository.PackageItem.getCompiledPackageBytes(**
PackageItem.java:666**)*

*at org.drools.brms.server.files.FileManagerUtils.loadBinaryPackage(**
FileManagerUtils.java:146**)*

*at sun.reflect.NativeMethodAccessorImpl.invoke0(**Native Method**)*

*at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)*

*at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)*

*at java.lang.reflect.Method.invoke(Unknown Source)*

*at org.jboss.seam.util.Reflections.invoke(**Reflections.java:21**)*

*at org.jboss.seam.intercept.RootInvocationContext.proceed(**
RootInvocationContext.java:31**)*

*at org.jboss.seam.intercept.SeamInvocationContext.proceed(**
SeamInvocationContext.java:56**)*

*at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(**
RollbackInterceptor.java:31**)*

*at org.jboss.seam.intercept.SeamInvocationContext.proceed(**
SeamInvocationContext.java:68**)*

*at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(**
BijectionInterceptor.java:46**)*

*at org.jboss.seam.intercept.SeamInvocationContext.proceed(**
SeamInvocationContext.java:68**)*

*at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(**
MethodContextInterceptor.java:42**)*

*at org.jboss.seam.intercept.SeamInvocationContext.proceed(**
SeamInvocationContext.java:68**)*

*at org.jboss.seam.security.SecurityInterceptor.aroundInvoke(**
SecurityInterceptor.java:40**)*

*at org.jboss.seam.intercept.SeamInvocationContext.proceed(**
SeamInvocationContext.java:68**)*

*at org.jboss.seam.intercept.RootInterceptor.invoke(**RootInterceptor.java
:106**)*

*at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(**
JavaBeanInterceptor.java:155**)*

*at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(**
JavaBeanInterceptor.java:91**)*

*at
org.drools.brms.server.files.FileManagerUtils_$$_javassist_1.loadBinaryPackage
(FileManagerUtils_$$_javassist_1.java)*

*at org.drools.brms.server.files.PackageDeploymentServlet.doGet(**
PackageDeploymentServlet.java:99**)*

*at

[rules-users] RuleFlows and Working Memory..

2008-02-19 Thread mmquelo massi
Hi there,

I have got a couple of questions about ruleflows and woking memory.

What does happen each time I modify a fact within a ruleflow node without
calling update(fact)?

What does happen between the node where I
apllied the modifications and the next activation node?

I guess that between one ruleflow node and the next one, all the modified
facts (in the previous node) are automatically updated (without explicitly
call "update()")
so that once the next node has been activated,
the corresponding shadow facts result synchronized with the actual facts.

Am I wrong?

Should I call "update()" instead?

My scenario...

I have got one node where I modify a fact, but I do not
want to call the update() because otherwise I would generate
a "ping-pong" loop between two decision tables that are
placed in the same rule flow node. I think I could use
the "no-active" attribute but I can't cause I can't specify
it in a Decision table.

Another workaround could be the "clearAgenda()" method
but It is not accesible from the "drools" (the helper) object...
How can I call it from the decision table or within an "action" ruleflow
node?

Maybe there is a third solution I should "update()" all the
fact from an action node ...but in this case I would need
to call an "update()" method that allowed me to update
"all the facts of a given Class", Is That Possible in drools?

I took a look on the API docs but some methods are not explained.

Looking forward to hearing from you!

Thank You again!

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


[rules-users] Globals asserted as facts... how to modify them...

2008-02-16 Thread mmquelo massi
Hi everybody,

I followed all the topics about globals and the fact that they are
immutables.

I also understood that once we decide to reason over globals, it's
time we no more use them and we start to use simple WM facts.

Now...

I tell you my scenario.

I have got two globals.

A "request" global and a "reply" global. The first one is a "Request" java
instance
and the second one is a "Reply" java instance. They belong to the Object
model
I designed.

My application makes a request to the rule engine passing it a "request" as
global,
and get back a reply from it receiving a modified "reply"  global.

I use a ruleflow to execute the rules.

I think everything would be perfect and smooth if I had not the need to
reason
over the reply during the rule session

*That's the point!*

I do not just need to modify the "reply" global in order to get the final
value *outside*
*the rule engine*, but I DO need to reason over it *INSIDE* the rule
session.

*So what should I do in order to reason over the reply INSIDE AND
OUTSIDE *
*the Rule Session?*

Should I insert the "reply" global into the WM?

Let assume I do that, what happen if I pass the "reply" global to
a drools function which alters the "reply"?

Imagine a rule as follows and imagine I previously inserted the "reply"
global into the WM:


...
global my.object.model.Reply reply
...
rule "addcriminal_2_reply"
  when
$p: Person(job=="criminal")
  then
 addCriminaltoReply(reply, $p );
end


Will this alteration affect the corresponding Reply() fact in the WM as
well?


Now let see this other rule:

(Same, let imagine i previously inserted: insert(reply); )

global my.object.model.Reply reply

 rule "FullFill_replyCode"
  when
 $r: Reply(code=="john.wayne") from reply
  then
 $r.code.name = john;
 $r.code.lastname = wayne;
end


If I execute this rule in a ruleflow, do i need to "update($r)"
in order to get the modified $r value in the next ruleflow node?

And what happens to the global??? Will it get modified as well?

I am sure you can help me.

Bye bye.

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


[rules-users] Duplicated classes in JBOSS\JBRMS...

2008-02-02 Thread mmquelo massi
Hi there...

I post something that I just wrote in the irc channel...I hope u can help
me.
I use JBoss 4.2.2 and drools 4.0.4 (IDE and jbrms).

I deployed my rule assets into the jbrms (technical rules, business rules,
decision tables, ruleflows, object model, DSLs).

Then i deployed my J2EE application into the same JBoss.

My J2ee module is an .ear file which contains a Web-app, some EJBs, the
Drools fundamental libs and a class which invokes the RuleAgent.

The  .ear file contains the object model as well.

So I have got the object model duplicated. One instance in the jbrms
and the other one in the .ear file.

For this reason I get back an "InvalidClassException" from the RuleAgent
each time  I  call the ruleagent itself.

So...

If I would be able to avoid deployin' the Obj Model into the brms
I would have just one instance of the Obj model... I would have
just the .ear object model.

Do u know how Could I do it?

Thank You anyway.

Bye bye.

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


[rules-users] Sentence and sub-sentences in DSL...

2008-01-19 Thread mmquelo massi
Another doubt on DSLs...

I know that we must specify most restrictive expressions first and less
restrictive expressions then...

But...

Look at the following .dsl defs:

[consequence][]Do this with a customer of New York =
[consequence][]Do this with a customer=

In Eclipse, when a press CTRL+SPACE I just get a list with only the 1st
sentence!

Why???

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


[rules-users] DSL Editor in Eclipse Drools Plug-in...

2008-01-19 Thread mmquelo massi
Hi Guys,

As far as I know the drools parser will parse the .dsl file content starting
from the 1st line going toward the last one.

So the order we follow to specify the "Language expression" does matter!

The problem is that the DSL Editor in eclipse does not allow us to rank the
dsl sentences we define.

It just fill the .dsl file following the insertion order. Once we have
defined a new sentence
we can't do anything to change the order. If we want to change the order we
have to
open "manually" the file and manage ourselves the .dsl content.

Is there any workaround to this?
Will u fix it?

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


Re: [rules-users] JBRMS 4.0.4 issues

2008-01-18 Thread mmquelo massi
Hi pope :-P   (joking...joking)

I do not understand  what you wrote here:

*5. Unzip the jboss_jsf_libs file and copy the all the files from the lib
directory of your lib directory of your Application Server installation. If
you have paths to these files already set in your environment, make sure to
update the paths to point to the new JAR files in the lib directory of the
Application Server installation.*
What should I do?

Where should I put the .zip file content?

I checked the "\lib" and none of the files you mentioned are in
there. Then I checked the "\server\default\deploy\jboss-
web.deployer\jsf-libs" and I found all the files contained in the .zip file
you told us.

So... Should I overwrite the "jsf-libs" directory or should I delete it and
copy the .zip content into the "\lib" dir?
Thank You anyway Fernando.

Massi


On Jan 18, 2008 1:49 AM, Fernando Meyer <[EMAIL PROTECTED]> wrote:

> Hi peeps,
>
> After we received a couple of feedbacks about 4.0.4 drools-jbrms, I did
> some tests against JBoss 4.2.2 and Tomcat 6.0.x and I have a resolution
> workaround
> please check http://wiki.jboss.org/wiki/Wiki.jsp?page=JBRMSjsfdependenciesfor 
> further explanations
>
> I'm waiting your feedbacks about this problem
>
> Thanks
>
> --
> Fernando Meyer http://fmeyer.org
> JBoss Rules Core Developer
> [EMAIL PROTECTED]
> ___
> 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


[rules-users] Multiple DSL sources

2008-01-17 Thread mmquelo massi
Hi everybody,

I was wondering whether is possible to add multiple DSL sources to a single
rule package.

If we look to the *PackageBuilder* methods we do not find any method
which allows us to add more than one DSL source per DRL reader.

I would like to be able to do something like:


*package myRulePackage*
*expander DSLsource1;*
*expander DSLsource2;*
**
*rule "myMultipleDSLRule"*
*when*
*#*
*then*
*#*
*end*
**
**
*.*
**
*rule*
*.*
*end*



Is That possible??

In case It weren't possible, Would It be any workaround to this?

I guess I could workaround this using the class *DefaultExpanderResolver*
but I have got no idea on the way to do it.

Can You suggest me any way to do it?

Does anybody have ever had the same issue?

Let me know.

Thank You anyway.

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


[rules-users] Splitted Sentences in DSL...

2008-01-15 Thread mmquelo massi
Hi guys,

As u can notice in the
http://labs.jboss.com/file-access/default/members/drools/images//templatebaseddsl2.png
DSL
pop-up Menu,
we have got the sentence "Escalate the ticket" splitted into 3 different
sub-sentences:

1. Escalate
2. Escalate the
3. Escalate the ticket

When I open "*org.drools.examples.TroubleTicketWithDSL.dslr*" from the "*
drools-examples/drools-examples-drl/src/main/rules/org/drools/examples*"
directory and i push "CTRL+SPACE" in Eclipse Europa 3.3, then the pop-up
menu I get back shows just one of the sentences above.

It just shows: "Escalate the ticket".

I expected to see all the above sentences, as I saw in the JBoss Drools
Features page (
http://labs.jboss.com/file-access/default/members/drools/images//templatebaseddsl2.png
).

So Why Do I get a different menu with just one sentence?

Is the .dsl file referred from the .drls in the "feature page" different
from the following one?

*[condition][]There is a customer ticket with status of "{status}"=customer
: Customer( )   ticket : Ticket( customer == customer, status == "{status}"
)
[condition][]There is a "{subscription}" customer with a ticket status of
"{status}"=customer : Customer(subscription == "{subscription}") ticket :
Ticket( customer == customer, status == "{status}")
[consequence][]Log "{message}"=System.out.println("{message} ");
[consequence][]Escalate the ticket=ticket.setStatus("Escalate");
update(ticket);
[consequence][]Send escalation email=sendEscalationEmail( customer, ticket
);*
*One more question.*

I have got no idea on the "Object" column which accours in the DSL Editor.
We have got "Language Expression", "", "*Object*" and "Scope".

What does "*Object*" stand for?

Thank You for any help you can give me.

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


[rules-users] Re: The "Object" field in the DSL IDE Editor

2008-01-14 Thread mmquelo massi
Sorry Guys But I do not see what "OBJECT" stand for in the DSL Editor?

I guess is something really simple but I dunno what!!

Is there anything in the DSL component that allows the user
to refer to a fact that I asserted somewhere else?

Is "Object" something like that?

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


Re: [rules-users] Checking fact "id"

2008-01-09 Thread mmquelo massi
Thank You guys.

I worked it out. I have the contracts (main and related) encapsulated within
a parent object.
So, once I did the assertion I checked the "pattern matched" fact agains the
parent object.

Thank You again.

This ML is always usefull as usual!

I really hope to be usefull as well to the few I can answer back.

Bye

Massi



On Jan 7, 2008 9:27 PM, Mark Proctor <[EMAIL PROTECTED]> wrote:

> rules are just querries over data, like a database view.
> Ask yourself this. If you asserted those two objects, A1 and A2, into a
> database and you had two views V1 and V2. How would you make V1 select A1
> and V2 select A2?
>
> When you have the  answer for  that, it'll apply to Drools too.
>
> Mark
> Massi Gmail wrote:
>
>   ok
>
> But i think I do not need to differentiate them.
>
> I try to explain it better.
>
> I have got a set of "Contract" class Facts. All of them inserted into the
> working memory.
>
> But Just one of them is the "main contract", all the others all "related
> contracts".
>
> So , when i write a rule I need to distinguish between a "main contract"
> (which is unique along the session)
> and a "related contract".
>
> I should write rules like the followings:
>
>
> *when*
> *$mc: Contract() from maincontract*
> *then*
> *#rule fired over "the" main contract*
> *end*
> **
> *when*
> *   $rc: Contract() from relatedcontract*
> *then*
> *   #rule fired over "a" related contract*
> *end*
>
> I think the only solution to do that is to make "maincontract" and
> "relatedcontracr" globals.
> But, if I make them globals, then the rule engine will not be notified
> about their changes and
> I do want it to be notified about it.
>
> Should I make them "globals" and "facts" as well?
> Can globals be inserted into the WM as well? Is it too horrible? :D
>
> Thank u anyway.
>
> Massi
>
>
> - Original Message -
> *From:* Edson Tirelli <[EMAIL PROTECTED]>
> *To:* Rules Users List 
> *Sent:* Saturday, January 05, 2008 12:00 PM
> *Subject:* Re: [rules-users] Checking fact "id"
>
>
>What attribute differentiates A1 from A2?
>Such scenarios usually are solved by an additional constraint...
>
>[]s
>Edson
>
> 2008/1/4, Massi Gmail < [EMAIL PROTECTED]>:
> >
> >
> > Hi guys,
> >
> > Now I am strugglin' with "fact id checking"  or whatever we can call
> > it :D
> >
> > Let's take into account the followong scenario:
> >
> > I have class A (it's just a name) javabeans to be inserted into the WM.
> >
> > I define two objects of class A: A1 and A2.
> >
> > Somewhere I do "insert(A1)" and "insert(A2)" ( let's say I do it in the
> > same package of R1 and R2..see below...)
> >
> > Then I define two different rules R1 and R2 that reason over class "A"
> > facts  (let's say R1 and R2 are in the same package) .
> >
> > The point is  I want R1 to fire only on A1 and R2 only on A2.
> >
> > Is that possible in drools? Is there a sort of "fact id" I can reason
> > over?
> >
> > I do not think globals will be of any help, cause in the guide i have
> > read that globals should never be used within LHS.
> > We should never reason over globals.
> >
> > Let me know.
> >
> > Massi
> >
> >
> >
> > ___
> > rules-users mailing list
> > rules-users@lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/rules-users
> >
> >
>
>
> --
>   Edson Tirelli
>   JBoss Drools Core Development
>   Office: +55 11 3529-6000
>   Mobile: +55 11 9287-5646
>   JBoss, a division of Red Hat @ www.jboss.com
>
> --
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
> --
>
> ___
> rules-users mailing [EMAIL 
> PROTECTED]://lists.jboss.org/mailman/listinfo/rules-users
>
>
>
> ___
> 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


[rules-users] The "Object" field in the DSL IDE Editor

2008-01-09 Thread mmquelo massi
Hi guys,

I did not find any documentation related to the "Object" field (betweem
'mapping' and 'sorting by')
in the DSL IDE editor.

What does it stand for?

Thank You very much.

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


[rules-users] Re: Inserting Facts within "Action nodes" (RuleFlow)

2008-01-03 Thread mmquelo massi
Does Anyone can help me?

Massi


- Original Message -
*From:* mmquelo
massimailto:[EMAIL
 PROTECTED]>
*Newsgroups:* gmane.comp.java.drools.user
*To:* Rules Users
Listmailto:rules-users@lists.jboss.org>
*Sent:* Wednesday, January 02, 2008 7:55 PM
*Subject:* Inserting Facts within "Action nodes" (RuleFlow)


Hi guys,

Is it possible to insert a new fact in the ruleflow action nodes?

I tried it simply adding an "insert(new Object())" instruction
in the action-node "textual editor" but I got back the following
exception:

*

org.mvel.PropertyAccessException
*: unable to resolve property: insert(new Object())

Is it a simple dialect issue ? How to do it correctly?

Thank You!



Massi

--

___
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


[rules-users] Inserting Facts within "Action nodes" (RuleFlow)

2008-01-02 Thread mmquelo massi
Hi guys,

Is it possible to insert a new fact in the ruleflow action nodes?

I tried it simply adding an "insert(new Object())" instruction
in the action-node "textual editor" but I got back the following
exception:

*

org.mvel.PropertyAccessException*: unable to resolve property: insert(new
Object())

Is it a simple dialect issue ? How to do it correctly?

Thank You!



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


[rules-users] Enumeration in IDE plug-in

2007-12-27 Thread mmquelo massi
Hi there!

Merry xmas everybody!

Maybe the last FAQ of the year ;-P

Is it possible to define an enumeration within the Drools Eclipse Plug-in as
well as we
are used in the BRMS version??

I mean stuff like "'Person.sex' : ['M', 'F']"

Is there a particoular file format to do that?

Thanks !!

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


Re: [rules-users] RuleFlow Dialect

2007-12-18 Thread mmquelo massi
errata corrige: *I guess it's because the default dialect is MVEL and not
Java.
*
On Dec 18, 2007 5:01 PM, mmquelo massi <[EMAIL PROTECTED]> wrote:

>
> I c... so it should be out within march, shouldn't it?
>
> Concerning the ruleflow action specification I am trying to specify it  in
> the "textual" field
> but i can't. I guess it's because the default dialect is Java and not
> MVEL.
>
> Should I override the PackageBuilderConfigurator in the action node itself
> or in the
> java classes?
>
> 1000 thanks... :D
>
> massi
>
>   On Dec 18, 2007 4:15 PM, Mark Proctor <[EMAIL PROTECTED]> wrote:
>
> > mmquelo massi wrote:
> >
> >
> > Ok, thanks.
> >
> > I was wondering when next release will be available...
> >
> > Q1
> >
> >
> > Will the next release include IDE\BRMS intergration features as well as
> > ruleflow dialect selection?
> >
> > IDE/BRMS integration - no
> > ruleflow dialect selection -  yes
> >
> > Thanks again.
> >
> > Massi
> >
> > On Dec 18, 2007 3:18 PM, Mark Proctor <[EMAIL PROTECTED]> wrote:
> >
> > > mmquelo massi wrote:
> > >
> > >
> > > Hi guys,
> > >
> > > How r u doing?
> > >
> > > This time a simple and short question
> > >
> > > How do I specify the dialect for a RuleFlow in drools eclipse plug-in
> > > 4.0.3?
> > >
> > > You can't, this is only in trunk. So the only way is to override the
> > > default dialect at the PackageBuilderConfiguration level.
> > >
> > >
> > > Thank u in advance.
> > >
> > > Massi
> > >
> > > --
> > >
> > > ___
> > > rules-users mailing [EMAIL 
> > > PROTECTED]://lists.jboss.org/mailman/listinfo/rules-users
> > >
> > >
> > >
> > > ___
> > > rules-users mailing list
> > > rules-users@lists.jboss.org
> > > https://lists.jboss.org/mailman/listinfo/rules-users
> > >
> > >
> > --
> >
> > ___
> > rules-users mailing [EMAIL 
> > PROTECTED]://lists.jboss.org/mailman/listinfo/rules-users
> >
> >
> >
> > ___
> > 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


Re: [rules-users] RuleFlow Dialect

2007-12-18 Thread mmquelo massi
I c... so it should be out within march, shouldn't it?

Concerning the ruleflow action specification I am trying to specify it  in
the "textual" field
but i can't. I guess it's because the default dialect is Java and not MVEL.

Should I override the PackageBuilderConfigurator in the action node itself
or in the
java classes?

1000 thanks... :D

massi

On Dec 18, 2007 4:15 PM, Mark Proctor <[EMAIL PROTECTED]> wrote:

> mmquelo massi wrote:
>
>
> Ok, thanks.
>
> I was wondering when next release will be available...
>
> Q1
>
>
> Will the next release include IDE\BRMS intergration features as well as
> ruleflow dialect selection?
>
> IDE/BRMS integration - no
> ruleflow dialect selection -  yes
>
> Thanks again.
>
> Massi
>
> On Dec 18, 2007 3:18 PM, Mark Proctor <[EMAIL PROTECTED]> wrote:
>
> > mmquelo massi wrote:
> >
> >
> > Hi guys,
> >
> > How r u doing?
> >
> > This time a simple and short question
> >
> > How do I specify the dialect for a RuleFlow in drools eclipse plug-in
> > 4.0.3?
> >
> > You can't, this is only in trunk. So the only way is to override the
> > default dialect at the PackageBuilderConfiguration level.
> >
> >
> > Thank u in advance.
> >
> > Massi
> >
> > --
> >
> > ___
> > rules-users mailing [EMAIL 
> > PROTECTED]://lists.jboss.org/mailman/listinfo/rules-users
> >
> >
> >
> > ___
> > rules-users mailing list
> > rules-users@lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/rules-users
> >
> >
> --
>
> ___
> rules-users mailing [EMAIL 
> PROTECTED]://lists.jboss.org/mailman/listinfo/rules-users
>
>
>
> ___
> 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


Re: [rules-users] RuleFlow Dialect

2007-12-18 Thread mmquelo massi
Ok, thanks.

I was wondering when next release will be available...

Will the next release include IDE\BRMS intergration features as well as
ruleflow dialect selection?

Thanks again.

Massi

On Dec 18, 2007 3:18 PM, Mark Proctor <[EMAIL PROTECTED]> wrote:

> mmquelo massi wrote:
>
>
> Hi guys,
>
> How r u doing?
>
> This time a simple and short question
>
> How do I specify the dialect for a RuleFlow in drools eclipse plug-in
> 4.0.3?
>
> You can't, this is only in trunk. So the only way is to override the
> default dialect at the PackageBuilderConfiguration level.
>
>
> Thank u in advance.
>
> Massi
>
> --
>
> ___
> rules-users mailing [EMAIL 
> PROTECTED]://lists.jboss.org/mailman/listinfo/rules-users
>
>
>
> ___
> 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


[rules-users] RuleFlow Dialect

2007-12-18 Thread mmquelo massi
Hi guys,

How r u doing?

This time a simple and short question

How do I specify the dialect for a RuleFlow in drools eclipse plug-in 4.0.3?

Thank u in advance.

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


[rules-users] Re: Going Crazy With the Insurance Maven Build (OH GOSH!)

2007-12-16 Thread mmquelo massi
Oops sorry I forgot to tell u that I ran and configured JBossAS
ofcourse.

I wait for your explanation.

Thanks again.

Massi

On Dec 16, 2007 8:35 PM, mmquelo massi <[EMAIL PROTECTED]> wrote:

>
> Hi Guys.
>
> I am "playing" with the drools-insurance example and I have to admit that
> something
> is out of my understanding.
>
> I try to do a little digest...
>
> 1) I imported the "Insurance example" into eclipse 3.3
> 2) I converted it into a drools Project
> 3) I converted it into a MAVEN build project (The little red M came
> out...)
> 4) I ran the "pom.xml" as a Maven application.
>
> What I get is a .war in the target dir with the java classes, the rules
> and other Stuff (web stuff I guess).
>
> Well
>
> What I really do not Understand is : "Why the hell u included the rules
> into the workspace?"
> 
> I mean... by the time the RuleAgent will pick the rules up from the BRMS,
> we really do not need
> any reference to the Workspace rules! Furthermore I did a 'search' within
> the eclipse workspace looking
> for some references to the rules and I did not find any!
>
> So Why did u put the rules as well??
>
> As far as concerned the .war file, if u bind the .war classes to the Rule
> Agent,
> Why the hell u put the Rules in the .wat file as Well??
>
> Am I Wrong? What Am I missing?
>
> I spent a couple of days to find a reason but I did not find any so far...
>
> Please, Somebody anwers me... I went crazy with this...
>
> Sorry to be "upset" but I am just upset with myself 'cause likely I spent
> a lot of time on something that is obvious to the most of you.
>
> Hopefully u can help me.
>
> Massi
>
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] Going Crazy With the Insurance Maven Build (OH GOSH!)

2007-12-16 Thread mmquelo massi
Hi Guys.

I am "playing" with the drools-insurance example and I have to admit that
something
is out of my understanding.

I try to do a little digest...

1) I imported the "Insurance example" into eclipse 3.3
2) I converted it into a drools Project
3) I converted it into a MAVEN build project (The little red M came out...)
4) I ran the "pom.xml" as a Maven application.

What I get is a .war in the target dir with the java classes, the rules and
other Stuff (web stuff I guess).

Well

What I really do not Understand is : "Why the hell u included the rules into
the workspace?"

I mean... by the time the RuleAgent will pick the rules up from the BRMS, we
really do not need
any reference to the Workspace rules! Furthermore I did a 'search' within
the eclipse workspace looking
for some references to the rules and I did not find any!

So Why did u put the rules as well??

As far as concerned the .war file, if u bind the .war classes to the Rule
Agent,
Why the hell u put the Rules in the .wat file as Well??

Am I Wrong? What Am I missing?

I spent a couple of days to find a reason but I did not find any so far...

Please, Somebody anwers me... I went crazy with this...

Sorry to be "upset" but I am just upset with myself 'cause likely I spent
a lot of time on something that is obvious to the most of you.

Hopefully u can help me.

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


[rules-users] [RePost] Deploying insurance example into JBoss...

2007-12-07 Thread mmquelo massi
Sorry For Multiple posting but I had problems with the last post

I deleted all the active links and I hope that It works.

The post has been rendered as follows: "weft didn't produce an output."

massi



Hi guys,

I got troubled trying to deploy the "Insurance example" in JBoss.

I tell you, step by step, what I did.

1. I downloaded "drools-4.0.3-examples.zip" from JBoss site.
2. I extracted the "insurance-example" into directory "insurance".
3. I downloaded and installed maven 1.8.
4. I opened a "cmd" shell and I executed the command: mvn clean package.
5. I got back the following error message:

C:\Users\mmquelo\Documents\Eclipse Workspaces\insurance33\insurance>mvn -e
clean  package
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO]

[INFO] Building DroolsInsurance
[INFO]task-segment: [clean, package]
[INFO]

Downloading:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.1/maven-clean-plugin-2.1.pom
Downloading:
http://repository.jboss.com/maven2/org/apache/maven/plugins/maven-clean-plugin/2.1/maven-
clean-plugin-2.1.pom
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.1/maven-
clean-plugin-2.1.pom
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Error building POM (may not be this project's POM).
Project ID: org.apache.maven.plugins:maven-clean-plugin
Reason: POM 'org.apache.maven.plugins:maven-clean-plugin' not found in
repositor y: Unable to download the artifact from any repository
  org.apache.maven.plugins:maven-clean-plugin:pom:2.1
from the specified remote repositories:
  jbossRepository (
http://repository.jboss.com/maven2),
  central (
http://repo1.maven.org/maven2)
 for project org.apache.maven.plugins:maven-clean-plugin
[INFO]

[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Unable to build
project
for plugin 'org.apache.maven.plugins:maven-clean-plugin': POM '
org.apache.maven.
plugins:maven-clean-plugin' not found in repository: Unable to download the
arti
fact from any repository
  org.apache.maven.plugins:maven-clean-plugin:pom:2.1
from the specified remote repositories:
  jbossRepository (
http://repository.jboss.com/maven2),
  central (
http://repo1.maven.org/maven2)
 for project org.apache.maven.plugins:maven-clean-plugin
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(
DefaultLifecycleExecutor.java:1274)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor
(DefaultLifecycleExecutor.java:1522)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindLifecycleForPackaging
(DefaultLifecycleExecutor.java:1016)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycleMappings
(DefaultLifecycleExecutor.java:980)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
DefaultLifecycleExecutor.java:458)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
(DefaultLifecycleExecutor.java:311)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:278)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
DefaultLifecycleExecutor.java:143)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java
:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java
:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.InvalidPluginException: Unable to build
proje
ct for plugin 'org.apache.maven.plugins:maven-clean-plugin': POM '
org.apache.mav
en.plugins:maven-clean-plugin' not found in repository: Unable to download
the a
rtifact from any repository
  org.apache.maven.plugins:maven-clean-plugin:pom:2.1
from the specified remote repositories:
  jbossRepository (
http://repository.jboss.com/maven2),
  central (
http://repo1.maven.org/maven2)
 for project org.apache.maven.plugins:maven-clean-plugin
at
org.apache.maven.plugi

[rules-users] Deploying insurance example into JBoss...

2007-12-07 Thread mmquelo massi
Hi guys,

I got troubled trying to deploy the "Insurance example" in JBoss.

I tell you, step by step, what I did.

1. I downloaded "drools-4.0.3-examples.zip" from JBoss site.
2. I extracted the "insurance-example" into directory "insurance".
3. I downloaded and installed maven 1.8.
4. I opened a "cmd" shell and I executed the command: *mvn clean package*.
5. I got back the following error message:


*C:\Users\mmquelo\Documents\Eclipse Workspaces\insurance33\insurance>mvn -e
clean  package
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO]

[INFO] Building DroolsInsurance
[INFO]task-segment: [clean, package]
[INFO]

Downloading: **
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-clean*
*-*
* plugin/2.1/maven-clean-plugin-2.1.pom
Downloading: **
http://repository.jboss.com/maven2/org/apache/maven/plugins/maven-c*
*lean-plugin/2.1/maven-clean-plugin-2.1.pom*
* Downloading: **
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-clean*
*-*
* plugin/2.1/maven-clean-plugin-2.1.pom
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Error building POM (may not be this project's POM).*
 *Project ID: org.apache.maven.plugins:maven-clean-plugin*
*Reason: POM 'org.apache.maven.plugins:maven-clean-plugin' not found in
repositor y: Unable to download the artifact from any repository*
*  org.apache.maven.plugins:maven-clean-plugin:pom:2.1*
*from the specified remote repositories:   jbossRepository (**
http://repository.jboss.com/maven2* *),*
*   central (**http://repo1.maven.org/maven2*
*)*
*  for project org.apache.maven.plugins:maven-clean-plugin*
 *[INFO]
*
* [INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Unable to build
project
for plugin 'org.apache.maven.plugins:maven-clean-plugin': POM '
org.apache.maven.
plugins:maven-clean-plugin' not found in repository: Unable to download the
arti
fact from any repository*
*  org.apache.maven.plugins:maven-clean-plugin:pom:2.1*
*from the specified remote repositories:   jbossRepository (**
http://repository.jboss.com/maven2* *),*
*   central (**http://repo1.maven.org/maven2*
*)*
*  for project org.apache.maven.plugins:maven-clean-plugin
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin
(Defa
ultLifecycleExecutor.java:1274)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor
(DefaultLifecycleExecutor.java:1522)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindLifecycleForP
ackaging(DefaultLifecycleExecutor.java:1016)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycl
eMappings(DefaultLifecycleExecutor.java:980)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal
(Defau
ltLifecycleExecutor.java:458)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:311)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:278)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute
(DefaultLi
fecycleExecutor.java:143)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java
:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java
:430)*
*at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused
by: org.apache.maven.plugin.InvalidPluginException: Unable to build proje
ct for plugin 'org.apache.maven.plugins:maven-clean-plugin': POM '
org.apache.mav
en.plugins:maven-clean-plugin' not found in repository: Unable to download
the a
rtifact from any repository*
*  org.apache.maven.plugins:maven-clean-plugin:pom:2.1*
*from the specifi

[rules-users] Simple question about "repository_export.xml" ...

2007-12-05 Thread mmquelo massi
Hi everybody!

Does anybody know whether I can transform a BRMS-generated
"repository_export.xml"  file
into an ECLIPSE IDE rule package?

Thank You in advance.

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


[rules-users] Deploying from the IDE, How to Build a ".pkg" from the IDE plug-in

2007-12-04 Thread mmquelo massi
Hi guys,

Accordingly to the Drools User's Guide, We can use the drools-ant module in
order to generate a folder with all our rules.

How to generate a ".pkg" file from that folder?

Where can I find a tutorial about compiling drools rules with ant? (I am an
"ant-newbie"...:- ) )

Once I realize how to do it, It would be a pleasure to me developing a
plug-in
extension which simply right-clicking on the "rule folder" generates a
binary ".pkg" file. Then I could try to add an "hot Deployment" function
in order to "Hot deploy" the bin file into JBossJust like we are used to
see in the BRMS snapshot

Bye bye.

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


[rules-users] Re: Choosing JackRabbit 1.3 JNDI PersistenceManager

2007-11-30 Thread mmquelo massi
I think I worked it out.

It's just a matter of making the jndi name global.

It seems that JBoss does not allow me to use the mysql
repository name as a local "java:" name.

I made it global and everything went smoothly!

Now I am just wondering whether there is a chance
to make it local in someway

Is it possible? Is it a JBoss 4.2.2 BUG?

I post the old .xml files again:

(In the current version I just disabled the local namespace setting:
false)

 
 

  jdbc/MySQLDB
  jdbc:mysql:///brms-db
  com.mysql.jdbc.Driver 
  drools
  drools
  5

  20

  5

  
  com.mysql.jdbc.integration.jboss.ExtendedMysqlExceptionSorter
  

  
  com.mysql.jdbc.integration.jboss.MysqlValidConnectionChecker
  

 


I've got the following persistence manager set-up in
\bin\repository.xml:

 
  
  
  http://wsp.name/>
}_"/>
  
 

Hope u can help with this.

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


[rules-users] Choosing JackRabbit 1.3 JNDI PersistenceManager

2007-11-28 Thread mmquelo massi
First of All...*Environment: Drools BRMS 4.0.3, JBossAS 4.2.2, MySql 5*

Hi Guys,

It's making me waste all the day trying to set
"JNDIDatabasePersistenceManager" as mysql-repository persistence manager.

I show u the issue...

*In MySql I've got an empty "brms-db" schema.*

*In JBoss default workspace I've got the following datasource definition in
mysql-ds.xml:*

*
 

  jdbc/MySQLDB
  jdbc:mysql:///brms-db
  com.mysql.jdbc.Driver
  drools
  drools
  5

  20

  5

  
  com.mysql.jdbc.integration.jboss.ExtendedMysqlExceptionSorter
  

  
  com.mysql.jdbc.integration.jboss.MysqlValidConnectionChecker
  

 
*

*I've got the following persistence manager set-up in
\bin\repository.xml:*

* 
  
  
  
  
   *


*Once I start JBoss I get back the following exception:*

*2007-11-28 16:48:36,766 INFO  [STDOUT] ERROR 28-11 16:48:36,743 (
RepositoryImpl.java:initStartupWorkspaces:389)   Failed to initialize
workspace 'default'
javax.jcr.RepositoryException: Cannot instantiate persistence manager
org.apache.jackrabbit.core.persistence.db.JNDIDatabasePersistenceManager:
null: null
 at org.apache.jackrabbit.core.RepositoryImpl.createPersistenceManager(
RepositoryImpl.java:1184)
 at org.apache.jackrabbit.core.RepositoryImpl.access$600(RepositoryImpl.java
:103)
 at org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.initialize(
RepositoryImpl.java:1758)
 at org.apache.jackrabbit.core.RepositoryImpl.initWorkspace(
RepositoryImpl.java:603)
 at org.apache.jackrabbit.core.RepositoryImpl.initStartupWorkspaces(
RepositoryImpl.java:386)
 at org.apache.jackrabbit.core.RepositoryImpl.(RepositoryImpl.java
:293)
 at org.apache.jackrabbit.core.RepositoryImpl.create(RepositoryImpl.java
:584)
 at org.apache.jackrabbit.core.TransientRepository$2.getRepository(
TransientRepository.java:245)*
*...*

I tried to replace "*
org.apache.jackrabbit.core.persistence.db.JNDIDatabasePersistenceManager*"
with "*org.apache.jackrabbit.core.persistence.db.SimpleDbPersistenceManager*
"
and It *DOES* Work so I think we can exclude it's something related to
"JackRabbit API" null references...

Have U got any idea?
What is the reason?
Did I miss any binding concernig the DataSource definition?
Is it just impossible to bind JackRabbit to any datasources although JNDI
APIs do exist?
Is it a matter related to the "weird JackRabbit JNDI client"??

Let me know.

Thank You again.

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


Re: [rules-users] How to make a "Loop-Ruleflow"????

2007-11-22 Thread mmquelo massi
Thank U again Kris.

I Think I misunderstood How a ruleflow works... for "parallelism" I meant
two rules that are activated in the same time
but I know that it is a non-sense cause the ruleflow itself remove any
ambiguity concerning the agenda.

Sorry about that!

Hopefully next time I will post something a bit more interesting :(
;-)

Thank You again!

massi

On Nov 23, 2007 12:22 AM, Kris Verlaenen <[EMAIL PROTECTED]>
wrote:

>  Massi,
>
> Why do you want to use a ruleflow?  If you simply remove the
> ruleflow-group statements from your rule definitions, you will get your
> expected behaviour, as rule_ab will execute first, updating your user fact,
> which will then trigger rule_ba to execute, updating the user fact again,
> which will trigger rule_ba again, etc.
>
> I'm not sure where you see any parallelism here, as it is always the first
> rule, then the second, then the first one again, etc.
>
> But if you really want to know, you can create a loop in a ruleflow by
> putting whatever you would like to see repeated in between an XOR-join in
> front and an XOR-split at the end, and linking one of the outgoing
> connections of the XOR-split back to the first join :)
>
> Kris
>
>
>   - Original Message -
> *From:* mmquelo massi <[EMAIL PROTECTED]>
> *To:* Rules Users List 
> *Sent:* Thursday, November 22, 2007 5:15 PM
> *Subject:* [rules-users] How to make a "Loop-Ruleflow"
>
>  Hi everybody.
>
>  I am trying to make a ruleflow that, once processed, causes the rule
> engine to infinitely loop.
> I have got a *User* Object in my object model. It has got a *getLogin()*and
> *setLogin(*) methods.
>
> The login field stands for the "User name", so it is a String.
>
> First I insert an Object in the WM, with login==A.
>
>  Then I generate the following rule-flow-groups:
>
> *rule "rule_ab" *
> *   ruleflow-group "ab" *
> *when *
> *   u:User( login == "A" ) *
> *   then *
> *  u.setLogin("B"); *
> *  System.out.println("a - > b"); *
> * update(u); *
> *end *
> **
> *rule "rule_ba" *
> *   ruleflow-group "ba" *
> * when *
> *u:User( login == "B" ) *
> * then *
> *u.setLogin("A"); *
> *System.out.println("b - > a"); *
> *update(u); *
> *end *
>
> I'd like to define a ruleflow that gives me in output something like this:
>
>  a - > b
> b - > a
> a - > b
> b - > a a - > b
> b - > a
> a - > b
> b - > a a - > b
> b - > a
> a - > b
> b - > a
>  looping...
>
> How can I do it?
>
> In other words I want those rules to be executed in parallel and I want to
> define
> this "parallelism" using the ruleflow graph, Is It Possible???
>
> Thank You Again!
>
> Massi.
>
> P.S.
>
> Ah I solved that matter with the rule.package...
>
> --
>
> ___
> 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
>
>
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] How to make a "Loop-Ruleflow"????

2007-11-22 Thread mmquelo massi
Hi everybody.

 I am trying to make a ruleflow that, once processed, causes the rule engine
to infinitely loop.
I have got a *User* Object in my object model. It has got a *getLogin()* and
*setLogin(*) methods.

The login field stands for the "User name", so it is a String.

First I insert an Object in the WM, with login==A.

 Then I generate the following rule-flow-groups:

*rule "rule_ab" *
*   ruleflow-group "ab" *
*when *
*   u:User( login == "A" ) *
*   then *
*  u.setLogin("B"); *
*  System.out.println("a - > b"); *
* update(u); *
*end *
**
*rule "rule_ba" *
*   ruleflow-group "ba" *
* when *
*u:User( login == "B" ) *
* then *
*u.setLogin("A"); *
*System.out.println("b - > a"); *
*update(u); *
*end *

I'd like to define a ruleflow that gives me in output something like this:

 a - > b
b - > a
a - > b
b - > a a - > b
b - > a
a - > b
b - > a a - > b
b - > a
a - > b
b - > a
 looping...

How can I do it?

In other words I want those rules to be executed in parallel and I want to
define
this "parallelism" using the ruleflow graph, Is It Possible???

Thank You Again!

Massi.

P.S.

Ah I solved that matter with the rule.package...
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] DSLs in the Guided Rule Editor, Still do not works

2007-11-20 Thread mmquelo massi
Hi Guys,

I am experiencing something which was already posted a couple of weeks ago.

I finally defined my own "rule.package" file with all the imports I
needed in order
to get the class names, coming out from the wizard window.

By the time I have a .dsl definition within the Drools Rule Project
(IDE 4.0.3 on Eclipse 3.3)
I decided to use the .dsl sentences in the Guided editor.

So, when I define the "when" condition everything goes smoothly.

When I decide to pick up a sentence (a dsl occurrence) from the action
field, eclipse
gives me back an error on the .brl file.

So the problem comes out once I want to add a dsl sentence
using the guided rule editor.

I think Shahad Ahmed experienced the same issue.

Thank You anyway.

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


Re: [rules-users] Re: Defining the Object Model in Drools IDE4.0.3...HOWTO????

2007-11-16 Thread mmquelo massi
Thank You very much Kris.

I apologize for asking you something that already was in the documentation.

I read it a couple of minutes before I read your email, but I still
do not see anything coming out from the fact list.

I put the import in the .package file but still not working as expected.

Thanks!

Massi






On Nov 16, 2007 2:18 PM, Kris Verlaenen <[EMAIL PROTECTED]> wrote:
> >From the documentation:
> "The guided editor works based on a .package file in the same directory as
> the .brl file. In this "package" file - you have the package name and import
> statements - just like you would in the top of a normal DRL file. So the
> first time you create a brl rule - you will need to populate the package
> file with the fact classes you are interested in. Once you have this the
> guided editor will be able to prompt you with facts/fields and build rules
> graphically."
>
> So you need to import the facts you are interested in inside the .package
> file in the same directory as your brl file, and save that.  If you then try
> to edit your brll file using the guided editor, the facts you imported
> should show up.
>
> Kris
>
>
> - Original Message -
> From: "mmquelo massi" <[EMAIL PROTECTED]>
> To: 
> Sent: Friday, November 16, 2007 1:09 PM
> Subject: [rules-users] Re: Defining the Object Model in Drools
> IDE4.0.3...HOWTO
>
>
> > Is there any FAQ where I can work it out?
> >
> > I know it is quite a stupid issue but I am stuck!
> >
> > Thank You again.
> >
> > Massi
> > ___
> > 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
>
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] Re: Defining the Object Model in Drools IDE 4.0.3...HOWTO????

2007-11-16 Thread mmquelo massi
Is there any FAQ where I can work it out?

I know it is quite a stupid issue but I am stuck!

Thank You again.

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


[rules-users] Defining the Object Model in Drools IDE 4.0.3...HOWTO????

2007-11-15 Thread mmquelo massi
Hi everybody,

I am starting to define my little Drools Project.

I am using DROOLS IDE 4.0.3 for Eclipse 3.2 .

I already have some underlying Java classes and want to build my rules
over those classes.

In other words I need to define the Object Model to execute the rules
against it.

I added all the Object Model classes in the same Rule workspace, but
once I started
te "Guided Rule Editor" to define the rules, I did not see any "fact"
coming out from the
"Fact" list.

So what should I do in order to get a "Nice and Cool" (  :D  ) list
with all the classes
I put within the Eclipse Workspace.

Thank You everybody.

I hope u can help me to work it out.

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


[rules-users] Integrating DROOLS in J2EE...

2007-10-25 Thread mmquelo massi
Hi everybody!

Does anybody know where I can find good tutorials concerning DROOLS
4.0.3\J2EE integration?

I will use an Oracle DB and JBOSS Application Server (4.0.5).

Any help will be great!

I hope I will get used to DROOLS as soon as possible so that I will be able
to help someone in this ML and not only making questions on it.

Thank You anyway.

Cheers!

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


[rules-users] Snapshot version?

2007-10-18 Thread mmquelo massi
Hi again everybody!

What's the difference between the SNAPSHOT drools and the non-SNAPSHOT
drool???

Is it like a beta version??

I guess It is a really stupid question but I am a novice
and I need to ask u this.

Thank YOU AGAIN!!!

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


[rules-users] Binding\synchronization between jboss\jbrms and eclipse\drool...

2007-10-18 Thread mmquelo massi
Hi there,


I am a computer science student and I am writing my final thesis
on Open-source BRMSs.

Sorry for cross posting, I did not know which Mailing list
was the most appropriate for my questions...

I downloaded the Drools *drools-4.0.2-eclipse.zip* file,
I added it as ECLIPSE plug-in and everything went as
I expected.

Then I downloaded *drools-4.0.2-brms.zip* to have an
actual DROOLS BRMS, I deployed it in* ...\jboss 4.0.5\server\default*
directory and everything went fine.

Now I have got some simple questions..

How can I bind "eclipse-drools" with "jboss-drools"?

How can I make jbrms repository visible from\within eclipse?

I hope that the jbrms "xml export" function is not the only way
to do that.

I hope there is some kind of synchronization\bind between eclipse-drools
and jboss-jbrms repositories.. Am I dreaming something unreal?

Thank you very much for any help you can give me.

Looking forward to hear from you.

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