Re: [rules-users] News from the community - 5.6.0.CR1 is out!

2013-11-01 Thread Salaboy
Great work Davide! Please let me know if I can help with something! 
Cheers 

Sent from my iPhone

On 1 Nov 2013, at 22:51, Mark Proctor  wrote:

> Davide,
> 
> Thank you for al your hard work on this. It’s great when community people 
> step up to help drive the project forward.
> 
> The core team won’t have time for any final QAing of this, so it’s up to the 
> community to test this and make sure it’s ok.
> 
> Good luck :)
> 
> Mark
> On 1 Nov 2013, at 21:04, Davide Sottara  wrote:
> 
>> Finally Drools 5.6.0.CR1 community edition has been released!
>> 
>> It has been mainly a community effort, driven by the use of Drools in
>> several applications and research projects,
>> but it was possible thanks to the collaboration of the main developer's
>> team and the help of everybody
>> who reported bugs, asked for new features and contributed with patches
>> or additions.
>> 
>> 5.6 consolidates and finalizes the 5.x series. It comes with a number of
>> bug fixes and a still experimental,
>> but much more robust, second generation trait system - I will blog and
>> document it as soon as I can find
>> a moment next week.
>> 
>> The release is "candidate" to allow for some broader testing by the
>> community without requiring to download
>> and compile the code. If no major issues are reported, it will become
>> Final in a few weeks.
>> 
>> Let's keep sharing, looking forward to even more exciting innovations in
>> the 6.x series!
>> 
>> Best
>> Davide
>> 
>> ___
>> 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

Re: [rules-users] Drools Dzone Refcard

2013-07-25 Thread Salaboy
I will just post the link and a small brief about it

Sent from my iPhone

On 25 Jul 2013, at 11:11, Mario Fusco  wrote:

> I am not sure if you can republish it somewhere else but I don't think so.
> You could just link it from your blog if you want. 
> I will ask to the Dzone guy I am in touch with if it can be published in a
> blog, but I am quite skeptical about it.
> 
> Mario
> 
> 
> 
> --
> View this message in context: 
> http://drools.46999.n3.nabble.com/Drools-Dzone-Refcard-tp4025135p4025137.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users

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


Re: [rules-users] Room to optimize or bug? Unnecessary calls to unused method

2013-05-12 Thread Salaboy
I can see the code in the nabble
Link, maybe it's because the formattings 
Sent from my iPhone

On 12 May 2013, at 18:30, Mark Proctor  wrote:

> The code examples of what you are proposing did not make it to the list.
> 
> Mark
> On 12 May 2013, at 12:29, Sonata  wrote:
> 
>> Hi, I am using 5.5.0.final on jdk7(64bit). To repeat the test, simply create
>> a new Drools project in Eclipse. Tick the option to create a default Hello
>> World project. Go to the DroolsTest.java file, edit main() to
>> 
>> 
>> and edit getMessage() to
>> 
>> 
>> Next, remove the two rules in Sample.drl, use this simple rule instead
>> 
>> 
>> Then you can see the output
>> 
>> 
>> Which means, getMessage() is called 4 times in this simple rule. I really
>> wonder why. Is this a bug? Some non-optimized routine? An edge case?
>> 
>> Now try this
>> 
>> and the output is
>> 
>> 
>> Just once. It seems all good. Because getMessage() is needed to call once to
>> check with null, which is very fair to me.
>> 
>> Now something really funny
>> 
>> 
>> and the output
>> 
>> 
>> 
>> An extra call to getMessage() at the end, total 5 times!
>> 
>> TBH, I really only expect calling getMessage() once in all these tests.
>> Please put it to my face and tell me my test is so flawed. 
>> 
>> 
>> 
>> --
>> View this message in context: 
>> http://drools.46999.n3.nabble.com/Room-to-optimize-or-bug-Unnecessary-calls-to-unused-method-tp4023790.html
>> Sent from the Drools: User forum mailing list archive at Nabble.com.
>> ___
>> rules-users mailing list
>> rules-users@lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/rules-users
> 
> 
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users

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


Re: [rules-users] Dedication to Wolfgang Laun - Thank You

2013-01-06 Thread Salaboy
Definitely, people like Wolfgang makes open source project a wonderful place to 
work! 

Sent from my iPhone

On 6 Jan 2013, at 14:44, Reinis  wrote:

> I want to thank you all.
> 
> You, the members of drools community, for making this platform alive by 
> giving away your knowledge and contributing the development of drools by 
> sharing your thought and inducing the discussion.
> 
> You, the developers of drools, for having ability to make it work and 
> for actually making it work!
> 
> And this time I want to say a special thanks to you, Wolfgang Laun, for 
> being selfless, humble and having the gift of explaining things not 
> because you're a doctor (of math btw) but because you have it down pat. 
> And I thank you for sacrificing a lot of your private time to help me to 
> solve my drools problem.
> 
> So cheers to you, Wolfgang - a scientist, a mentor, a friend.
> 
> Reinis
> ___
> 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] expert mailing list

2012-08-14 Thread Salaboy
Probably a linked in private group can do the job, I dont know if it supports 
all the features that you mention but at least you have the contacts network to 
checks who joins and post new topics. With a group of moderators the topics can 
be restricted easily

Sent from my iPhone

On 14 Aug 2012, at 22:48, Mark Proctor  wrote:

> As the user list is now high volume, i'm contemplating an "invite only" 
> expert list. I'm not sure who this would work, or if it's practical. But the 
> idea is to have a lower volume list, with a higher quality of technical 
> questions and discussions. This might make it easier for people to be engaged.
> 
> I'm thinking of doing it as a google group "drools-expert-group" or something.
> 
> I'm not entirely sure how to decide who gets an invite or not…. as it's very 
> arbitrary. I guess in general anyone who gets a recommendation for someone on 
> the list, gets an invite. But I'm open to other ideas to run this.
> 
> Ideally we should be able to setup a number of moderators, that can handle 
> this invite list, including people from the community. Although not sure if 
> google groups supports this, need to find out.
> 
> Anyway would like to here what people think, and would be interest to see 
> alternative ways to do this. Maybe you can point to existing setups, that 
> manage this sort of situation, that we can copy?
> 
> Mark
> ___
> 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 not Found

2012-06-27 Thread Salaboy
Did you check the jbpm documentation? Cheers

Sent from my iPhone

On 27 Jun 2012, at 03:55, abhinay_agarwal  wrote:

> why is der no .rf file in my HELLO WORLD project..
> 
> Where can i read about how to configure a .bpmn flow rule ???
> 
> Please can some1 lemme know...is there any difference using a RULEFLOW FILE
> (.rf) and a FLOW FILE (.bpmn)
> 
> Thanks,
> Abhinay
> 
> --
> View this message in context: 
> http://drools.46999.n3.nabble.com/RuleFlow-not-Found-tp4018251p4018278.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users

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


Re: [rules-users] jboss tohu

2012-02-22 Thread Salaboy
As far as I know tohu is abandoned, we were working in a new experimental 
version but there is nothing finished yet. 
My two cents

- CTO @ http://www.plugtree.com
- MyJourney @ http://salaboy.wordpress.com
- Co-Founder @ http://www.jbug.com.ar
- Mauricio "Salaboy" Salatino -

On 22/02/2012, at 21:58, olfa  wrote:

> hi,
> 
> can you help me to install tohu and thanks sir?
> 
> 
> 
> View this message in context: jboss tohu
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Using an OWL Ontology in drools - advice

2012-02-18 Thread Salaboy
You can watch davide's github user and follow him

- CTO @ http://www.plugtree.com
- MyJourney @ http://salaboy.wordpress.com
- Co-Founder @ http://www.jbug.com.ar
- Mauricio "Salaboy" Salatino -

On 18/02/2012, at 06:21, Anton Hughes  wrote:

> 
> Hi Anton,
> I'm (un)officially in charge of the topic. Right now I have identified the
> following topics/tasks, feel free to ask for more details on any one of
> them:
> 
> 1) Use the ontology to create a fact model to write rules with : I'm
> perfecting the tool even now, in a few days the alpha version will be
> available for testing.
> It's meant to be pretty flexible, support many persistency techniques,
> provide convenience methods and will be integrated with the recent
> "traiting" (dynamic typing) technique.
> It makes some (reasonable) assumptions on the ontology, and would need use
> cases and consolidations.
> 
> 1b) Once the fact model is there, we'd have to instantiate the individuals
> in the ontology as facts
> 1c) We have a side project to make this compatible with guvnor, to edit
> "semantically constrained" rules.
> 
> 2) Use the definitions in the ontology to create classification rules. Would
> be "rule-style", in close world assumptions. My feeling is that it would
> create an execution framework for a SPIN-like language (or, if you prefer, a
> DRL version of the SPIN framework).
> I haven't started it yet, but could be done in a relatively few days
> 
> 3) Use the definitions in the ontology to create a rule-based,
> object-oriented semantic reasoner. A proof of concept for a fuzzy semantic
> reasoner exists, but that definitely is on the TODO list. Help, as always,
> is appreciated :)
> This would be a necessary complement to the fact model, to ensure it's kept
> consistent with the ontology.
> 
> 
> Hi Davide
> 
> Thanks, the work youre doing sounds really exciting and promising!
> 
> I would very much like to follow your progress, and, if I can, help out. 
> 
> What is the best way to follow the progress of  this project?
> 
> Kind regards,
> Anton
> ___
> 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] Drools and DOSGi

2012-01-26 Thread Salaboy
What do you mean with incompatible?
Are you getting any error? 

- CTO @ http://www.plugtree.com
- MyJourney @ http://salaboy.wordpress.com
- Co-Founder @ http://www.jbug.com.ar
- Mauricio "Salaboy" Salatino -

On 26/01/2012, at 13:50, jjmartinez  wrote:

> Hello all
> 
> Anyone know if Drools bundles libraries are incompatibles with Apache CXF
> Distributed OSGi?
> 
> Thanks in advance, Jesus
> 
> --
> View this message in context: 
> http://drools.46999.n3.nabble.com/Drools-and-DOSGi-tp3690930p3690930.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users

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


Re: [rules-users] Drools 5.3 in OSGi

2012-01-06 Thread Salaboy
What kinds of instructions are you looking for? As you mention, knowledge-api, 
drools-core and drools-compiler are OSGi bundles.
Cheers

- CTO @ http://www.plugtree.com
- MyJourney @ http://salaboy.wordpress.com
- Co-Founder @ http://www.jbug.com.ar
- Mauricio "Salaboy" Salatino -

On 05/01/2012, at 20:51, el_eduardo  wrote:

> Hi!
> 
> I have been looking on the forum for information on how to setup the runtime
> (or "target platform") for Drools 5.3. I am unable to do it because I do not
> seem to find where the bundles are. 
> 
> I downloaded the Drools-OSGi-Bundles
> (http://download.jboss.org/drools/release/5.3.0.Final/drools-osgi-bundles-distribution-5.3.0.Final.zip)
> but those seem to be dependecy bundles. I am then assuming that the regular
> distro jars
> (http://download.jboss.org/drools/release/5.3.0.Final/drools-distribution-5.3.0.Final.zip)
> have some of those jars as OSGI bundles (for example the knowledge API
> does).
> 
> The integration doc though
> (http://download.jboss.org/drools/release/5.3.0.Final/droolsjbpm-integration-distribution-5.3.0.Final.zip)
> states that there are declarative services but I cannot find them.
> 
> Is there any place that documents the setup procedures to have Drools in an
> OSGi environment (the above integration doc does not really give
> instructions).
> 
> Thanks!
> 
> 
> --
> View this message in context: 
> http://drools.46999.n3.nabble.com/Drools-5-3-in-OSGi-tp3636591p3636591.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users

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


Re: [rules-users] [rules-dev] merry xmas all

2011-12-25 Thread Salaboy
Yeah! Enjoy! 

- CTO @ http://www.plugtree.com
- MyJourney @ http://salaboy.wordpress.com
- Co-Founder @ http://www.jbug.com.ar
- Mauricio "Salaboy" Salatino -

On 25/12/2011, at 09:12, Mark Proctor  wrote:

> Merry xmas everyone.
> 
> Mark
> ___
> rules-dev mailing list
> rules-...@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-dev
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] How to make available declarative model to all packages.

2011-12-21 Thread Salaboy
Did you try importing the declared types in the other drl? 
<>.<>

- CTO @ http://www.plugtree.com
- MyJourney @ http://salaboy.wordpress.com
- Co-Founder @ http://www.jbug.com.ar
- Mauricio "Salaboy" Salatino -

On 21/12/2011, at 22:41, srinivasasanda  wrote:

> Hi All,
> 
> I have created declarative model in global area but even it is not visible
> to other packages, how to some model to available to the all packages.
> 
> 
> Thanks in Advance
> 
> 
> --
> View this message in context: 
> http://drools.46999.n3.nabble.com/How-to-make-available-declarative-model-to-all-packages-tp3605644p3605644.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users

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


Re: [rules-users] JbossAS 7 and JBPM Console Server problem

2011-12-20 Thread Salaboy
Did you try runnin the ant target:
Ant install.demo

- CTO @ http://www.plugtree.com
- MyJourney @ http://salaboy.wordpress.com
- Co-Founder @ http://www.jbug.com.ar
- Mauricio "Salaboy" Salatino -

On 20/12/2011, at 21:06, Cristiano Gavião  wrote:

> Hi,
> 
> I'm trying to configure a JBoss AS 7 for JBPM.
> 
> I've downloaded the 5.2.0.Final installer, discompacted it and I'm 
> trying to install jbpm-gwt-console-server using JBossAS Admin Console.
> 
> I'm getting this messages:
> 
>> 20:09:07,874 INFO  [org.jboss.as.jpa] (MSC service thread 1-1) 
>> Deployment has its own Persistence Provider class 
>> org.hibernate.ejb.HibernatePersistence
>> 20:09:08,243 INFO  [org.jboss.as.server.controller] 
>> (HttpManagementService-threads - 13) Deployment of 
>> "jbpm-gwt-console-server-5.2.0.Final.war" was rolled back with failure 
>> message {"Services with missing/unavailable dependencies" => 
>> ["jboss.persistenceunit.\"jbpm-gwt-console-server-5.2.0.Final.war#org.jbpm.persistence.jpa\"
>>  
>> missing [ jboss.naming.context.java.jboss.java:jdbc.testDS1 ]"]}
>> 20:09:08,391 INFO  [org.jboss.as.server.deployment] (MSC service 
>> thread 1-1) Stopped deployment jbpm-gwt-console-server-5.2.0.Final.war 
>> in 164ms
> 
> what should I do to resolve this ?
> 
> thanks for any tip
> 
> Cheers
> 
> Cristiano
> 
> ___
> 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] StatefulKnowledgeSession and multi-threaded processing

2011-12-20 Thread Salaboy
Sure, but its common sense and find the right tool for each particular problem. 
In my perspective he did that perfectly. 

- CTO @ http://www.plugtree.com
- MyJourney @ http://salaboy.wordpress.com
- Co-Founder @ http://www.jbug.com.ar
- Mauricio "Salaboy" Salatino -

On 20/12/2011, at 22:52, Greg Barton  wrote:

> Absolutely.  Anyone who wants to build a high performance rules system should 
> watch it.
> 
> --- On Tue, 12/20/11, Mauricio Salatino  wrote:
> 
>> From: Mauricio Salatino 
>> Subject: Re: [rules-users] StatefulKnowledgeSession and multi-threaded 
>> processing
>> To: "Rules Users List" 
>> Date: Tuesday, December 20, 2011, 11:50 AM
>> That's not me.. his name is Alexandre
>> Porcelli.. he is also a
>> community member.. really good presentation
>> 
>> On Tue, Dec 20, 2011 at 2:46 PM, lhorton 
>> wrote:
>>> You might like to view this video, posted by Mauricio
>> (Salaboy) this year,
>>> from their Drools workshop in Argentina.  It's about
>> a real (production)
>>> implementation of a very high volume, high performance
>> Drools-based system:
>>> 
>>> http://vimeo.com/27209589 http://vimeo.com/27209589
>>> 
>>> --
>>> View this message in context: 
>>> http://drools.46999.n3.nabble.com/StatefulKnowledgeSession-and-multi-threaded-processing-tp3599689p3601845.html
>>> Sent from the Drools: User forum mailing list archive
>> at Nabble.com.
>>> ___
>>> rules-users mailing list
>>> rules-users@lists.jboss.org
>>> https://lists.jboss.org/mailman/listinfo/rules-users
>> 
>> 
>> 
>> -- 
>>  - CTO @ http://www.plugtree.com
>>  - MyJourney @ http://salaboy.wordpress.com
>>  - Co-Founder @ http://www.jugargentina.org
>>  - Co-Founder @ http://www.jbug.com.ar
>> 
>>  - Salatino "Salaboy" Mauricio -
>> 
>> ___
>> 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


Re: [rules-users] FIT and rules

2011-12-16 Thread Salaboy
No idea about other resources but thanks for sharing it looks interesting, keep 
up posted about your research.

Cheers

- CTO @ http://www.plugtree.com
- MyJourney @ http://salaboy.wordpress.com
- Co-Founder @ http://www.jbug.com.ar
- Mauricio "Salaboy" Salatino -

On 16/12/2011, at 06:36, gcautiero  wrote:

> Hello to everyone,
> 
> i found this useful link for use FIT on drools rule scope.
> 
> http://fit-for-rules.sourceforge.net/
> 
> someone know other resources ? 
> I'm looking for a way to combine the maven plugin (maven fit plug in:
> http://mojo.codehaus.org/fit-maven-plugin/usage.html) for fit and
> fit-for-rule
> library found on the bottom link? i'm interested to execute fit test (with
> more html table) when the application is build..
> 
> regards,
> 
> Gianfranco
> 
> --
> View this message in context: 
> http://drools.46999.n3.nabble.com/FIT-and-rules-tp3591363p3591363.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users

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


Re: [rules-users] Many to many matching using Drools rules

2011-12-13 Thread Salaboy
Do you want to compare to set of transactions to find which of them are in both 
sets and which of them are not? 
Is that what are you trying to achieve?
Cheers

- CTO @ http://www.plugtree.com
- MyJourney @ http://salaboy.wordpress.com
- Co-Founder @ http://www.jbug.com.ar
- Mauricio "Salaboy" Salatino -

On 13/12/2011, at 10:27, Wolfgang Laun  wrote:

> Huh?
> -W
> 
> 2011/12/13 Zhuo Li :
>> Folks,
>> 
>> 
>> 
>> I am recently working on a BI project which is doing reconciliation between
>> repository and accounting. I'm using Drools 5.1.1 to maintain all these
>> matching rules. One scenario I have no clue to implement in Drools is that I
>> need to find x transactions from repository, to match y transactions from
>> accounting, while existing repository transactions and accounting
>> transactions are bigger than x and y. Does anybody have experience to do
>> similar thing in Drools?
>> 
>> 
>> 
>> Best Abe
>> 
>> 
>> ___
>> 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


Re: [rules-users] [rules-dev] class loading problems with 5.3.0-Final and 5.4.0-SNAPSHOT

2011-11-15 Thread Salaboy
I've already share that, here in the list. Didn't you get it? Please let me 
know, probably it's banned because of some screenshots attachments.
Please let me know! 

- CTO @ http://www.plugtree.com
- MyJourney @ http://salaboy.wordpress.com
- Co-Founder @ http://www.jbug.com.ar
- Mauricio "Salaboy" Salatino -

On 15/11/2011, at 16:04, Davide Sottara  wrote:

> Lovely exception...
> Well, both my life and salaboy's depend on solving this issue... Mark and I
> were also considering to review the Composite ClassLoader at some point in
> the future, since it causes issues with (re)declared types in DRLs loaded at
> runtime. Looks like we'll have to catch two birds with one stone :)
> Salaboy, can you share the simple service and the WSO2 config details?
> (version, any custom setting, etc...)
> 
> --
> View this message in context: 
> http://drools.46999.n3.nabble.com/rules-users-class-loading-problems-with-5-3-0-Final-and-5-4-0-SNAPSHOT-tp3509949p3510640.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users

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


Re: [rules-users] [rules-dev] class loading problems with 5.3.0-Final and 5.4.0-SNAPSHOT

2011-11-15 Thread Salaboy
Hi Mario thanks! Give me an hour and I will get back with more details! 

- CTO @ http://www.plugtree.com
- MyJourney @ http://salaboy.wordpress.com
- Co-Founder @ http://www.jbug.com.ar
- Mauricio "Salaboy" Salatino -

On 15/11/2011, at 12:47, Mario Fusco  wrote:

> Mauricio,
> 
> I am the author of that change, so maybe I can help.
> 
> First of all it seems weird to me that both the 5.3.0-Final and the 
> 5.4.0-SNAPSHOT fail in the same way. I suppose the exception thrown by the 
> 5.3 should be at least slightly different because it uses a different 
> implementation of the ConsequenceGenerator. If so could you please send also 
> the exception you get with the 5.3?
> 
> Moreover I honestly don't know what WSO2 is but I guess this issue could be 
> related with some specific constraint in its ClassLoader. Could you give me 
> some more info in order to allow me to reproduce the same problem? By the 
> way, does it happens with any rules or do you have a specific use case that 
> causes this problem?
> 
> In the end I can give you a quick workaround, but you will have to change the 
> Drools source and of course recompile it. If you can do that you have to go 
> to the JavaDialect class:
> 
> https://github.com/droolsjbpm/drools/blob/master/drools-compiler/src/main/java/org/drools/rule/builder/dialect/java/JavaDialect.java#L92
> 
> comment all the lines using the new ASM*Builders (94, 98, 102, 106) and 
> uncomment the lines for the corresponding Java*Builer (92, 96, 100, 104). I 
> know this is not the ideal solution, but at least it will allow us to figure 
> out if the problem is actually where I am supposing. 
> 
> I could easily implement a fallback mechanism that will use the old Builders 
> if the new ones fail for some reason, but before to do that I'd like to 
> understand what's going on. So it will be great if you could send be some 
> more details to help me to figure out what's wrong.
> 
> I hope this helps,
> Mario
> 
> On Tue, Nov 15, 2011 at 4:14 PM, Mauricio Salatino  wrote:
> Hi guys,
> I'm working here trying to find out a little problem that I'm having with 
> Drools 5.4.0-SNAPSHOT and 5.3.0-Final.
> I'm using WSO2 container to deploy a very simple service and when a rule gets 
> activated the following exception appears (with 5.4.0-SNAPSHOT):
> 
> Exception in thread "Thread-44" java.lang.ClassCircularityError: 
> org/drools/rule/builder/dialect/asm/ConsequenceGenerator
>   at java.lang.Class.forName0(Native Method)
>   at java.lang.Class.forName(Class.java:247)
>   at 
> org.drools.util.CompositeClassLoader$CachingLoader.load(CompositeClassLoader.java:262)
>   at 
> org.drools.util.CompositeClassLoader.loadClass(CompositeClassLoader.java:105)
>   at 
> org.drools.rule.JavaDialectRuntimeData$PackageClassLoader.loadClass(JavaDialectRuntimeData.java:540)
>   at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>   at 
> org.eclipse.core.runtime.internal.adaptor.ContextFinder.loadClass(ContextFinder.java:124)
>   at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>   at java.lang.Class.forName0(Native Method)
>   at java.lang.Class.forName(Class.java:247)
>   at 
> org.drools.util.CompositeClassLoader$CachingLoader.load(CompositeClassLoader.java:262)
>   at 
> org.drools.util.CompositeClassLoader.loadClass(CompositeClassLoader.java:105)
>   at 
> org.drools.rule.JavaDialectRuntimeData$PackageClassLoader.loadClass(JavaDialectRuntimeData.java:540)
>   at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>   at 
> test.Rule_request_bed_ede4a687c29740c8bb9f13968941e6a1DefaultConsequenceInvoker.evaluate(Unknown
>  Source)
>   at 
> org.drools.common.DefaultAgenda.fireActivation(DefaultAgenda.java:1091)
>   at org.drools.common.DefaultAgenda.fireNextItem(DefaultAgenda.java:1029)
>   at 
> org.drools.common.DefaultAgenda.fireUntilHalt(DefaultAgenda.java:1229)
>   at 
> org.drools.common.AbstractWorkingMemory.fireUntilHalt(AbstractWorkingMemory.java:756)
>   at 
> org.drools.common.AbstractWorkingMemory.fireUntilHalt(AbstractWorkingMemory.java:732)
>   at 
> org.drools.impl.StatefulKnowledgeSessionImpl.fireUntilHalt(StatefulKnowledgeSessionImpl.java:234)
>   at 
> com.wordpress.salaboy.hospital.HospitalServiceImpl$1.run(HospitalServiceImpl.java:71)
> 
> I'm worried to see that I don't have any problems with 5.1.1 but with later 
> version all throw similar issues. 
> I will be trying to solve this issue, but if someone has a clue about what 
> can be happening here, please let me know.
> 
> I know that this can be a particular issue with WSO2, but it looks like 
> s

Re: [rules-users] Human Task - Connect to guvnor without using jbpm console

2011-11-06 Thread Salaboy
Hi, you just need to use the apis I mean, the human task Apis will allow you to 
get the information about the pending tasks.
You can use the rest Apis if you have running the jbpm server that exposé the 
rest services.
Cheers

- CTO @ http://www.plugtree.com
- MyJourney @ http://salaboy.wordpress.com
- Co-Founder @ http://www.jbug.com.ar
- Mauricio "Salaboy" Salatino -

On 06/11/2011, at 01:31, "S.M.H.Jamali"  wrote:

> Hello all ,
> 
> I want to get list of human tasks for a certain user by jbpm api. How can i 
> do that ?
> How can i communicate with Guvnor through my web application and jbpm api 
> without using JBPM Console ? 
>  
> 
> Thanks in advance
> S.M.H.Jamali
> ___
> 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] Looking for a Drools lecturer

2011-10-25 Thread Salaboy
I'm extremely interested can you elaborate a little bit more about what are you 
planning to do?
Cheers

- CTO @ http://www.plugtree.com
- MyJourney @ http://salaboy.wordpress.com
- Co-Founder @ http://www.jbug.com.ar
- Mauricio "Salaboy" Salatino -

On 25/10/2011, at 23:34, Laurence Vignollet  
wrote:

> Hello,
> 
> We have introduced a "rule-engine" course in a 5th year of Computer 
> Science Study in University of Savoie, France.
> 
> We would like to give some hours on a Drools initiation, including 
> practise, to the 20 students attending this course.
> 
> If somebody could be interested, please contact me by email.
> 
> Thanks in advance,
> 
> all the best,
> Laurence Vignollet
> -- 
> Université de Savoie
> Campus Scientifique
> 73370 Le Bourget-du-Lac
> Tel : +33 (0)479 758 847
> Fax : +33 (0)479 758 690
> ___
> 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] request for help in TwitterCBR

2011-09-17 Thread Salaboy
Sounds like a question for the twitter4j guys...
Where did you place the properties file? 

Cheers

- CTO @ http://www.plugtree.com
- MyJourney @ http://salaboy.wordpress.com
- Co-Founder @ http://www.jbug.com.ar
- Mauricio "Salaboy" Salatino -

On 16/09/2011, at 21:02, madhusoodan shanbhag  
wrote:

> Hi,
> 
> I am having following problem in TwitterCBR example application. 
> 
> Exception in thread "Thread-0" java.lang.IllegalStateException: 
> Authentication credentials are missing. See 
> http://twitter4j.org/configuration.html for the detail.
>   at 
> twitter4j.TwitterBaseImpl.ensureAuthorizationEnabled(TwitterBaseImpl.java:205)
>   at twitter4j.TwitterStreamImpl.sample(TwitterStreamImpl.java:147)
>   at org.drools.examples.twittercbr.TwitterCBR$1.run(TwitterCBR.java:80)
>   at java.lang.Thread.run(Unknown Source)
> 
> I have configured twitter4j.properties file as following.
> 
> debug=true
> oauth.consumerKey=BpOiuGBcoZnbHsueuwM0w
> oauth.consumerSecret=hQdpWR2Nu6m8vG35ggu1LdAoVfBgKiBsDxq7RDQVA
> oauth.accessToken=25781-aqqkXHdKIcVv0JfGu4oftAmb5uRNNQ9r2i9pzlzj
> oauth.accessTokenSecret=1HqzEKEiL6EbzP8SDW6ox5vnc5qxSn1JxQTIsOFujE
> 
> Where I am going wrong?
> 
> Regards
> 
> Madhusoodan 
> ___
> 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] Working with Declared Types

2011-09-15 Thread Salaboy

Are you having troubles with that? What is the error? 
In the documentation you can see how to get those declared facts using the Apis 
cheers
- CTO @ http://www.plugtree.com
- MyJourney @ http://salaboy.wordpress.com
- Co-Founder @ http://www.jbug.com.ar
- Mauricio "Salaboy" Salatino -

On 15/09/2011, at 09:51, హరీష్ చౌదరి కూకట్ల wrote:

> Hello EveryOne,
>  
> We are using declared types in our technical rules. But, in the then part of 
> the rule we want to insert these declared objects to a global list so that I 
> can get the output. So, is there anyway to insert these declared types into 
> the list.
>  
> Thanks,
> Harish
> ___
> 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] some Drools related presentation

2011-09-06 Thread Salaboy
Thanks michael! 
Feedback is appreciated! I will add the guvnor decision tables to the relevant 
slides soon! 

- CTO @ http://www.plugtree.com
- MyJourney @ http://salaboy.wordpress.com
- Co-Founder @ http://www.jbug.com.ar
- Mauricio "Salaboy" Salatino -

On 06/09/2011, at 04:25, Michael Anstis  wrote:

> Hi Salaboy,
> 
> I've added the presentations to the relevant page - please have a look and 
> check when you get a moment.
> 
> I hope to have a look at some of the presentations at some time... 
> 
> Cheers,
> 
> Mike
> 
> 2011/9/5 Mauricio Salatino 
> Hi guys, 
> Here I'm sharing with you a set of slides that we have about Drools and some 
> code repositories where you can find the examples that are mentioned there.
> Any feedback about the presentations will be appreciated! We are trying to 
> create a new revision for all of them adding missing topics. If you want to 
> help to improve them, please contact me :)
> 
> @Geoffrey, here is the formatted list of presentations, can they be included 
> in the Presentation page of the web site?
> 
> 2011-09-01 Drools 5 Business Logic Integration Platform Introduction
> • Mauricio "Salaboy" Salatino - Esteban Aliverti
> • slideshare -> 
> http://www.slideshare.net/salaboy/drools5-community-training-module1-drools5-blip-introduction
> 
> 2011-09-01 Drools Expert Simple Scenario
> • Mauricio "Salaboy" Salatino - Esteban Aliverti
> • slideshare -> 
> http://www.slideshare.net/salaboy/drools5-community-training-module-15-drools-expert-first-example
> • code: https://github.com/Salaboy/Drools_jBPM5-Training-Examples
> 
> 2011-09-01 Drools Expert DRL Syntax Introduction
> • Mauricio "Salaboy" Salatino - Esteban Aliverti
> • slideshare -> 
> http://www.slideshare.net/salaboy/drools5-community-rraining-module3-drools-expert-drl-syntax
> • slideshare hands 
> on->http://www.slideshare.net/salaboy/drools5-community-training-handson-1-drools-drl-syntax
> • code: https://github.com/Salaboy/Drools_jBPM5-Training-Examples
> 
> 2011-09-01 Drools BLiP Architectural Overview
> • Mauricio "Salaboy" Salatino - Esteban Aliverti
> • slideshare 
> ->http://www.slideshare.net/salaboy/drools5-community-training-module-5-drools-blip-architectural-overview-demos
> • code: https://github.com/Salaboy/Drools_jBPM5-Training-Examples
> 
> 2011-09-01 Drools Expert DSL & Spreadsheets
> • Mauricio "Salaboy" Salatino - Esteban Aliverti
> • slideshare 
> ->http://www.slideshare.net/salaboy/drools5-community-training-module-6-drools-dsl-spreadsheets
> • slideshare hands on -> 
> http://www.slideshare.net/salaboy/drools5-communitytrraining-handson-2-dsl-spreadsheets
> • code: https://github.com/Salaboy/Drools_jBPM5-Training-Examples
> 
> 2011-09-01 Drools Use Case: Smart Content Selection
> • Mauricio "Salaboy" Salatino 
> • slideshare ->http://www.slideshare.net/salaboy/smart-content-selection
> • code: https://github.com/Salaboy/smart-content-selection
> 
> Do you know if there is a similar page for jBPM5 in the jbpm.org site? 
> 
> Cheers
> 
> PS: I leave the links just in case, but you can delete them if they bother.
> 
> 
> 
> -- 
>  - CTO @ http://www.plugtree.com 
>  - MyJourney @ http://salaboy.wordpress.com
> - Co-Founder @ http://www.jugargentina.org
>  - Co-Founder @ http://www.jbug.com.ar
>  
>  - Salatino "Salaboy" Mauricio -
> 
> 
> ___
> 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


Re: [rules-users] [Drools Flow 5.1] Updating a process definition -> Proceed updates running processes

2011-05-25 Thread Salaboy
Well the documentation sounds clear to me. The running process instances will 
continue running with the old version of the process and the new ones will pick 
the last uploaded version. If someone modifies the process definition a new 
version of the process will be created.
Cheers 

- CTO @ http://www.plugtree.com
- MyJourney @ http://salaboy.wordpress.com
- Co-Founder @ http://www.jbug.com.ar
- Mauricio "Salaboy" Salatino -

On 25/05/2011, at 16:05, "anton.litvinenko"  wrote:

> Esteban, please explain if a process cannot be updated (and one has to deploy
> a new process with a different id whenever he/she changes the process
> definition), then what does the second part of the
> http://downloads.jboss.com/drools/docs/5.1.1.34858.FINAL/drools-flow/html/ch04.html#d0e1514
> mean?
> 
> Quoting the doc:
> "By default, Drools Flow uses the proceed approach, meaning that multiple
> versions of the same process can be deployed, but existing process instances
> will simply continue executing based on the process definition that was used
> when starting the process instance."
> 
> But if the id is different then, these are different processes and Drools
> Flow simply doesn't know that they are same processes under different names.
> So, the "proceed" behavior is met trivially - there is not even possible for
> 2 different versions of the same process to exist at the same time? Do I
> understand correctly that for Drools Flow 2 processes are the same when it
> they have the same id?
> 
> So, basically, if I use Guvnor and someone uploads a new version of the
> process and compiles it, then my application automatically picks up the
> updated version even for currently running processes (stopped at
> asynchronous step) is that correct? And if I want existing processes to
> continue then I need to use a different id for update process (and hence
> re-configure the whole app to start processes based on new id) which kind of
> a kills all the Guvnor idea.
> 
> It seems like I am not understanding something. I would be very thankful, if
> someone could explain to me, what I am getting wrong.
> 
> Thanks!
> 
> --
> View this message in context: 
> http://drools.46999.n3.nabble.com/Drools-Flow-5-1-Updating-a-process-definition-Proceed-updates-running-processes-tp2928103p2985647.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users

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


Re: [rules-users] Distributed Knowledge Base

2011-05-23 Thread Salaboy
Totally, that one of the ideas and it's currently supported.
Drools grid allows you to create different execution nodes that can be located 
in different virtual/physic machine and then dynamically create sessions inside 
of them using a very similar API. The main idea right now in grid is to 
abstract the location where the ksession is actually running. 
Drools grid current implementation also provides a white pages service that 
allows you to register sessions by name. That will allow you to query the grid 
for a particular session, and the grid will return you a remote handler to the 
remotely hosted session.

Cheers 

- CTO @ http://www.plugtree.com
- MyJourney @ http://salaboy.wordpress.com
- Co-Founder @ http://www.jbug.com.ar
- Mauricio "Salaboy" Salatino -

On 23/05/2011, at 06:29, "Abhay B. Chaware"  
wrote:

> Using Drools Grid, is it possible to distribute rulebases based on category ? 
>  e.g.  All computer related rules deployed on server A, all school related 
> rules deployed on Server B and then based on which app you are coming from, 
> just return a session handle from that particular server ?  In other words, 
> is it possible to load ( and evaluate ) rules based on category in Drools or 
> Drools Grid ?
> 
>  
> 
> 
> This message contains information that may be privileged or confidential and 
> is the property of the KPIT Cummins Infosystems Ltd. It is intended only for 
> the person to whom it is addressed. If you are not the intended recipient, 
> you are not authorized to read, print, retain copy, disseminate, distribute, 
> or use this message or any part thereof. If you receive this message in 
> error, please notify the sender immediately and delete all copies of this 
> message. KPIT Cummins Infosystems Ltd. does not accept any liability for 
> virus infected mails.
> ___
> 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] Problem (or question) about drools

2011-05-12 Thread Salaboy
Yes this is the correct one. 

- CTO @ http://www.plugtree.com
- MyJourney @ http://salaboy.wordpress.com
- Co-Founder @ http://www.jbug.com.ar
- Mauricio "Salaboy" Salatino -

On 12/05/2011, at 04:49, Nico ROEDERER  wrote:

> Hi,
> 
> I would like to know if it's the correct e-mail list for problems/questions 
> about Drools ?
> If not, what's the correct email, please ?
> 
> Thank you.
> N.
> ___
> 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] updating a .drl file

2011-03-14 Thread Salaboy
Can you clarify or exemplify a little bit more your situation to us? 
We need to understand what are you trying to achieve in order to help.
Drl files are simple and plain text files, you can add rules with any text 
editor.
Greetings

- CTO @ http://www.plugtree.com
- MyJourney @ http://salaboy.wordpress.com
- Co-Founder @ http://www.jbug.com.ar
- Mauricio "Salaboy" Salatino -

On 14/03/2011, at 05:28, kedar vyawahare  wrote:

> Hi all,
> 
> I m trying to add rules in .drl file  from User Interface. but not able to do 
> that.
> I want to add rules from user  so that it will directly add that rule to my 
> .drl file. and will update my .drl  file.
> Please help me.
> 
> Thanks in advance,
> Kedar.
> 
> 
> ___
> 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] New to Drools. Is it possible to test inverse conditions?

2011-03-10 Thread Salaboy
You can use not(Person(age > 30))
greetings

- CTO @ http://www.plugtree.com
- MyJourney @ http://salaboy.wordpress.com
- Co-Founder @ http://www.jbug.com.ar
- Mauricio "Salaboy" Salatino -

On 10/03/2011, at 06:09, Manuel Ortiz  wrote:

> Dear all:
> 
> My name is Manuel Ortiz, a very beginner in Drools, and have a question 
> related to Multi Restriction on Condition Elements.
> 
> In 
> http://downloads.jboss.com/drools/docs/5.1.1.34858.FINAL/drools-expert/html/ch04.html#RuleLanguage-ConditionalElements,
>  it can be found the following example:
> 
> Example 4.52. Multi Restriction
> 
> // Simple multi restriction using a single &&
> Person( age > 30 && < 40 )
> // Complex multi restriction using groupings of multi restrictions
> Person( age ( (> 30 && < 40) ||
>   (> 20 && < 25) ) )
> // Mixing muti restrictions with constraint connectives
> Person( age > 30 && < 40 || location == "london" )
> I need to test a multi restriction in a rule and the opposite restriction in 
> another. The multi restriction will be given by the user, and the application 
> will build rules which test both the original restriction and the opposite. I 
> would like to know if it is possible to write a Drools rule which evals the 
> opposite conditions based on the original, something like
> Person( !(age > 30 && < 40) )
> or I have to rebuild the multi restriction, something like
> Person( age <= 30 || >= 40 )
> Thank you in advance for your time.
> 
> Kind regards,
> 
> Manuel Ortiz
> ___
> 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] unsolved myth regarding transitive closure using insertlogical...

2011-02-19 Thread Salaboy
I will take a look on those classes, sounds really interesting. 

- CTO @ http://www.plugtree.com
- MyJourney @ http://salaboy.wordpress.com
- Co-Founder @ http://www.jbug.com.ar
- Mauricio "Salaboy" Salatino -

On 19/02/2011, at 05:24, Mark Proctor  wrote:

> I think to impl this what is needed is a "logical" node. At the moment 
> the entire LHS forms the justification. But if we supported a logical 
> node, we could do this:
> rule "reachDirect"
> salience 10
> when
> logical( e : Edge(s1 : source, t1 : target) )
> not( Reach(source == s1, target == t1) )
> then
> insertLogical( new Reach(e.getSource(),e.getTarget()) );
> System.out.println( "Reach " + e.getSource() + "," + 
> e.getTarget() );
> end
> 
> 
> That means that it would be inserted when there was no Reach, but it 
> would only be retracted when there was no matching Edge. The 
> justification is only for the part of the rule that is in the logical 
> grouping.
> 
> To do this is actually quite a trivial change in drools, but it's not 
> something we do now. I think one reason why I held off was that i was 
> looking at Jess and Clips that have this and they state you can have 
> multiple logical elements. But i could't figure out how having 2 or 3 
> would differ, compare to having just one.
> 
> Anway to support a singe logical element, you'd need to update the 
> parser to support 'logical' conditional element, in the same format as 
> 'not' and 'exists'. Then if you look at RuleTerminalNode you'll see the 
> part of the code that is related to removing the justifications,  on a 
> retract or modify - removeLogicalDependencies. Likewise if you look in 
> the DefaultKnowlegeHelper you'll see how the insertion works. That could 
> would instead be copied to the logical node. If a logical node exists 
> the RTN should have an if statement so the same code does not execute again.
> 
> Any takers?
> 
> Mark
> 
> 
> On 19/02/2011 05:20, Simon Chen wrote:
>> Hi all,
>> 
>> I know this is kinda an old topic, but I just couldn't get it working.
>> 
>> Here is a previous attempt using insertLogical() to handle transitive
>> closure:
>> http://drools-java-rules-engine.46999.n3.nabble.com/transitive-closure-td56855.html#a56858
>> The problem with this one is that the newly "logically inserted" object
>> would violate its own "not exists" condition term, thus removing itself,
>> then goes the infinite circle of insert/remove...
>> 
>> Here is a post that deals with transitive closure using "insert", but it
>> doesn't handle object removal correctly:
>> http://drools-java-rules-engine.46999.n3.nabble.com/one-question-about-Transitive-Closure-td57289.html
>> 
>> 
>> To me, using insertLogical is attractive because it doesn't require me to
>> write specific rules to handle object removal. Is there a trick that I can
>> use to actually implement transitive closure with insertLogical?
>> 
>> Thanks a lot!
>> -Simon
>> ___
>> 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


Re: [rules-users] gwt-console source code

2011-02-05 Thread Salaboy
Hi there, the drools / jbpm project is now using git. Go to 
github.com/droolsjbpm

Greetings! 

- CTO @ http://www.plugtree.com
- MyJourney @ http://salaboy.wordpress.com
- Co-Founder @ http://www.jbug.com.ar
- Mauricio "Salaboy" Salatino -

On 05/02/2011, at 10:36, gs76pl  wrote:

> 
> hi,
> 
> where can i find gwt-source code with client parts (html pages, gwt code
> etc)? I went through
> http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-process/
> modules and nowhere can i find this code. All i can find there are some
> parts of the gwt-console or gwt-console-server :(
> -- 
> View this message in context: 
> http://drools-java-rules-engine.46999.n3.nabble.com/gwt-console-source-code-tp2431034p2431034.html
> Sent from the Drools - User mailing list archive at Nabble.com.
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users

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


Re: [rules-users] Drools Java and .Net

2011-02-02 Thread Salaboy
Are you including drools-compiler as a dependency?
Greetings! 

- CTO @ http://www.plugtree.com
- MyJourney @ http://salaboy.wordpress.com
- Co-Founder @ http://www.jbug.com.ar
- Mauricio "Salaboy" Salatino -

On 02/02/2011, at 05:40, FrankVhh  wrote:

> 
> Hi all,
> 
> Thanks for your inputs. As you suggested, this week I tried to use IKVM to
> make Drools and .NET work together.
> 
> Converting the Java implementation of drools to dll, importing dll into .NET
> and calling the java functions isn't that hard, once you are a little bit
> familiar with ikvm. No syntax errors in Visual Studio when I do this.
> 
> However, there seems to be going something wrong on execution. It appears to
> me that the execution environment does not recognize the "drools-language".
> 
> The execution crashes on the first call of Drools code
> (knowledgebuilderfactory.new KnowledgeBuilder()) with the errors: 
>- IllegalArgumentException : Unable to instantiate service for Class
> 'org.drools.builder.KnowledgeBuilderFactoryService"
>- ClassNotFoundException:
> org.drools.builder.impl.KnowledgeBuilderFactoryServiceImpl
> 
> This means there are some dependancies missing, right? But should I be
> looking to add some jars to the IKVM-JVM? Or is this definitely a problem of
> wrong jar to dll conversion?
> 
> Corneil, could you tell me whether you ran into dependancy problems as well?
> 
> fyi I also tried to import the drools library as dll into .NET and then
> rewrite the entire wrapping code in .NET. This didn't return any syntax
> errors either, but got stuck in execution as well. (With same errors).
> 
> Regards,
> Frank
> 
> 
> Corneil du Plessis wrote:
>> 
>> We have successfully used IKVM to create a dlls for our Drools
>> application.
>> 
>> The performance was a bit slower on IKVM/.Net as in Sun Java 5.
>> We dynamically load a large number of rules and found the largest impact 
>> is to the 'load time'
>> 
>> The performance impact was not such that it would make a network call 
>> viable; especially with 1000s of clients.
>> 
>> Apart from the performance impact the behaviour is exactly the same.
>> 
>> On 25/01/2011 17:04, FrankVhh wrote:
>>> Hi all,
>>> 
>>> Suppose that you have a rule engine that needs to be embedded on the
>>> machine
>>> and that there is no way to call the rules as a service from a
>>> centralized
>>> server, what approach would one have to choose to make Drools and .NET
>>> work?
>>> 
>>> The rulke engine will have to be cached to improve performance, so that
>>> part, until there is an up-to-date version of Drools.NET, has to be in
>>> Java
>>> anyway. Then you expose your JAVA code as a (local) service and let .NET
>>> call it? Or am I seeing things wrong here?
>>> 
>>> I must stipulate that I am not an expert in .NET at all, and I know only
>>> barely enough Java to get Drools working :-).
>>> 
>>> Thanks for your help.
>>> 
>>> Kind regards,
>>> Frank
>>> 
>>> 
>>> salaboy wrote:
>>>> Yes, and if you want to use the rule engine from .NET you can use the
>>>> Drools
>>>> Server that expose the Drools Runtime in REST and SOAP interfaces :)
>>>> Greetings.
>>>> 
>>>> 2011/1/19 Michael Anstis
>>>> 
>>>>> Hi,
>>>>> 
>>>>> I believe the .NET implementation of Drools is somewhat out dated.
>>>>> 
>>>>> However Drools ticks all your other requirements.
>>>>> 
>>>>> With kind regards,
>>>>> 
>>>>> Mike
>>>>> 
>>>>> 2011/1/19 Gorantla, Bhaskar (GE Capital)
>>>>> 
>>>>>> We are looking for a rules engine that has the following
>>>>>> characteristics.
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 1.   Supports both Java and .net
>>>>>> 
>>>>>> 2.   Provides a business user friendly UI for creating/editing
>>>>>> rules
>>>>>> 
>>>>>> 3.   Supports versioning
>>>>>> 
>>>>>> 4.   The rues in the rules repository are accessible to both Java
>>>>>> and
>>>>>> .net applications – Nice to have
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> Do you know whethe

Re: [rules-users] Mythic Game Project Addition Artificial Intelligence and Quest System Components

2011-01-11 Thread Salaboy
Count me in, that's exactly what we want to achieve with the emergency service 
application in the long term, we are miles away from that goals, but one of the 
next steps is trying to automatically drive ambulances and add natural 
disasters to the situation.
I will look forward to the Mythic game project, probably to stole some ideas or 
to help with something there.
Greetings

- CTO @ http://www.plugtree.com
- MyJourney @ http://salaboy.wordpress.com
- Co-Founder @ http://www.jbug.com.ar
- Mauricio "Salaboy" Salatino -

On 10/01/2011, at 20:11, Mark Proctor  wrote:

> http://blog.athico.com/2011/01/mythic-game-project-addition-artificial.html
> 
> "In this project, we describe the design decisions and principles behind 
> the arti cial intelligence (AI) for a multiplayer online role playing 
> game, and our use of an expert system to implement it. We explain how we 
> organize AI rules into les, how those rules are assembled from a 
> database, how AI is assigned to entities, the di erent types of AI, the 
> di erent phases of AI, and how we manage facts used by AI. We also 
> review some of the history behind the Mythic project, where it is 
> headed, what an expert system is and why we chose to use one for our 
> project. The result of our project is a design that allows us to have 
> diverse AI behavior and exibility to reuse code to create new behaviors, 
> but may prove to be ineffcient if implemented on systems with many 
> players or many instances of AI running."
> 
> ___
> 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] Swing GUI & Drools

2011-01-05 Thread Salaboy
Heh I have an application using drools 5 and swing, btw where did you get the 
drools 2.5 source code? 

- CTO @ http://www.plugtree.com
- MyJourney @ http://salaboy.wordpress.com
- Co-Founder @ http://www.jbug.com.ar
- Mauricio "Salaboy" Salatino -

On 05/01/2011, at 20:51, albertkao  wrote:

> 
> I want to find out whether Swing GUI, Drools 2.5 (the only version approved
> by my company) & JDK 1.6.20 are a good fit for my application.
> i.e. whether my application is complex enough to use Drools.
> If Drools should be used, please give some hints how to implement with
> Drools 2.5.
> The business logic is:
> if (Entity = Corporation) {
>   Switch (Account type) {
>   1: the Entity dropdown box field should be greyed out; the In
> checkbox should be enabled.
>   2: the Entity dropdown box field should be greyed out; the Out field
> should be selected.
>   3: the Entity dropdown box field show all the available values;
>   4: the Entity dropdown box field show value1, value2 only.
> } else {
>   // ...
> }
> 
> 
> -- 
> View this message in context: 
> http://drools-java-rules-engine.46999.n3.nabble.com/Swing-GUI-Drools-tp2202386p2202386.html
> Sent from the Drools - User mailing list archive at Nabble.com.
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users

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


Re: [rules-users] regarding Jbilling

2010-12-30 Thread Salaboy
Nice! 

- CTO @ http://www.plugtree.com
- MyJourney @ http://salaboy.wordpress.com
- Co-Founder @ http://www.jbug.com.ar
- Mauricio "Salaboy" Salatino -

On 30/12/2010, at 14:33, Edson Tirelli  wrote:

>   Mauricio, JBilling embeds Drools as their rules engine.
> 
>   Unfortunately I have no experience with JBilling. You are probably
> better asking for that on their forums.
> 
>   Edson
> 
> 2010/12/30 Salaboy :
>> ?? Is that question related with drools in a strange and hidden/twisted way?
>> 
>> - CTO @ http://www.plugtree.com
>> - MyJourney @ http://salaboy.wordpress.com
>> - Co-Founder @ http://www.jbug.com.ar
>> - Mauricio "Salaboy" Salatino -
>> 
>> On 30/12/2010, at 04:00, "wasim.khan318"  wrote:
>> 
>>> 
>>> Any one who has configured jbilling on Mssql server , or is there any link
>>> for that
>>> --
>>> View this message in context: 
>>> http://drools-java-rules-engine.46999.n3.nabble.com/regarding-Jbilling-tp2166407p2166407.html
>>> Sent from the Drools - User mailing list archive at Nabble.com.
>>> ___
>>> rules-users mailing list
>>> rules-users@lists.jboss.org
>>> https://lists.jboss.org/mailman/listinfo/rules-users
>> 
>> ___
>> rules-users mailing list
>> rules-users@lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/rules-users
>> 
> 
> 
> 
> -- 
>   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] regarding Jbilling

2010-12-30 Thread Salaboy
?? Is that question related with drools in a strange and hidden/twisted way? 

- CTO @ http://www.plugtree.com
- MyJourney @ http://salaboy.wordpress.com
- Co-Founder @ http://www.jbug.com.ar
- Mauricio "Salaboy" Salatino -

On 30/12/2010, at 04:00, "wasim.khan318"  wrote:

> 
> Any one who has configured jbilling on Mssql server , or is there any link
> for that 
> -- 
> View this message in context: 
> http://drools-java-rules-engine.46999.n3.nabble.com/regarding-Jbilling-tp2166407p2166407.html
> Sent from the Drools - User mailing list archive at Nabble.com.
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users

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


Re: [rules-users] Integration of Drools with Hadoop

2010-12-30 Thread Salaboy
I prefer the repository approach. Where the repository knows where to store our 
business assets and meta data. Right now guvnor is using jcr that can also be 
clustered. 
I'm not saying that hadoop it's not a good idea, but the integration itself 
should be in the repository.
My two cents.

- CTO @ http://www.plugtree.com
- MyJourney @ http://salaboy.wordpress.com
- Co-Founder @ http://www.jbug.com.ar
- Mauricio "Salaboy" Salatino -

On 30/12/2010, at 01:26, dwellman  wrote:

> 
> Just a thought, but you may want to move your .drl files into hdfs and not
> read them from local disk - the slaves may not have a clear shot to those
> files otherwise;
> 
> "file:///home/roger/Projects/gridx/"; ==> /hadoopfs/projects/gridx/
> 
> it may require a custom reader but its not hard to extend one. 
> 
> -- 
> View this message in context: 
> http://drools-java-rules-engine.46999.n3.nabble.com/Integration-of-Drools-with-Hadoop-tp1815129p2165966.html
> Sent from the Drools - User mailing list archive at Nabble.com.
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users

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


Re: [rules-users] Starting resource change scanner and notifier in drools-server.

2010-11-27 Thread Salaboy
Which version are you using? In 5.2.0.SNAPSHOT you can create a new session 
dynamically each time.
Then use some eviction policy to clean up the unneeded ones. 
Greetings

- CTO @ http://www.plugtree.com
- MyJourney @ http://salaboy.wordpress.com
- Co-Founder @ http://www.jbug.com.ar
- Mauricio "Salaboy" Salatino -

On 27/11/2010, at 20:08, flo  wrote:

> 
> Bumping this thread - I'm actually observing exactly the same behaviour (all
> resources are being pulled via http). Anyone got news on this or some advice
> how to fix this?
> 
> Thanks!
> Best,
> flo
> -- 
> View this message in context: 
> http://drools-java-rules-engine.46999.n3.nabble.com/Starting-resource-change-scanner-and-notifier-in-drools-server-tp1528921p1979535.html
> Sent from the Drools - User mailing list archive at Nabble.com.
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users

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


Re: [rules-users] Drools Human Task Service Persistence

2010-11-09 Thread Salaboy
You can overrride the persistence annotations and names using XML mappings. 
That's the solution, you should read the hibernate docs in order to find out 
how to do that. Would be nice also to talk with Kris to know if we can change 
the attr name to make it compatible.


- CTO @ http://www.plugtree.com
- MyJourney @ http://salaboy.wordpress.com
- Co-Founder @ http://www.jbug.com.ar
- Mauricio "Salaboy" Salatino -

On 09/11/2010, at 12:45, ramram  wrote:

> 
> Hi All,
> 
>   Yes as you are stating the problem is from these keywords such as start
> and date.
> 
> Salaboy,
> 
>   Meanly the column name [date] is causing the problem, the question is how
> to fix such issues. What do you recommend in such a case? is there any
> Drools example working with Oracle persistance? 
> 
> Thanks all for your support.
> 
> 
> Regards,
> Ram
> -- 
> View this message in context: 
> http://drools-java-rules-engine.46999.n3.nabble.com/Drools-Human-Task-Service-Persistence-tp1868778p1869958.html
> Sent from the Drools - User mailing list archive at Nabble.com.
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users

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


Re: [rules-users] Variable Notation in rule Condition

2010-10-13 Thread Salaboy
In your beans Do you use caps for attributes ?


- CTO @ http://www.plugtree.com
- MyJourney @ http://salaboy.wordpress.com
- Co-Founder @ http://www.jbug.com.ar
- Mauricio "Salaboy" Salatino -

On 13/10/2010, at 22:20, sumatheja  wrote:

> Hi All,
> I have this doubt regarding the notation used inside the rule's 
> condition. I have a fact HOST having the variables HostName and CPUSockets. I 
> have the following rule
> 
> rule "Test"
> when
> HOST(HostName!=null, CPUSockets>3)
> then 
> # do something
> 
> Is throws an error saying cannot extract field HostName. It works fine when i 
> use hostName. Can anyone explain me the concept behind this.  Thanks in 
> advance :)
> 
> -- 
> cheers
> Sumatheja Dasararaju
> 
> 
> ___
> 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] I'd like to get Drools 5.0

2010-09-01 Thread Salaboy
If you have problems, let us know! 


- CTO @ http://www.plugtree.com
- MyJourney @ http://salaboy.wordpress.com
- Co-Founder @ http://www.jbug.com.ar
- Mauricio "Salaboy" Salatino -

On 01/09/2010, at 12:47, ttakeaki  wrote:

> 
> To:salaboy
> 
> Thanks!
> 
> I'll try to build them!
> 
> Thank's a lot for your information.
> -- 
> View this message in context: 
> http://drools-java-rules-engine.46999.n3.nabble.com/I-d-like-to-get-Drools-5-0-tp1395402p1401124.html
> Sent from the Drools - User mailing list archive at Nabble.com.
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users

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


Re: [rules-users] How Can a Drools Rule call another Drools Rule?

2010-08-22 Thread Salaboy
Drools have logicalInsert, what do you mean with: drools doesn't have this? It 
behaves differently than Jess and clips? 

- CTO @ http://www.plugtree.com
- MyJourney @ http://salaboy.wordpress.com
- Co-Founder @ http://www.jbug.com.ar
- Mauricio "Salaboy" Salatino -

On 21/08/2010, at 23:53, Socrates Frangis  wrote:

> Keep in mind that rules are declarative, it is against the nature of a rule 
> based expert system to force a rule to fire; youre kind of treating the rule 
> like a function.
> 
> My best advice is
> 
> 1)Create a POJO called "Flag", store a String and Boolean inside of it.
> 
> 2)On the RHS of the first rule, create the POJO and set the string to 
> something like "rule-03-fired" and set the boolean to 'true'
> 
> 3)In the rule you want to fire, add a pattern to check for a Flag Fact 
> Template with String value 'rule-03-fired' and 'true'
> 
> Note, this is normally done in CLIPS/JESS as logical assertions, but Drools 
> does not have this. However, i'm sure it's implemented the same on the back 
> end.
> 
> 2010/8/21 Michael Anstis 
> Look at the API; the overloaded method you use will only fire 2 rules.
> 
> You probably need fireAllRules();
> 
> 2010/8/20 Sanjib Karmakar 
> 
> Sir 
> 
> Thank you very much for your reply. 
> In fact what I wanted to execute the specific rule out of say 10 rules. 
> 
> I have tried 
> ksession.fireAllRules(2); 
> Then only first 2 rules get executed. 
> 
> Please let me know if there is any way-out to call specific rules out of 
> bunch of rules. 
> It would be extremely helpful if you please share a code snippet regarding 
> this. 
> 
> Regards
> Sanjib Karmakar
> SkyTech Solutions Pvt. Ltd
> 
> Please consider the environment before printing this email. 
> 
> 
> "Wolfgang Laun-2 [via Drools - Java Rules Engine]" <[hidden email]>
> 08/19/2010 07:45 PM
> 
> To
> Sanjib Karmakar <[hidden email]> 
> cc
> Subject
> Re: How Can a Drools Rule call another Drools Rule?
> 
> 
> 
> 
> 
> Rules are never "called". Changes in WM create (and also delete) 
> "activations": tuples consisting of a rule and the fact objects 
> matching the left hand side patterns. From this set of activations, 
> rule right hand sides are executed according to salience (and other 
> criteria). 
> 
> Perhaps if you describe the actual problem...? 
> 
> -W 
> 
> 
> On 19 August 2010 06:58, Sanjib Karmakar <[hidden email]> wrote: 
> 
> > 
> > Hi friends 
> > 
> > I would like to execute a rule say Rule-1 from inside another rule say 
> > Rule-2. 
> > In project I am using xml and not drl, and I am using Drools 5.0 
> > 
> > Please let me know how to call a rule from another rule. 
> > 
> > Thanks 
> > Sanjib 
> > -- 
> > View this message in context: 
> > http://drools-java-rules-engine.46999.n3.nabble.com/How-Can-a-Drools-Rule-call-another-Drools-Rule-tp1219190p1219190.html
> > Sent from the Drools - User mailing list archive at Nabble.com. 
> > ___ 
> > rules-users mailing list 
> > [hidden email] 
> > https://lists.jboss.org/mailman/listinfo/rules-users
> > 
> ___ 
> rules-users mailing list 
> [hidden email] 
> https://lists.jboss.org/mailman/listinfo/rules-users
> 
> View message @ 
> http://drools-java-rules-engine.46999.n3.nabble.com/How-Can-a-Drools-Rule-call-another-Drools-Rule-tp1219190p1225490.html
>  
> To unsubscribe from How Can a Drools Rule call another Drools Rule?, click 
> here. 
> 
> View this message in context: Re: How Can a Drools Rule call another Drools 
> Rule?
> Sent from the Drools - User mailing list archive at Nabble.com.
> 
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
> 
> 
> 
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
> 
> 
> ___
> 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] Drools Scalability

2010-08-18 Thread Salaboy
That's my blog! 
The feature it's already in the trunk but it's experimental. If you are 
interested to test it I can assist you in order to improve it! 
Greetings! 

- CTO @ http://www.plugtree.com
- MyJourney @ http://salaboy.wordpress.com
- Co-Founder @ http://www.jbug.com.ar
- Mauricio "Salaboy" Salatino -

On 18/08/2010, at 17:14, Orlando Costa  wrote:

> 
> Thanks Mauricio, I guess having multiple sessions was in our mind as well.
> 
> But this Drools Grid looks quite interesting and promising:
> http://salaboy.wordpress.com/2010/04/07/drools-grid-rio-project-using-gnostic/
> 
> When will the feature be released, by end of this year?
> Br
> Orlando.
> 
> -- 
> View this message in context: 
> http://drools-java-rules-engine.46999.n3.nabble.com/Drools-Scalability-tp1194022p1213479.html
> Sent from the Drools - User mailing list archive at Nabble.com.
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users

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


Re: [rules-users] How to configure conditional elements (IN, FROM) in Guvnor and more

2010-07-18 Thread Salaboy
Which version of guvnor are you using? 

- CTO @ http://www.plugtree.com
- MyJourney @ http://salaboy.wordpress.com
- Co-Founder @ http://www.jbug.com.ar
- Mauricio "Salaboy" Salatino -

On Jul 18, 2010, at 4:22, Patricia Bogoevici  
wrote:

> Hi,
> 
> I am evaluating Drools Guvnor for our application, and I am stuck with a few 
> things. I appreciate a lot, if someone can help me, or give me some hints. 
> 
> 1) How can I configure Guvnor, BRL Guided Editor, to allow for IN conditional 
> element?
> By default, when I create a new package, and then create a new BRL rule, I 
> have these options for a text Fact field:
> - equal
> - not equal
> - matches
> - sounds
> I do have the IN conditional element for the Decision Table rule - "is 
> contained in the a (comma separated) list". 
> 
> 2) How can I configure Guvnor, Decision table, to use the FROM condition 
> element?
> I have a fact, Fact1, that contains a list of Fact2. The condition I need to 
> configure in the Decision Table, is to iterate the collection of Fact2 
> objects that is on the Fact1, and apply constraints on Fact2 fields. 
> 
> 3) How can I insert a list of facts when testing a rule? My test case is the 
> following:
> I have a Fact1, which contains a list of Fact2. And the rule, is expecting to 
> get Fact1, with a list of Fact2 inside. 
> When I create the Fact1, and add the collection field, it shows the option to 
> create a guided list where I can specify a literal value, or a variable. But 
> there is nowhere to create a Fact2 with its fields. I did inserted 2 separate 
> Fact2 objects, but how I can link these 2 objects to the collection of the 
> Fact1?
> 
> Thanks in advance,
> Patricia
> 
> ___
> 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] Drools 5.1.0.M2 - WorkItemNodeInstance -- Listeners can't get hold of WorkItem object

2010-07-09 Thread Salaboy
I would like to take a look on this issue. Can you provide me a test case that 
show the problem? 

- CTO @ http://www.plugtree.com
- MyJourney @ http://salaboy.wordpress.com
- Co-Founder @ http://www.jbug.com.ar
- Mauricio "Salaboy" Salatino -

On Jul 9, 2010, at 12:43, Vijay K Pandey  wrote:

> I guess this problem was due to a fix done in WorkItemNodeInstance? Is this 
> the correct behavior? If yes how do we get hold of “WorkItem” instance in the 
> attached listeners?
> 
>  
> 
> http://fisheye.jboss.org/browse/JBossRules/trunk/drools-core/src/main/java/org/drools/workflow/instance/node/WorkItemNodeInstance.java?r1=32801&r2=
> 
>  
> 
> Thanks
> 
> Vijay
> 
> From: Vijay K Pandey 
> Sent: Tuesday, June 15, 2010 9:20 AM
> To: 'Rules Users List'
> Subject: RE: Drools 5.1.0.M2 - WorkItemNodeInstance -- Listeners can't get 
> hold of WorkItem object
> 
>  
> 
> Any one on this issue? Any Drools Flow expert?
> 
>  
> 
> Appreciate your time for taking a look at it.
> 
>  
> 
> Thanks
> 
> Vijay
> 
> From: Vijay K Pandey 
> Sent: Thursday, June 10, 2010 12:03 PM
> To: 'Rules Users List'
> Subject: RE: Drools 5.1.0.M2 - WorkItemNodeInstance -- Listeners can't get 
> hold of WorkItem object
> 
>  
> 
> Should I log this as a JIRA ticket.
> 
>  
> 
> Thanks
> 
> Vijay
> 
> From: Vijay K Pandey 
> Sent: Wednesday, June 09, 2010 9:57 AM
> To: 'Rules Users List'
> Subject: Drools 5.1.0.M2 - WorkItemNodeInstance -- Listeners can't get hold 
> of WorkItem object
> 
>  
> 
> Hi,
> 
>  
> 
> There is a change done in Drools 5.1.0.M2 - 
> org.drools.workflow.instance.node.WorkItemNodeInstance class in the method
> 
>  
> 
> public void triggerCompleted(WorkItem workItem) at line 196  which is 
> setting the workItemId as -1
> 
>  
> 
> this.workItemId = -1;
> 
>  
> 
> Due to the above change the listeners which are attached to the  “complete” 
> event of the work item – such as the method below
> 
>  
> 
> public void beforeNodeLeft(ProcessNodeLeftEvent event)  are not able to get 
> hold of the associated workitem object as it returns null.
> 
>  
> 
> Is there any specific reason that workItemId is set to -1 even before the 
> associated listeners get triggered or is this a bug?
> 
>  
> 
> If it was an intended change then how do I get hold of the “WorkItem” object 
> in the attached listeners.
> 
>  
> 
> Thanks
> 
> Vijay
> 
> p.s This change was not there in the snapshot of 18th April 2010 which I was 
> earlier working on. Above is the only change in this class from the snapshot 
> of 18th April and 5.1.0.M2
> 
> ___
> 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] WorkItemNodeInstance and the on exit action

2010-07-09 Thread Salaboy
About the out-mapping attribute, you are right this will copy the values from 
the variables inside the workitem to the process level.
Greetings

- CTO @ http://www.plugtree.com
- MyJourney @ http://salaboy.wordpress.com
- Co-Founder @ http://www.jbug.com.ar
- Mauricio "Salaboy" Salatino -

On Jul 9, 2010, at 11:22, Chris Raschl  wrote:

> Hi Kris,
> we experienced some troubles with our drools flow integration today
> (we upgraded to the lastest snapshot) and I found out that is has to
> do with a fix (see [1]) you commited some time ago.
> 
> Our problem is, that we access the data submitted by the user to
> finish a human task in the on exit action of the human task node
> like this:
> 
> WorkItemNodeInstance wini = (WorkItemNodeInstance)context.getNodeInstance();
> Map result = (Map Object>)wini.getWorkItem().getResult("Result");
> 
> This results in a NPE because the workItemId is set to -1 in the 
> WorkItemNodeInstance
> before getWorkItem() is called. So getWorkItem() returns null.
> 
> Is there a better (recommended) way to work with human task data? Maybe using 
> an
> out-mapping?
> 
> Thanks,
> chris
> 
> [1] 
> http://fisheye.jboss.org/browse/JBossRules/trunk/drools-core/src/main/java/org/drools/workflow/instance/node/WorkItemNodeInstance.java?r1=32801&r2=
> ___
> 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] WorkItemNodeInstance and the on exit action

2010-07-09 Thread Salaboy
Hi man, 
Did you recognize this error after update?

Why are you doing that if you have the human tasks Apis to complete a task that 
automatically set the result values.

I would like to take a look at your issue, can you provide me more info about 
it?

Greetings

- CTO @ http://www.plugtree.com
- MyJourney @ http://salaboy.wordpress.com
- Co-Founder @ http://www.jbug.com.ar
- Mauricio "Salaboy" Salatino -

On Jul 9, 2010, at 11:22, Chris Raschl  wrote:

> Hi Kris,
> we experienced some troubles with our drools flow integration today
> (we upgraded to the lastest snapshot) and I found out that is has to
> do with a fix (see [1]) you commited some time ago.
> 
> Our problem is, that we access the data submitted by the user to
> finish a human task in the on exit action of the human task node
> like this:
> 
> WorkItemNodeInstance wini = (WorkItemNodeInstance)context.getNodeInstance();
> Map result = (Map Object>)wini.getWorkItem().getResult("Result");
> 
> This results in a NPE because the workItemId is set to -1 in the 
> WorkItemNodeInstance
> before getWorkItem() is called. So getWorkItem() returns null.
> 
> Is there a better (recommended) way to work with human task data? Maybe using 
> an
> out-mapping?
> 
> Thanks,
> chris
> 
> [1] 
> http://fisheye.jboss.org/browse/JBossRules/trunk/drools-core/src/main/java/org/drools/workflow/instance/node/WorkItemNodeInstance.java?r1=32801&r2=
> ___
> 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] Time to Scale some Drools

2010-07-01 Thread Salaboy
There will be some differences based on the underlying implementations  
that you choose. Drools grid will be just a common way to use those  
technologies. Right now I'm focused in hosting/access (using diferent  
transports) not in caching, but this could be easily added. About  
gridgain, I'm willing to test their drools integration and provide  
that solution integrated with grid too. As far as I saw, gridgain it's  
a map reduce solution, so I'm looking forward to some  ode running  
using it.

Greetings!

- CTO @ http://www.plugtree.com
- MyJourney @ http://salaboy.wordpress.com
- Co-Founder @ http://www.jbug.com.ar
- Mauricio "Salaboy" Salatino -

On Jul 1, 2010, at 1:31, tolitius  wrote:

>
> Hey Mauricio,
>
>Different SLAs for different clients. But the most sensitive one  
> is a 60
> milliseconds transaction round trip.
>
>I know you were working on "grid", maybe it is too early to ask,  
> but how
> would that be different from already existing / mature solutions:  
> placing
> kbases to Tarraccota / Hazelcast / Gemfire, and spicing it up with  
> GridGain
> for the hosting / access?
>
> Thank you,
> /Anatoly
> -- 
> View this message in context: 
> http://drools-java-rules-engine.46999.n3.nabble.com/Time-to-Scale-some-Drools-tp934703p935253.html
> Sent from the Drools - User mailing list archive at Nabble.com.
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Time to Scale some Drools

2010-06-30 Thread Salaboy
Hi man, I'm working on drool-grid exactly for those scenarios I will  
be committing a new version next week, and it will be really nice if  
you can take a look on it. After my commit next week I will include  
more advanced technics to caching kbases on a distributed  
environments. Can you share your sla requirements that you have? So I  
can stress the current implementation.
Greetings!

- CTO @ http://www.plugtree.com
- MyJourney @ http://salaboy.wordpress.com
- Co-Founder @ http://www.jbug.com.ar
- Mauricio "Salaboy" Salatino -

On Jun 30, 2010, at 20:05, tolitius  wrote:

>
> 1. What are the options to scale?
>
> If many rule requests are coming from different nodes ( server  
> nodes ) OR
> many rule requests are coming from the same node, but with a very high
> frequency: WHAT ARE THE BEST PRACTICE(S) to:
>
>  Create
>  Expose
>  Access
>
> All the knowledge artifacts? ( KnowledgeBase, Session, etc... )
>
> Guvnor is not production ready, hence I am looking for ways / best  
> practices
> with production ready components.
>
> 2. I understand that "session creation is very light", but how  
> light? We
> have certain SLAs in milliseconds for the whole "request / response"  
> travel,
> which would include throwing facts into the engine and getting  
> results.
>
> 3. Seems like caching a KnowlegeBase ( e.g. GemFire, Terracotta,  
> etc.. )
> across nodes would be one way to go, what are others?
>
> Thank you,
> /Anatoly
> -- 
> View this message in context: 
> http://drools-java-rules-engine.46999.n3.nabble.com/Time-to-Scale-some-Drools-tp934703p934703.html
> Sent from the Drools - User mailing list archive at Nabble.com.
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Drools 5 setGlobal

2010-06-22 Thread Salaboy
Well, in the second code snippet you are trying to set an unexistent  
variable called test2. For setting a global variable you need to  
define it first in the drl file. Greetings!

- CTO @ http://www.plugtree.com
- MyJourney @ http://salaboy.wordpress.com
- Co-Founder @ http://www.jbug.com.ar
- Mauricio "Salaboy" Salatino -

On Jun 22, 2010, at 4:32, Samuli Saarinen   
wrote:

> Hello,
>
> I'm new to drools and have problems with globals or with the different
> behaviour of drools depending on how the globals are specified.
>
> I have the following simple rule:
>
> global String test
>
> rule "Global"
>   when
>   then
> System.out.println(test);
> end
>
> If i run the rule with:
>
> KnowledgeBase kb = getKnowledgeBase("global.drl");
> StatelessKnowledgeSession ses = kb.newStatelessKnowledgeSession();
> ses.setGlobal("test2", "foo");
> ses.execute("");
>
> I get the expected result of null printed
>
> but if I use commands:
>
> KnowledgeBase kb = getKnowledgeBase("global.drl");
> StatelessKnowledgeSession ses = kb.newStatelessKnowledgeSession();
> List> cmds = new ArrayList>();
> cmds.add(CommandFactory.newSetGlobal("test2", "bar"));
> cmds.add(CommandFactory.newInsert(""));
> ses.execute(CommandFactory.newBatchExecution(cmds));
>
> I get java.lang.RuntimeException: Unexpected global [test2]
>
> Why is the behaviour different and which one is correct?
>
> Regards,
>
> Samuli
>
>
> -- 
> Remion Oy   Etävalvontajärjestelmät liiketoiminnan
> Samuli Saarinen   tehostamiseen
> gsm +358 (0)50 3560075
> fax +358 (0)3 2125064   www.remion.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] data manipulation

2010-06-08 Thread Salaboy
For data manipulation you can use something like apache camel. To  
transform the information and then make inferences over it.
Greetings

- CTO @ http://www.plugtree.com
- MyJourney @ http://salaboy.wordpress.com
- Co-Founder @ http://www.jbug.com.ar
- Mauricio "Salaboy" Salatino -

On Jun 8, 2010, at 15:45, Betto Bardi  wrote:

> Hi all,
>
> We recently implemented Drools in a mortgage application process.  
> The primary task of the business rule engine was to determine the  
> fraud risk of an application. The application is delivered in XML  
> format. We noticed that we were implementing a lot of data  
> manipulation actions in the drl file itself. For example, the  
> calculation of total income by calculating the sum of a number of  
> elements or calculating the distance between two geo-locations based  
> on zip codes. The actual evaluation rules acted on this 'derived'  
> information.
>
> When looking back the drl file contained a lot of code and looked  
> pretty complicated compared to the actual evaluation rules. My  
> question is, what is your opinion on data manipulation or  
> transformation within the drl file? If the drl file is not the best  
> place for this, what would you suggest for data manipulation?
>
> Thanks,
> Betto
>
>
>
>
> ___
> 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] Drools Rule Engine

2010-05-21 Thread Salaboy
1) yes
2) no drools was disigned to handle a lot of rules, that's why rules  
templates exist
3) yes if you have a situation where your rules can be generated using  
a template.

- Ing. Mauricio Salatino -

On May 21, 2010, at 5:25, ramram  wrote:

>
> Hi,
>
>  I have checked the rule template. I have the following questions on  
> it:
> 1-The rule template will create rules on the number of the data that  
> are
> found so what will happen if I have 100,000 lines will this mean  
> that I will
> have 100,000 rules created??
> 2- will this affect the performance ??
> 3- do you recommend using rule templates??
>
>
> Regards,
> Ram
> -- 
> View this message in context: 
> http://drools-java-rules-engine.46999.n3.nabble.com/Drools-Rule-Engine-tp826156p833715.html
> Sent from the Drools - User mailing list archive at Nabble.com.
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Drools Road Map ????????????

2010-05-21 Thread Salaboy
I think that the decision is done by the project leader plus all the  
community members that are ending new features (usually not  
estimatable work/innovative), closing bug (non trivial ones), etc. In  
a big project like drools it's very difficult to set up deadlines and  
coordinate deliverables with this high grade of innovation. In my  
perspective(from the community side) this is not the best way to do  
it, but it give us innovation.

- Ing. Mauricio Salatino -

On May 21, 2010, at 8:07, "Swindells, Thomas"   
wrote:

> I might be wrong but I think the answer is there isn't a roadmap and  
> concrete dates can't really exist when its a subjective of when the  
> code has reached the milestone (there are no artificial constraints  
> of customer deadlines to force a particular release date).
>
> What the more important question seems to be is what is the  
> philosophy on how drools releases are performed?  Who makes the  
> decision and on what basis is it being made on. (with the sub  
> question of does this work for the community).
>
> There seems to be a number of different philosophies that different  
> open source projects use on determine releases:
> 1. Every new feature is a release - release numbers are cheap and it  
> allows features and bug fixes to get out quicker requiring less time  
> spent on the list recommending people try trunk.
> 2. Group features up but still release regular and often.  Has most  
> of the advantages of above but better if more manual testing needs  
> to be done for a release.
> 3. Have fixed iterations with clear commit and stabalization/test  
> cycles.  Easier for users to understand when the next release will  
> be available and still have confidence in the stability and  
> reliability of it.
> 4. Have a roadmap with clearly defined feature sets for each  
> particular release.  Release when those features have proved stable  
> - ideally with a clear criteria of when that occurs.
> 5. Like 4 but the roadmap is just in the project leaders head with  
> little visibility to the user about what is happening when or why.
>
> So the question is which of these does Drools fit into and which  
> would the community like it to fit into?
>
> Thomas
>
>> -Original Message-
>> From: rules-users-boun...@lists.jboss.org [mailto:rules-users-
>> boun...@lists.jboss.org] On Behalf Of KiranP
>> Sent: 21 May 2010 11:38
>> To: rules-users@lists.jboss.org
>> Subject: [rules-users] Drools Road Map 
>>
>>
>> hello ,
>> our team has decided to use drools-flow and guvnor for a process  
>> critical
>> application
>> we have been evaluating drools for 6-7 mnths till now but we still  
>> didnt get
>> any news on M2 release
>>
>> can anybody point me to drools RoadMAp???
>>
>> answers like ...nearly finished and .will be there in sometime  
>> are at
>> all not required
>>
>> plz give some concrete dates
>>
>> if it exist???
>>
>> -
>> Keep Working >>
>> KiranP
>> --
>> View this message in context: http://drools-java-rules-
>> engine.46999.n3.nabble.com/Drools-Road-Map-tp833931p833931.html
>> Sent from the Drools - User mailing list archive at Nabble.com.
>> ___
>> rules-users mailing list
>> rules-users@lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
> *** 
> *** 
> *** 
> *** 
> *** 
> *** 
> 
> This message is confidential and intended only for the addressee. If  
> you have received this message in error, please immediately notify  
> the postmas...@nds.com and delete it from your system as well as any  
> copies. The content of e-mails as well as traffic data may be  
> monitored by NDS for employment and security purposes. To protect  
> the environment please do not print this e-mail unless necessary.
>
> NDS Limited. Registered Office: One London Road, Staines, Middlesex,  
> TW18 4EX, United Kingdom. A company registered in England and Wales.  
> Registered no. 3080780. VAT no. GB 603 8808 40-00
> *** 
> *** 
> *** 
> *** 
> *** 
> *** 
> 
>
> ___
> 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] issue with 'forall'

2010-05-12 Thread Salaboy
By the way you understand that doesn't make sense to do that LHS  
right? You can do forall(Message())

- Ing. Mauricio Salatino -

On May 12, 2010, at 13:52, Michal Bali  wrote:

> Hi,
>
> I have encountered the following problem with the latest Drools 5.1  
> SNAPSHOT
>
> I've created a sample Drools project and replaced the Sample.drl  
> with the following:
> --Sample.drl--
> package com.sample
>
> import com.sample.DroolsTest.Message;
>
> rule "Hello World"
>   when
>   forall( Message( )
>   Message() )
>   then
>   System.out.println("executed"); 
> end
> 
> If I run the sample application  like this everything is fine -  
> "executed" is printed. However, if I modify the main method and  
> insert some additional fact just before the message fact is  
> inserted, like this:
> --DroolsTest.java---
> .
> ksession.insert(new Object());
> ksession.insert(message);
> .
> ---
> then the rule won't fire any more.
>
> Please note that if you change the fact insertion order (first the  
> message then the Object) it will work as expected.
>
> Is this a bug or am I missing something? I can file a JIRA if needed.
>
> Thank you!
> Best regards,
> Michal
> ___
> 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] issue with 'forall'

2010-05-12 Thread Salaboy
Hi Michal,
Can you paste here the information/output of your runtime logger?

- Ing. Mauricio Salatino -

On May 12, 2010, at 13:52, Michal Bali  wrote:

> Hi,
>
> I have encountered the following problem with the latest Drools 5.1  
> SNAPSHOT
>
> I've created a sample Drools project and replaced the Sample.drl  
> with the following:
> --Sample.drl--
> package com.sample
>
> import com.sample.DroolsTest.Message;
>
> rule "Hello World"
>   when
>   forall( Message( )
>   Message() )
>   then
>   System.out.println("executed"); 
> end
> 
> If I run the sample application  like this everything is fine -  
> "executed" is printed. However, if I modify the main method and  
> insert some additional fact just before the message fact is  
> inserted, like this:
> --DroolsTest.java---
> .
> ksession.insert(new Object());
> ksession.insert(message);
> .
> ---
> then the rule won't fire any more.
>
> Please note that if you change the fact insertion order (first the  
> message then the Object) it will work as expected.
>
> Is this a bug or am I missing something? I can file a JIRA if needed.
>
> Thank you!
> Best regards,
> Michal
> ___
> 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] possible bug in latest SNAPSHOT - AccumulateFunction.init() is called when calling modify()

2010-05-12 Thread Salaboy
Could be that the modify make the rule condition to be no longer true,  
and for that reason the acumulation is zero in that point? I would  
like to try it but I'm in my cell phone.

- Ing. Mauricio Salatino -

On May 12, 2010, at 6:58, Michal Bali  wrote:

> Hi,
>
> I may have found a bug with accumulate and 'modify(..)' function  
> call. It seems that once the modify(..) is called it indirectly  
> calls AccumulateFunction.init() which invalidates accumulated data.  
> I have included a simple test case:
>
> I am using the latest snapshot of Drools 5.1.SNAPSHOT
>
> I have created a sample Drools project and just modified the  
> Sample.drl with this:
> -
> import java.util.List;
> import java.util.ArrayList;
>
> declare Holder
>   list : List
> end
>
> rule "Hello World"
>   when
>   m : Message( )
>   then
>   insert(new Holder());
> end
>
> rule "GoodBye"
>   when
>   $holder : Holder( list == null )
>   $messages : List() from accumulate(
>   $message: Message(), collectList($message) )
>   then
>   System.out.println($messages); //<-- here the $messages list 
> has  
> one element
>   modify($holder) {
>   setList($messages)
>   }
>   System.out.println($messages); //<-- here the $messages list is 
>  
> empty
> end
> -
>
> Let me know if you need more information. I can create a JIRA if  
> needed.
>
> Thank you!
> Best regards,
> Michal
> ___
> 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] Mavenizing a new drools project

2010-05-10 Thread Salaboy
You need to move the rules inside /src/main/resources/ and maven will  
include the rule file into the classpath automatically.


- Ing. Mauricio Salatino -

On May 10, 2010, at 8:21, eyal edri  wrote:


I'm still having problem unfortunately.. :(

i get a strange error that i didn't got before turning to maven:

when running:

kbuilder.add(ResourceFactory.newClassPathResource("src/main/rules/ 
sample.drl"), ResourceType.DRL);


this errors occurs:
java.lang.RuntimeException: java.io.FileNotFoundException: 'src/main/ 
rules/sample.drl' cannot be opened because it does not exist
	at org.drools.compiler.PackageBuilder.addKnowledgeResource 
(PackageBuilder.java:559)
	at org.drools.builder.impl.KnowledgeBuilderImpl.add 
(KnowledgeBuilderImpl.java:25)
	at com.commtouch.drools.DroolsTest.readKnowledgeBase 
(DroolsTest.java:42)

at com.commtouch.drools.DroolsTest.main(DroolsTest.java:25)
Caused by: java.io.FileNotFoundException: 'src/main/rules/ 
sample.drl' cannot be opened because it does not exist
	at org.drools.io.impl.ClassPathResource.getInputStream 
(ClassPathResource.java:104)
	at org.drools.compiler.PackageBuilder.addPackageFromDrl 
(PackageBuilder.java:287)
	at org.drools.compiler.PackageBuilder.addKnowledgeResource 
(PackageBuilder.java:488)

... 3 more

i see a difference between the .classpth and .project files in both  
projects (Drools project vs Maven Project).

could this be the reason?

Eyal.

On Mon, May 10, 2010 at 12:20 PM, eyal edri   
wrote:
OK, the eclipse maven plugin added those deps type as 'pom' instead  
of 'jar',

so the drools jars weren't included.

fixed that.

thanks.


On Mon, May 10, 2010 at 11:25 AM, eyal edri   
wrote:

OK, Still got problems.

i've created a maven project, and all looks good in compile time  
(with all the org.drools dep below).


but i think i still missing a 'runtime' dependency, cause when i try  
to run the Hello World example, i get this error:


[the src line is this:
KnowledgeBuilder kbuilder =  
KnowledgeBuilderFactory.newKnowledgeBuilder();]


org.drools.ProviderInitializationException: Provider  
org.drools.builder.impl.KnowledgeBuilderProviderImpl could not be set.
	at org.drools.builder.KnowledgeBuilderFactory.loadProvider 
(KnowledgeBuilderFactory.java:111)
	at  
org.drools.builder.KnowledgeBuilderFactory.getKnowledgeBuilderProvider( 
KnowledgeBuilderFactory.java:101)
	at org.drools.builder.KnowledgeBuilderFactory.newKnowledgeBuilder 
(KnowledgeBuilderFactory.java:29)
	at com.commtouch.drools.DroolsTest.readKnowledgeBase 
(DroolsTest.java:38)

at com.commtouch.drools.DroolsTest.main(DroolsTest.java:24)
Caused by: java.lang.ClassNotFoundException:  
org.drools.builder.impl.KnowledgeBuilderProviderImpl

at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
	at org.drools.builder.KnowledgeBuilderFactory.loadProvider 
(KnowledgeBuilderFactory.java:108)


am i missing org.drools.builder? (i didn't see it in the maven repo..)

On Sun, May 9, 2010 at 3:35 PM, Salaboy  wrote:
I always prefer to create the maven projects from the scratch. You
only need to add the following deps (groupid and artifactid)

org.drools
drools-api

org.drools
drools-core

org.drools
drools-compiler

You probably need to add the jboss repository as well in order to get
this deps

Repository.jboss.org/maven2


- Ing. Mauricio Salatino -

On May 9, 2010, at 5:01, eyal edri  wrote:

> Hi,
>
> I've created the HelloWorld drools sample project and i want to turn
> it into a maven project.
>
> i know i can create and empty maven project and copy all sources
> from the drools project to it,
> but how do i handle the dependant jars (drools runtime?)
>
> is there a guide of how to mavenize your drools projects?
>
> --
> Eyal Edri
> ___
> 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



--
Eyal Edri



--
Eyal Edri



--
Eyal Edri
___
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] Mavenizing a new drools project

2010-05-09 Thread Salaboy
I always prefer to create the maven projects from the scratch. You  
only need to add the following deps (groupid and artifactid)

org.drools
drools-api

org.drools
drools-core

org.drools
drools-compiler

You probably need to add the jboss repository as well in order to get  
this deps

Repository.jboss.org/maven2


- Ing. Mauricio Salatino -

On May 9, 2010, at 5:01, eyal edri  wrote:

> Hi,
>
> I've created the HelloWorld drools sample project and i want to turn  
> it into a maven project.
>
> i know i can create and empty maven project and copy all sources  
> from the drools project to it,
> but how do i handle the dependant jars (drools runtime?)
>
> is there a guide of how to mavenize your drools projects?
>
> -- 
> Eyal Edri
> ___
> 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] How to access process variables within a work-item (human task)

2010-04-26 Thread Salaboy
Did you register the equipement variable at process level? Mapping  
uses that definitions to know about the variables used across the  
processes.
Greetings

- Ing. Mauricio Salatino -

On Apr 26, 2010, at 1:56, Robert  wrote:

> Hi,
>
> I have
>
> ...
> StatefulKnowledgeSession
> ksession.getWorkItemManager().registerWorkItemHandler("Human Task",
> taskHandler);
> ...
>
> Map processVariables = new HashMap Object>();
> processVariables.put("equipment", "OvenQP33");
>
> ProcessInstance pi = ksession.startProcess(processName,
> processVariables);
> ...
>
> ... within the taskHandler.executeWorkItem(WorkItem workItem,
> WorkItemManager workItemManager):
>
> I am setting a break-point, and I am getting there, but how am I  
> able to
> access my processVariables or even set specific data for this  
> particular
> work-item ?
>
> I tried using as described in the doc "9.1 Human tasks inside  
> processes":
>
>- Parameter mapping: Allows copying the value of process  
> variables to
> parameters of the human task. Upon creation of the human 
> tasks, the
> values will be copied.
>
> But without any success. I just not getting to the "equipment"  
> variable,
> which I need at this point of processing the work-item.
>
> The mapping I did: "equipment" -> "equipment". With the hope to find  
> them
> within workItem.getParameters(), but they are not there and nowhere- 
> else
> too.
>
> Any ideas ?
>
> Generally there are even many more settings possible for the human  
> task,
> see doc (here the list:
> Id, 
> Name,TaskName,Priority,Comment,ActorId,Skippable,Content,Swimlane,On- 
> entry
> and on-exit actions,Parameter mapping,Result  
> mapping,Timers,ParentId), but
> only a few are accessible through workItem.getParameters(). The  
> others ?
> Also, no idea to get this data.
>
> Cheers, Rob.
>
>
> -- 
> Erstellt mit Operas revolutionärem E-Mail-Modul: http://www.opera.com/mail 
> /
> ___
> 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] Drools Flow: weird behaviour

2010-04-26 Thread Salaboy
Can you share your process diagram with us? Did you register your  
human task work item handler?

- Ing. Mauricio Salatino -

On Apr 26, 2010, at 5:34, HMandic  wrote:

>
> My understanding of Drools Flow was that when you start a process it  
> gets up
> to its first Human task and stops there until you complete it and  
> then the
> process continues. Apparently I've got it wrong...
>
> So I have this workflow (process - let's call it MainFlow) that  
> consists of
> a Human task and a "for each" element with one SubFlow (let's call  
> this one
> SubFlow_1) inside. SubFlow_1 also has a Human task and another SubFlow
> (SubFlow_2) inside its "for each" element. SubFlow_2 has a single  
> Human task
> that has System.out.print("I'm here...") as its OnEntryAction. All  
> of those
> Human tasks have similar OnEntryAction so I know when I'm inside of  
> them.
>
> When I start the MainFlow 'ksession.startProcess("MainFlow");' the  
> process
> does NOT stop at first Human task (I know that because it doesn't  
> print out
> what it should) and it prints out "I'm here...", how does that happen?
>
> It should have gone through many Work items before it even reached  
> that
> Human task.
>
> There are no errors or exceptions in the log, ruleflow files are  
> validated
> in eclipse, both subflows' "Independent" properties are set to  
> "false" etc.
>
> Does anyone know a solution?
>
>
>
>
> -- 
> View this message in context: 
> http://drools-java-rules-engine.46999.n3.nabble.com/Drools-Flow-weird-behaviour-tp756167p756167.html
> Sent from the Drools - User mailing list archive at Nabble.com.
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Newbie question on drools flow split node

2010-04-14 Thread Salaboy
Hi,
Did you insert in your ksession at least one Instance of an object  
type Parameters an an instance of Result?

- Ing. Mauricio Salatino -

On Apr 14, 2010, at 2:34, kuena  wrote:

>
> I have a process similar to one  shown below that uses a split node:
> start > split >  [pass | fail] > ..
> My constrain merely checks if the provided value is less or greater  
> than
> some fixed value, say 50. All works well except in the case where I  
> want the
> fixed value to be retrieved elsewhere. That is,  if my constrain is
> Result(value >50) all works but as soon as I try something like:
>Parameters(max:threshold)
>Result(value >max)
> I get an error to the effect "XOR split could not find at least one  
> valid
> outgoing connection".  I have tried a number of things but I think I  
> am
> missing something. Please help me.
>
> thanks :-)
>
>
>
>
> -- 
> View this message in context: 
> http://n3.nabble.com/Newbie-question-on-drools-flow-split-node-tp717822p717822.html
> Sent from the Drools - User mailing list archive at Nabble.com.
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Resuming Flow: NPE when completing a work item

2010-04-13 Thread Salaboy
Good to know that, can you share with us the types of the parameter  
mappings, because this mappings get persisted to a binary snapshot in  
the db. For this reason all the stuff that you put in there needs to  
be serializable.
I'm implementing the same mechanism used by variable persistence  
strategies to those mappings in work items parameters.

- Ing. Mauricio Salatino -

On Apr 13, 2010, at 19:04, nanic23  wrote:

>
> Hi Mauricio,
>
> I am setting my "env" the following way:
>env = KnowledgeBaseFactory.newEnvironment();
>env.set(EnvironmentName.ENTITY_MANAGER_FACTORY, emf);
>env.set(EnvironmentName.GLOBALS, new MapGlobalResolver());
>
> My registerWorkItemHandlers() method registers workItemHandlers the
> following way:
>
>manager.registerWorkItemHandler("SomeHandler", new SomeHandler 
> ());
>manager.registerWorkItemHandler("SomeOtherHandler", new
> SomeOtherHandler());
>
> After configuring the environment and registering the  
> workItemHandlers I
> reload the Session as follow:
>
> ksession = JPAKnowledgeService.loadStatefulKnowledgeSession 
> ( SESSION_ID,
> knowledgeBase, null, env );
>
> I am using the same knowledgeBase I used to originally start the  
> workflow,
> the sessionId is the correct as I can see this on the DB, and I  
> think I'm
> setting the "env" correctly as well.
>
> I hope this gives you a better picture of what is going on.
>
> Please let me know if you have any questions.
>
> Thanks,
>
> Nick.
>
> P.S. I agree with Tolitius... if I don't have any "Parameter Mapping"
> variables going in the workItem it runs fine. But whenever I have a
> Parameter Mapped for the workItem I get this error.
>
> -- 
> View this message in context: 
> http://n3.nabble.com/Resuming-Flow-NPE-when-completing-a-work-item-tp716847p717407.html
> Sent from the Drools - User mailing list archive at Nabble.com.
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Resuming Flow: NPE when completing a work item

2010-04-13 Thread Salaboy
With a simple test case of the problem we can figured out the solution  
of it's a problem or fix it if it's a bug. In both situations we will  
be happy to help!

- Ing. Mauricio Salatino -

On Apr 13, 2010, at 16:52, tolitius  wrote:

>
> It seems that if the Drools Flow Workitem has ANY parameters mapped  
> (e.g.
> ), the  
> InputMarshaller's for
> loop gets executed:
>
>int nbParameters = stream.readInt();
>
>for ( int i = 0; i < nbParameters; i++ ) {
>String name = stream.readUTF();
>
>Object value = stream.readObject();  //  Always a  
> NULL
> RuleBase ==> Null Pointer Exception down the line inside the  
> callback of
> this method (as described above) 
>workItem.setParameter( name, value );  //   Never  
> gets here
>
>   Which internally calls MarshallerReaderContext.resolveClass, and  
> throws a
> NullPointerException.
>
>   Seems like a very dangerous place to have a bug ( if it is a bug, of
> course ), since that means that nobody actually resumed workitems with
> parameters [ in a different thread / execution ] after the flow was
> suspended... Also I did not find any framework tests for it [ separate
> threaded (real life) ones ].
>
> /Anatoly
>
> P.S. I guess it is missed because Drools Flow rely on the out of the  
> box
> WSHumanTask implementation (that is coupled with MinaServer, hence  
> we don't
> use it). But, again, that is really strange, if it is a bug of  
> course..
> -- 
> View this message in context: 
> http://n3.nabble.com/Resuming-Flow-NPE-when-completing-a-work-item-tp716847p717126.html
> Sent from the Drools - User mailing list archive at Nabble.com.
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Difference ruleflow agenda-group

2010-04-06 Thread Salaboy

I will try to Improve the docs with some graphs

- Ing. Mauricio Salatino -

On Apr 6, 2010, at 16:22, miguel machado  wrote:

Thanks a lot for clearing that up, i was about to ask the exact same  
question. I don't think the documentation is 100% accurate on this  
particular subject.


_ miguel



2010/4/6 Mauricio Salatino 
they both work in a different way.
agenda-groups works like a stack, when you put the focus on one  
agenda group all the activated rules in that group will be fired,  
when there is no more activated rules on that groups, the stack  
jumps to the next group in the stack firing all the rules activated  
there, until it reaches the MAIN group (when you don't specify any  
agenda-group).


Ruleflow groups isolate completely the activated rules execution. It  
only execute the activated rules in that ruleflowgroup. It doesn't  
behave as a stack.


2010/4/6 Bertrand Grottier 
Hello,
Can someone explain me the difference between ruleflow and agenda- 
group ?
I am asking the question because I managed to create a "ruleflow"  
based on agenda-group.
What is the additionnal value of ruleflow ? Just ease of use or is  
there anything else ?

Thank you in advance.
Benoît

Commander un cadeau en ligne discrètement? Voir la solution offerte  
par Internet Explorer8


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




--
- http://salaboy.wordpress.com
- http://www.jbug.com.ar
- Salatino "Salaboy" Mauricio -

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




--
"To understand what is recursion you must first understand recursion"
___
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] Resuming the Flow: SESSION_ID, PROCESS_INSTANCE_ID, WORKITEM_ID

2010-04-02 Thread Salaboy
Yes state is there. For your implementation you can create the high  
level API that you want, there's no problem with that right?

I see that we discuss about what the framework should do or not based  
on different perspectives. We can continue forever if you do not  
switch your perspective. The code is there and it allows you to build  
applications applying the mechanisms that work better for you. For  
what I know there is no plan to create an API like the one you  
mention. (honestly I don't think it worth it, from the project  
perspective)
Everything else that I can offer are suggestions to do a real  
implentation, but that will requiere as I mention before, knowledge  
about your particular domain.

- Ing. Mauricio Salatino -

On Apr 2, 2010, at 23:58, tolitius  wrote:

>
> my point exactly.
>
> "state" IS there in framework's ProcessInstance AND in framework's  
> WorkItem,
> hence it IS a framework concern [it is a framework DSL]. Therefore  
> it needs
> to be addressed by straightforward clean and simple APIs.
>
> /Anatoly
> -- 
> View this message in context: 
> http://n3.nabble.com/Resuming-the-Flow-SESSION-ID-PROCESS-INSTANCE-ID-WORKITEM-ID-tp607507p694317.html
> Sent from the Drools - User mailing list archive at Nabble.com.
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Resuming the Flow: SESSION_ID, PROCESS_INSTANCE_ID, WORKITEM_ID

2010-04-02 Thread Salaboy
Yes nodeinstances is for that

- Ing. Mauricio Salatino -

On Apr 2, 2010, at 13:24, tolitius  wrote:

>
> Yes, but even without WS-HT, framework has WORKITEMINFO, with  
> WORKITEMID...
>
> It just seems so natural for a workflow (or how many buzzzy people  
> call it a
> "BPM solution") to KNOW which elements of the flow are in the wait  
> state,
> without any custom built components.
>
> Don't you think?
> -- 
> View this message in context: 
> http://n3.nabble.com/Resuming-the-Flow-SESSION-ID-PROCESS-INSTANCE-ID-WORKITEM-ID-tp607507p693226.html
> Sent from the Drools - User mailing list archive at Nabble.com.
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Drools Flow Error Question

2010-03-31 Thread Salaboy
Did you start the task server?

- Ing. Mauricio Salatino -

On Mar 31, 2010, at 23:03, eljefe  wrote:

>
> I have created a simple flow that goes Start -> Human Task -> End.  
> Within the
> code to run it I assigned the default WSHumanTaskHandler. However  
> when I try
> running the program I receive an error saying the Handler failed to  
> connect.
> Do you guys have any idea what could be causing the problem?
> -- 
> View this message in context: 
> http://n3.nabble.com/Drools-Flow-Error-Question-tp689838p689838.html
> Sent from the Drools - User mailing list archive at Nabble.com.
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Resuming the Flow: SESSION_ID, PROCESS_INSTANCE_ID, WORKITEM_ID

2010-03-27 Thread Salaboy
You can do both approachs.

- Ing. Mauricio Salatino -

On Mar 27, 2010, at 4:30, tolitius  wrote:

>
> I understand it is persisted (with WS handler out of the box), what  
> I need to
> be able to do is to find _this particular_ WorkItemID once the flow is
> resumed not relying on WS handler.
>
> WS implementation of Human Task handler, persists workItemID and  
> have a task
> associated with it, therefore, when the task gets completed, the  
> framework
> knows how to find that workItemId, since it is associated with _that_
> particular task.
>
> But let's say I am not using WS human task handler, and I have my own
> workItemHandler. What I need to be able to do is having SESSION_ID and
> PROCESS_INSTANCE_ID to find that _particular_ workItemId, that  
> causes the
> flow to wait.
>
> I understand I can get all the node instances, and all the subflow  
> node
> instances, etc.. iterate over all the workitems... But instead what  
> I want
> to be able to do is something similar to:
>
> processInstance.findWorkItemsInWaitState()
>
> where it gives me [most of the time a single, but can be] a list of  
> only
> those work items that _currently_ cause the flow to wait. And if I  
> do not do
> any kind of parallel processing (true async parallel processing), it  
> is
> always going to be just that one work item that I need.
>
> Is that something I can do, or do I need to come up with a different
> approach (one of which I talked before [saving a work item id as a  
> flow
> variable])?
>
> Thank you,
> /Anatoly
> -- 
> View this message in context: 
> http://n3.nabble.com/Resuming-the-Flow-SESSION-ID-PROCESS-INSTANCE-ID-WORKITEM-ID-tp607507p679600.html
> Sent from the Drools - User mailing list archive at Nabble.com.
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Eclipse + drools = The Eclipse JDT Core jar is not in the classpath ??

2010-03-20 Thread Salaboy
That's a common eclipse error, if you cannot fix it you can always  
include the janino dependency.

- Ing. Mauricio Salatino -

On Mar 20, 2010, at 6:12, "Patrick Sannes"  wrote:

> Hi,
>
> I tried to search a lot, but couldn't find a real solution to my  
> problem. I
> have the latest version of Eclipse installed and installed the  
> drools plugin
> 5.0.1 . I configured runtime (dropped it in c:\Users\Patrick 
> \Droolsruntime\)
> After starting a new drools project It created a Hello World example  
> (im
> new, so a nice start ;))
> When I tried to run the DroolsTest.Java I get the error at the end  
> of the
> email.
> Hope someone can help me out.
>
> Regards
> Patrick
>
> org.drools.RuntimeDroolsException: Unable to load dialect
> 'org.drools.rule.builder.dialect.java.JavaDialectConfiguration:java:org.droo
 

> ls.rule.builder.dialect.java.JavaDialectConfiguration'
>at
> org.drools.compiler.PackageBuilderConfiguration.addDialect 
> (PackageBuilderCon
> figuration.java:274)
>at
> org.drools.compiler.PackageBuilderConfiguration.buildDialectConfigurationMap
 

> (PackageBuilderConfiguration.java:259)
>at
> org.drools.compiler.PackageBuilderConfiguration.init 
> (PackageBuilderConfigura
> tion.java:176)
>at
> org.drools.compiler.PackageBuilderConfiguration. 
> (PackageBuilderConfigu
> ration.java:153)
>at
> org.drools.compiler.PackageBuilder.(PackageBuilder.java:242)
>at
> org.drools.compiler.PackageBuilder.(PackageBuilder.java:142)
>at
> org.drools.builder.impl.KnowledgeBuilderProviderImpl.newKnowledgeBuilder( 
> Kno
> wledgeBuilderProviderImpl.java:29)
>at
> org.drools.builder.KnowledgeBuilderFactory.newKnowledgeBuilder 
> (KnowledgeBuil
> derFactory.java:29)
>at com.sample.DroolsTest.readKnowledgeBase(DroolsTest.java:39)
>at com.sample.DroolsTest.main(DroolsTest.java:23)
> Caused by: java.lang.RuntimeException: The Eclipse JDT Core jar is  
> not in
> the classpath
>at
> org.drools.rule.builder.dialect.java.JavaDialectConfiguration.setCompiler( 
> Ja
> vaDialectConfiguration.java:94)
>at
> org.drools.rule.builder.dialect.java.JavaDialectConfiguration.init 
> (JavaDiale
> ctConfiguration.java:55)
>at
> org.drools.compiler.PackageBuilderConfiguration.addDialect 
> (PackageBuilderCon
> figuration.java:270)
>... 9 more
>
> ___
> 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] Drools Flow: Variable Persistence Strategies

2010-02-19 Thread Salaboy
Yes that's a common practice! Sorry for the delay in my answer. I will  
try to test and your contribution asap!

Greetings!

- Ing. Mauricio Salatino -

On Feb 19, 2010, at 15:59, Dale Wyttenbach   
wrote:


Here's another idea to bounce off of you: Given  
StringVariablePersister, you can easily persist things other than  
Strings, so long as you can construct them from a String.  (Boolean,  
Integer, etc).  In the attached patch, I abstracted your  
StringVariablePersister and created a BooleanVariablePersister.   
What do you think?


2010/2/18 Mauricio Salatino 
Yes, of course, I add the VPS feature into drools so, I'm glad to  
see that it's useful, I will add that persister, and if you are  
interested in do some contributions with JCR will be nice too!

Thanks a lot for your contributions!


2010/2/18 Dale Wyttenbach 
Excellent, I have attached a unit test that demonstrates a query  
made possible by the first patch, in case you are interested.  The  
unit test is designed to run in your example DroolsFlowVPS project,  
since StringVariablePersister is not part of drools-persistence- 
jpa.  (Could StringVariablePersister be contributed to drools?)


2010/2/18 Mauricio Salatino 
The first patch is already in the trunk.
About the second problem, we are trying to remove the
@CollectionOfElements annotation, (because it's hibernate specific)  
that's why you see the other one commented out. I will try fix it  
asap, to be able to use toplink as persistence provider as well.  
Probably that will fix your problem too.




2010/2/18 Dale Wyttenbach 
That's correct, it works fine using h2.  Thanks.

2010/2/18 Mauricio Salatino 

Let me take a look at that too.. probably it's an oracle problem  
right? I mean, probably it just happen with oracle.. we can create a  
fix for that too



2010/2/18 Dale Wyttenbach 

My pleasure.

Within ProcessInstanceInfo, I've got a similar observation about the  
eventTypes member.  'private Set' is currently commented  
out in favor of 'private Set'.  When using an Oracle  
hibernate dialect, this results in the DDL 'create table  
ProcessInstanceInfo_eventTypes' which yields the error 'ORA-00972:  
identifier is too long'.  I imagine this will be resolved when the  
String is promoted to EventType but I thought you might want to know.


2010/2/13 Mauricio Salatino 

done.. I will apply the patch into the trunk.. it seems to be correct.
Thanks a lot!

2010/2/13 Dale Wyttenbach 

Please see attached.


2010/2/12 Mauricio Salatino 
I just want to make sure before apply the patch that the change will  
not impact in other places.

Thanks


On Fri, Feb 12, 2010 at 5:38 PM, Mauricio Salatino  
 wrote:
can you post both, previous and new, sql schema generated for the  
VariableInstanceInfo and ProcessInstanceInfo tables?




2010/2/12 Dale Wyttenbach 
If you try to write a query that requires  
VariableInstanceInfo.processId, it won't work because that class has  
no processId member.
I guessed that processInstanceId would be a better join column, and  
that worked (patch attached)


Thanks for the reply.

2010/2/12 Mauricio Salatino 

Hmm..
I'm looking at the source and I see the following mapping:

@OneToMany(cascade = CascadeType.ALL)
@JoinColumn(name = "processId")
@MapKey(name = "name")
private Map variables  =  
new HashMap();


That makes me think that there is a join column called processId  
between VariableInstanceInfo and ProcessInstanceInfo.



2010/2/12 Dale Wyttenbach 
I have a patch for drools-persistence-jpa should anyone agree with  
me that ProcessInstanceInfo and VariableInstanceInfo should be  
joined by processInstanceId.



On Fri, Feb 12, 2010 at 10:52 AM, Dale Wyttenbach > wrote:

I'm trying to adapt the StringVariablePersister presented in 
http://blog.athico.com/2009/09/drools-flow-variable-persistence.html

I can create process instances with variable "color":

  private static WorkflowProcessInstance startProcess 
(StatefulKnowledgeSession ksession, String color) {

Map vars = new HashMap();
vars.put("color", color);
WorkflowProcessInstance p1 = (WorkflowProcessInstance)  
ksession.startProcess("com.sample.ruleflow", vars);

return p1;
  }

I can count them:

select
count(*)
from
ProcessInstanceInfo

However I'm stymied as to counting process instances with a given  
color, as there appears to be no join column between  
ProcessInstanceInfo and VariableInstanceInfo.

Can such a query be written?

Thanks.





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




--
- http://salaboy.wordpress.com
- http://www.jbug.com.ar
- Salatino "Salaboy" Mauricio -

___
rules-users mailing list

Re: [rules-users] Stumped by error in rule

2010-02-09 Thread Salaboy

Yes that is the error, just a typo

- Ing. Mauricio Salatino -

On Feb 9, 2010, at 8:51, "Swindells, Thomas"  wrote:


Have you tried:

Applicant ( $ApplicantNumber : applicantNumber )



Eg your field should start with a lower case letter?



Thomas



From: rules-users-boun...@lists.jboss.org [mailto:rules-users- 
boun...@lists.jboss.org] On Behalf Of tom.e.mur...@wellsfargo.com

Sent: 09 February 2010 11:44
To: rules-users@lists.jboss.org
Subject: [rules-users] Stumped by error in rule



After all this time working with Drools 5.0.1, I thought I’d figured 
 out all the ways my syntax could fail, but this one has me stumped.




Any help would be appreciated.



I have the following rule:



rule "RS6051.1.2_"

dialect "mvel"

when



Applicant ( $ApplicantNumber : ApplicantNumber )

not ( ScoreCard (name == "Context test", contextId  
== $ApplicantNumber) )


then

ScoreCard scoreCard = functions.getScoreCardManager 
().newScoreCard();


scoreCard.setName("Context test");

scoreCard.setContextId($ApplicantNumber);

insert(scoreCard);

end



I’m getting the following error on this rule during compilation:



Unable to create Field Extractor for 'ApplicantNumber' : [Rule  
name='RS6051.1.2_']


org.drools.RuntimeDroolsException: Field/method 'ApplicantNumber'  
not found for class  
'com.wellsfargo.service.provider.sse.decisioning.x2009. 
Applicant'Unable to build expression for 'consequence': null '










And here is (part of) the Applicant class in question:



package com.wellsfargo.service.provider.sse.decisioning.x2009;

public class Applicant

{

public  Short getApplicantNumber()

{

return applicantNumber ;

}



public void setApplicantNumber(Short applicantNumber)

{

this.applicantNumber = applicantNumber;

}

Short applicantNumber;

}



And This is (part of) the ScoreCard class:



public class ScoreCard

{

public void setName(String name) { this.name = name; }

public String getName() { return name; }



public int getContextId(){return contextId;}

public void setContextId(int id){contextId = id;}

private String name;

private int contextId;

}







Why am I getting this error?

Help!

Thanks



Tom Murphy







*** 
*** 
*** 
*** 
*** 
*** 

This message is confidential and intended only for the addressee. If  
you have received this message in error, please immediately notify  
the postmas...@nds.com and delete it from your system as well as any  
copies. The content of e-mails as well as traffic data may be  
monitored by NDS for employment and security purposes. To protect  
the environment please do not print this e-mail unless necessary.


NDS Limited. Registered Office: One London Road, Staines, Middlesex,  
TW18 4EX, United Kingdom. A company registered in England and Wales.  
Registered no. 3080780. VAT no. GB 603 8808 40-00
*** 
*** 
*** 
*** 
*** 
*** 



This message is confidential and intended only for the addressee. If  
you have received this message in error, please immediately notify  
the postmas...@nds.com and delete it from your system as well as any  
copies. The content of e-mails as well as traffic data may be  
monitored by NDS for employment and security purposes.
To protect the environment please do not print this e-mail unless  
necessary.


An NDS Group Limited company. www.nds.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] Infinite loop when re-activating rules

2010-01-17 Thread Salaboy
Hi, you can add an extra restriction in C. That checks that the rules  
property is empty in the first rule, the second, the third, the fourth  
and the fifth will check the opposite. But the fifth rule will empty  
again the rules property making the first rule fire again. I think  
that you don't need lock on active or no loop with that.
Cheers

- Ing. Mauricio Salatino -

On Jan 17, 2010, at 9:23 AM, orchid  wrote:

>
> Hi All,
>
> I have a question about avoiding infinite loop, not  using 'no-loop'  
> or
> 'lock-active' since I want to re-activate rules. Suppose I have one  
> complex
> class C and a chain of rules in which Rule2 checks the result of  
> Rule1, Rule
> 3 checks the result of rule 2, etc... In the last rule ("Rule5") I  
> want to
> modify the class instance and re-activate the rules.
>
> rule "Rule1"
>  when
>$c:C(/*some conditions*/)
>  then
>modify ($c){addRule("Rule1")}
> end
>
> rule "Rule2"
>  when
>$c:C(rules contains "Rule1" && /*few more conditions*/)
>  then
>modify ($c){addRule("Rule2")}
> end
> ...
> ...
> ...
> rule "Rule5"
>  when
>$c:C(rules contains "Rule4" && /*few more conditions*/)
>  then
>modify ($c){changeAttribute("...")}
> end
>
> In order to avoid infinite loop I added 'lock-on-active' to Rule1, and
> 'no-loop true' to the rest rules. But, then the rules are not re- 
> activated
> as a result of Rule5. How can I cause re-activation of the rules. I  
> hope I
> was clear enough :))
>
> Thanks in advance !!!
>
> -- 
> View this message in context: 
> http://n3.nabble.com/Infinite-loop-when-re-activating-rules-tp123918p123918.html
> Sent from the Drools - User mailing list archive at Nabble.com.
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Firing only changed object rules in stateful sessions

2010-01-11 Thread Salaboy
It's just adding one prop to your fact and then validate with that  
property in your rules. Your rule rhs will modify that properties so  
your rule will not fire again

- Ing. Mauricio Salatino -

On Jan 11, 2010, at 11:01 AM, Vinay  wrote:

>
> Hi ,
> Thanks for the reply. I am new to drools so not much aware of control
> properties . Could you please tell more about control properties and  
> if
> possible one simple example.
>
> Thanks
> Vinay
>
>
> salaboy wrote:
>>
>> Hi,
>> Rules reacts on facts changes, if you have one big fact the changes  
>> inside
>> them will not fire reactions until you update your big fact, that  
>> cause
>> that
>> all the rules over that big fact fires again.
>> To solve this, you can add control properties to your fact and to  
>> your
>> rules.
>>
>> On Mon, Jan 11, 2010 at 9:21 AM, Vinay  wrote:
>>
>>>
>>> Hi All ,
>>>
>>> I am trying to implement the stateful drools implementation with  
>>> one big
>>> object (This object has many objects inside needed for rules). I  
>>> insert
>>> this
>>> object in session  and fire all rules.
>>>
>>> In case the object exist in working memory , I update the object  
>>> using
>>> facthandler. My problem is as soon as the object gets updated  
>>> using the
>>> fact
>>> handler all rules again gets fired.  My business requirement is to  
>>> only
>>> fire
>>> the rules whose value  got changed in the update process.
>>>
>>> I can't split the object into small objects , since it has all the
>>> relationship and all the rules are already written based on this
>>> structure.
>>>
>>> Could you please guide me how to implement this requirement. Any  
>>> help is
>>> really appreciated.
>>>
>>> Let me know in case you need any details.
>>> Thanks
>>> Vinay
>>>
>>>
>>>
>>> --
>>> View this message in context:
>>> http://n3.nabble.com/Firing-only-changed-object-rules-in-stateful-sessions-tp116659p116659.html
>>> Sent from the Drools - User mailing list archive at Nabble.com.
>>> ___
>>> rules-users mailing list
>>> rules-users@lists.jboss.org
>>> https://lists.jboss.org/mailman/listinfo/rules-users
>>>
>>
>>
>>
>> -- 
>> - http://salaboy.wordpress.com
>> - http://www.jbug.com.ar
>> - Salatino "Salaboy" Mauricio -
>>
>> ___
>> rules-users mailing list
>> rules-users@lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/rules-users
>>
>>
>
> -- 
> View this message in context: 
> http://n3.nabble.com/Firing-only-changed-object-rules-in-stateful-sessions-tp116659p116734.html
> Sent from the Drools - User mailing list archive at Nabble.com.
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Call class method from LHS of a rule

2010-01-04 Thread Salaboy
This doesn't work because it not reference anything inside the eval,  
remember that inside the eval you must write an expression that will  
be compiled and evaluated in runtime.

- Ing. Mauricio Salatino -

On Jan 4, 2010, at 11:35 AM, orchid  wrote:

>
> Esteban and Wolfgang, thank you very much !!!
> -- 
> View this message in context: 
> http://n3.nabble.com/Call-class-method-from-LHS-of-a-rule-tp108383p108465.html
> Sent from the Drools - User mailing list archive at Nabble.com.
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] why loop fire with no-loop is true?

2009-11-29 Thread Salaboy

The no loop goes inside each rule

- Ing. Mauricio Salatino -

On Nov 29, 2009, at 6:00 AM, Sinboy Zhang  wrote:

i expect the result is 530,and define the "no-loop=true" in the  
rules ,but result is 460,why?
--- 
--- 
--- 
--- 
--- 
--- 
--- 
--- 
--- 
--- 
--- 
--- 
--- 
--- 
--- 
--- 
--- 
--- 
--- 
--- 
--- 
--- 
--- 
--- 
--- 
--- 


my java test code:

package org.sample;

import org.drools.KnowledgeBase;
import org.drools.KnowledgeBaseFactory;
import org.drools.builder.KnowledgeBuilder;
import org.drools.builder.KnowledgeBuilderError;
import org.drools.builder.KnowledgeBuilderErrors;
import org.drools.builder.KnowledgeBuilderFactory;
import org.drools.builder.ResourceType;
import org.drools.io.ResourceFactory;
import org.drools.logger.KnowledgeRuntimeLogger;
import org.drools.logger.KnowledgeRuntimeLoggerFactory;
import org.drools.runtime.StatefulKnowledgeSession;

public class SalesTest {
 public static final void main(String[] args) {
  try {
   // load up the knowledge base
   KnowledgeBase kbase = readKnowledgeBase();
   StatefulKnowledgeSession ksession =  
kbase.newStatefulKnowledgeSession();
   KnowledgeRuntimeLogger logger =  
KnowledgeRuntimeLoggerFactory.newFileLogger(ksession, "test");

   // go !
   Sales message = new Sales();
   message.setName("sinboy");
   message.setSales(600);
   ksession.insert(message);
   ksession.fireAllRules();
   //ksession.dispose();

   System.out.println("updated:"+message.getName() 
+","+message.getSales());

   logger.close();
  } catch (Throwable t) {
   t.printStackTrace();
  }
 }
 private static KnowledgeBase readKnowledgeBase() throws Exception {
  KnowledgeBuilder kbuilder =  
KnowledgeBuilderFactory.newKnowledgeBuilder();
  //kbuilder.add(ResourceFactory.newClassPathResource("Sample.drl"),  
ResourceType.DRL);
  kbuilder.add(ResourceFactory.newUrlResource(" http://127.0.0.1:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/org.sample/LATEST 
"), ResourceType.PKG);

  KnowledgeBuilderErrors errors = kbuilder.getErrors();
  if (errors.size() > 0) {
   for (KnowledgeBuilderError error: errors) {
System.err.println(error);
   }
   throw new IllegalArgumentException("Could not parse knowledge.");
  }
  KnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase();
  kbase.addKnowledgePackages(kbuilder.getKnowledgePackages());
  return kbase;
 }
}
the print info is:
fired1:discount,550
fired0:discount,530
fired1:discount,480
fired0:discount,460
updated:discount,460
-
my java model is :

package org.sample;
import java.util.Date;
public class Sales {
 private String name;
 private long sales;
 private Date dateOfSale;
 private boolean chocolateOnlyCustomer;
 public String getName() {
  return name;
 }
 public void setName(String name) {
  this.name = name;
 }
 public long getSales() {
  return sales;
 }
 public void setSales(long sales) {
  this.sales = sales;
 }
 public Date getDateOfSale() {
  return dateOfSale;
 }
 public void setDateOfSale(Date dateOfSale) {
  this.dateOfSale = dateOfSale;
 }
 public boolean isChocolateOnlyCustomer() {
  return chocolateOnlyCustomer;
 }
 public void setChocolateOnlyCustomer(boolean choclateOnlyCustomer) {
  this.chocolateOnlyCustomer = chocolateOnlyCustomer;
 }
}

rules:
dialect "mvel"
no-loop true
rule "DiscountRule"
   salience 9
when
  $fact0:Sales(s:sales>100)
then
  #Sales fact0=new Sales();
  #fact0.setSales(s.getSales()-10);
  #fact0.setName("discount");
  #insert(fact0);

  modify($fact0){setName("discount")}
  modify($fact0){setSales(s-20)}
  System.out.println("fired0:"+$fact0.getName()+
","+$fact0.getSales());
end
rule "DiscountRule2"
   salience 18
when
  $fact1:Sales(s1:sales>500)
then
  modify($fact1){setName("discount")}
  modify($fact1){setSales(s1-50)}
  System.out.println("fired1:"+$fact1.getName()+
","+$fact1.getSales());
end



___
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] Human Task Question on Mina client / server

2009-11-20 Thread Salaboy

You need to start the Mina server before starting the process

- Ing. Mauricio Salatino -

On Nov 20, 2009, at 6:45 PM, "Todd Pagni"   
wrote:


I am creating a human task in a flow, but I am unable to get the  
human task in the Mina client.  Should items that enter a  
humanTaskNode go into the task table in addition to the workItemInfo  
table?  Do I need to do anything to get the work item set as a  
potential owner for Administrator so it is returned to the Mina  
client?




I running drools 5.0.1 in JBoss:



1.   Create the human task node in the flow:



   addActionStep(factory, 3).joinNode(4).type(Join.TYPE_XOR).done 
().humanTaskNode(5)


.name("Approve")

.actorId("Administrator")

.taskName("Approve")

.comment("hi")

.content("random content")



2.   Start the flow process (after this step I a row in the  
workItemInfo table):




  StatefulKnowledgeSession ksession = km.getSession(kb);



  WSHumanTaskHandler approveTask = new WSHumanTaskHandler();





  /*  Setup workitemmanager here? */

org.drools.runtime.process.WorkItemManager wm =   
ksession.getWorkItemManager();




wm.registerWorkItemHandler("Approve", approveTask);







ksession.setGlobal("entity", e);



ksession.startProcess(DuckFlowBuilder.PROCESS_NAME);



return ksession;



See the following in the log after this step:

14:37:15,349 INFO  [STDOUT] Hibernate: insert into SessionInfo  
(dirty, lastModificationDate, rulesByteArray, startDate) values  
(?, ?, ?, ?)


14:37:15,364 INFO  [STDOUT] Hibernate: insert into  
ProcessInstanceInfo (lastModificationDate, lastReadDate, processId,  
processInstanceByteArray, startDate, state, OPTLOCK) values  
(?, ?, ?, ?, ?, ?, ?)


14:37:15,364 INFO  [STDOUT] Entity name: Mallardes, Step: 3

14:37:15,364 INFO  [STDOUT] Hibernate: insert into WorkItemInfo  
(creationDate, name, processInstanceId, state, OPTLOCK,  
workItemByteArray) values (?, ?, ?, ?, ?, ?)


14:37:15,364 ERROR [STDERR] Could not find work item handler for  
Human Task


14:37:15,364 INFO  [STDOUT] Hibernate: update ProcessInstanceInfo  
set lastModificationDate=?, lastReadDate=?, processId=?,  
processInstanceByteArray=?, startDate=?, state=?, OPTLOCK=? where  
processInstanceId=? and OPTLOCK=?


14:37:15,364 INFO  [STDOUT] Hibernate: update WorkItemInfo set  
creationDate=?, name=?, processInstanceId=?, state=?, OPTLOCK=?,  
workItemByteArray=? where workItemId=? and OPTLOCK=?


14:37:15,364 INFO  [STDOUT] Hibernate: update SessionInfo set  
dirty=?, lastModificationDate=?, rulesByteArray=?, startDate=? where  
id=?




3.   Start the mina server (don’t see anything in the task tabl 
e)


  EntityManagerFactory emf = Persistence.createEntityManagerFactory 
("org.drools.task");


 taskService = new TaskService 
(emf,SystemEventListenerFactory.getSystemEventListener())


 server = new MinaTaskServer( taskService );

Thread thread = new Thread( server );

thread.start();

Thread.sleep( 500 );

System.out.println("Server started ...");



4.   Run the mina client (no results returned)

   BlockingTaskSummaryResponseHandler summaryHandler =

   new BlockingTaskSummaryResponseHandler()

   client.getTasksAssignedAsPotentialOwner("Administrator",  
"en-UK",summaryHandler);




   List tasks = summaryHandler.getResults();





Thanks,
Todd

___
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] Drools Flow :Persistence Problem : Restore StatefulKnowledgeSession from database

2009-11-13 Thread Salaboy
No, of course that it can store multiple processes at the same time?  
Why you Say that looking at the tAbles looks like that! ?


- Ing. Mauricio Salatino -

On Nov 13, 2009, at 1:18 AM, pardeep.ru...@lntinfotech.com wrote:



Hi Mauricio,
Thanks for you reply. I have one more doubt in this.
Will the drool-persistence will work for two or more workflow  
running simultaneously ?

Also these workflow will use the same schema for all the workflows.
Looking from the table that are generated in the database, it seems  
that database design is done keeping only one workflow running at a  
time.

Am I thinking correct ?
Please help me to get the solution.

Thanks & Regards

Pardeep Ruhil

__
___
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] User interaction while ruleflow is running

2009-09-24 Thread salaboy
the solution provided by Drools implements the WSHT standard, the idea is to
decoulple the service from your application.
The only difference with a built in solution that run thight coupled inside
drools is that you only need to start it. Of course that you can automate
that, so when your standalone application start, the human task server start
too.
You can also write your own Human task module and plug it inside Drools Flow
if you want.

On Thu, Sep 24, 2009 at 6:24 AM, Olaf Raether  wrote:

>
> i suspect, that i get this answer. But i have an standalone app - isn´t
> this
> solution
> a little bit to heavyweight ? . Using this - i have an additional server
> running.
> I hope to find a more lightweight solution.
>
> thanks
>
>
> Mauricio Salatino wrote:
> >
> > you should add a Human Task activity.. to do that.. in the middle.
> > For that you will need to run the WSHT service. Take a look at the Drools
> > Flow documentation.
> >
> >
> > On Tue, Sep 22, 2009 at 6:20 AM, Olaf Raether  wrote:
> >
> >>
> >> Hey,
> >>
> >> i have a simple ruleflow with some split and ruleflowgroup components.
> >> Now i want some user interaction while the ruleflow is runing.
> >>
> >> For example : a ruleflowgroup is executed, than check a global or what
> >> ever
> >> and
> >> fire an event, so i can interact with the  user. After the answer modify
> >> a global or the working memory and continue within the ruleflow.
> >>
> >> How could i do this very simple. I have a standalone app with drools 5
> >> expert.
> >> No Jboss server running.
> >>
> >> Thanks for hints.
> >>
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/User-interaction-while-ruleflow-is-running-tp25530715p25530715.html
> >> Sent from the drools - user mailing list archive at Nabble.com.
> >>
> >> ___
> >> rules-users mailing list
> >> rules-users@lists.jboss.org
> >> https://lists.jboss.org/mailman/listinfo/rules-users
> >>
> >
> >
> >
> > --
> > - http://salaboy.wordpress.com
> > - http://www.jbug.com.ar
> > - Salatino "Salaboy" Mauricio -
> >
> > ___
> > rules-users mailing list
> > rules-users@lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/rules-users
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/User-interaction-while-ruleflow-is-running-tp25530715p25568290.html
> Sent from the drools - user mailing list archive at Nabble.com.
>
>
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>



-- 
- http://salaboy.wordpress.com
- http://www.jbug.com.ar
- Salatino "Salaboy" Mauricio -
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users