UberFire 0.3
                                
                                
                                
                                    
                                        by Michael Anstis
                                    
                                
                                
                                        Hi,
I've created a uberfire-0.3 branch for droolsjbpm-build-bootstrap; that I
suspect we all extend.
I am starting to take a look at upgrading guvnor, kie-wb-common and
drools-wb to UF 0.3...
With kind regards,
Mike
                                
                         
                        
                                
                                12 years, 3 months
                        
                        
                 
         
 
        
            
        
        
        
                
                        
                        
                                
                                
                                        
                                                
                                        
                                        
                                        Drools in Hawaii
                                
                                
                                
                                    
                                        by Mark Proctor
                                    
                                
                                
                                        I'm going to be in Hawaii for 3 weeks in september, visiting honolulu, kauaui and maui.
Is there a Drools community on any of those islands, I could be tempted to attend a user group and do a Drools 6 talk :)
Mark
                                
                         
                        
                                
                                12 years, 3 months
                        
                        
                 
         
 
        
            
        
        
        
            
        
        
        
                
                        
                        
                                
                                
                                        
                                                
                                        
                                        
                                        Jenkins
                                
                                
                                
                                    
                                        by Michael Anstis
                                    
                                
                                
                                        Hi,
There are failing tests for the following:-
   - drools
   - jbpm
   - drools-wb
The following projects are not compiling on Jenkins:-
   - jbpm-designer
Please investigate.
Thanks,
Mike (Sherrif)
                                
                         
                        
                                
                                12 years, 3 months
                        
                        
                 
         
 
        
            
        
        
        
                
                        
                                
                                 
                                        
                                
                         
                        
                                
                                
                                        
                                                
                                        
                                        
                                        Re: [rules-dev] [rules-users] Dynamic Rules and Eval
                                
                                
                                
                                    
                                        by Wolfgang Laun
                                    
                                
                                
                                        It's a bug, possibly a regression from 5.2.0 that has been in 5.3.0,
5.4.0 and is still in  5.5.0.
It should be very simple to add http://codetidy.com/6206/ as a test
case so that this will be fixed.
-W
On 14/07/2013, Wolfgang Laun <wolfgang.laun(a)gmail.com> wrote:
> Which Drools version do you use?
>
> On 14/07/2013, k <rrdh(a)gmx.net> wrote:
>> Hi,
>> basically it's the same problem this guy had
>> http://stackoverflow.com/questions/11485122/non-template-dynamic-rules-in...
>> <http://stackoverflow.com/questions/11485122/non-template-dynamic-rules-in...>
>>
>> , but the links in that question don't work.
>>
>> I'd like to dynamically add rules to a running session, but can use
>> 'eval'
>> only in the very first one. If I add a second rule like the following, it
>> won't execute:
>>
>> ---
>>
>> String test2 =
>>   "\nrule id4" +
>>   "\nwhen" +
>>   "\neval(0 == 0)" + // if this eval is removed, "done2" is inserted
>>   "\nthen" +
>>   "\ninsertLogical( \"done2\" );" +
>>   "\nend";
>>
>> kbuilder.add(ResourceFactory.newByteArrayResource(test2.getBytes()),
>> ResourceType.DRL);
>> session.getKnowledgeBase().addKnowledgePackages(kbuilder.getKnowledgePackages());
>> 	
>> fired = session.fireAllRules();
>> System.out.println(fired); // 0
>> effects = session.getObjects();
>> assertTrue("fired", effects.contains("done2")); // fails
>>
>> ---
>>
>> You can see the complete Test at http://codetidy.com/6206/
>>
>> I'm also not sure if this is the correct way to dynamically add rules, so
>> please let me know, if there's a better way to add rules from strings.
>>
>> How can I dynamically add new rules to a running session and still use
>> eval?
>>
>>
>>
>> --
>> View this message in context:
>> http://drools.46999.n3.nabble.com/Dynamic-Rules-and-Eval-tp4024908.html
>> Sent from the Drools: User forum mailing list archive at Nabble.com.
>> _______________________________________________
>> rules-users mailing list
>> rules-users(a)lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/rules-users
>>
>
                                
                         
                        
                                
                                12 years, 3 months
                        
                        
                 
         
 
        
            
        
        
        
                
                        
                        
                                
                                
                                        
                                                
                                        
                                        
                                        IMPORTANT: commit messages and BZ tickets
                                
                                
                                
                                    
                                        by Edson Tirelli
                                    
                                
                                
                                           All,
   From now on we were asked to follow 2 additional practices when
committing code to our code repositories:
1. Please always include the BugZilla ticket number on your commit message
when working on a BZ ticket. If you also have the JIRA ticket, please add
that too. E.g.:
git commit -am "BZ-999999 DROOLS-999 : fixing foo far."
2. Please copy&paste the link to your commit into the comments of the BZ
ticket. You can get the link to the commit from github itself or from the
IRC channel, since the bot always pastes the link there when you push your
commit.
   This is necessary because the integration of BZ and GitHub is not done
yet. When they integrate them, we will no longer need (2), but (1) is a
requirement.
   Thank you,
     Edson
                                
                         
                        
                                
                                12 years, 3 months
                        
                        
                 
         
 
        
            
        
        
        
                
                        
                        
                                
                                
                                        
                                                
                                        
                                        
                                        kie-tests repository created for integration and other cross-project tests
                                
                                
                                
                                    
                                        by Marco Rietveld
                                    
                                
                                
                                        Hi all,
I've created a kie-tests repository:
     https://github.com/droolsjbpm/kie-tests
The repository is meant for any integration or other cross-project tests 
which might not fit in in other modules.
(The reason to create it at this moment was in order to have a place for 
some kie-wb integration tests, but the idea of a repository for various 
cross-project tests has been one I've talked about with various people 
in the last year.)
Thanks,
Marco
-- 
jBPM/Drools developer
Utrecht, the Netherlands
                                
                         
                        
                                
                                12 years, 3 months
                        
                        
                 
         
 
        
            
        
        
        
                
                        
                                
                                 
                                        
                                
                         
                        
                                
                                
                                        
                                                
                                        
                                        
                                        Re: [rules-dev] Comparing Prolog
                                
                                
                                
                                    
                                        by Wolfgang Laun
                                    
                                
                                
                                        On 08/07/2013, Mark Proctor <mproctor(a)codehaus.org> wrote:
> As per the email, we don't' have the nice syntax for list unification - but
> it's just sugar. The same thing can be done, just more verbosely. I've not
> checked this compiles, but it shows the intent.
Next time do so, it's quite interesting, see below...
> query nextTo(String x, String y, List list)
>     isRight( x, y, list )
>     or
>     isRight( y, x, list )
> end
>
> query isRight(String l, String r, List list)
>     l := String() from list[0]
>     r := String() from list[1]
>     tail : List() from list.subList(1, list.size() )
>     isRight( l, r, tail )
> end
>
Copied your rules into a drl, and 5.5.0 crashes with:
Exception in thread "main" java.lang.NullPointerException
	at org.drools.rule.builder.QueryElementBuilder.build(QueryElementBuilder.java:59)
	at org.drools.rule.builder.PatternBuilder.build(PatternBuilder.java:180)
	at org.drools.rule.builder.PatternBuilder.build(PatternBuilder.java:123)
	at org.drools.rule.builder.GroupElementBuilder.build(GroupElementBuilder.java:67)
	at org.drools.rule.builder.RuleBuilder.build(RuleBuilder.java:84)
	at org.drools.compiler.PackageBuilder.addRule(PackageBuilder.java:2830)
	at org.drools.compiler.PackageBuilder.compileRules(PackageBuilder.java:970)
	at org.drools.compiler.PackageBuilder.compileAllRules(PackageBuilder.java:879)
	at org.drools.compiler.PackageBuilder.addPackage(PackageBuilder.java:871)
	at org.drools.compiler.PackageBuilder.addPackageFromDrl(PackageBuilder.java:466)
	at org.drools.compiler.PackageBuilder.addKnowledgeResource(PackageBuilder.java:694)
	at org.drools.builder.impl.KnowledgeBuilderImpl.add(KnowledgeBuilderImpl.java:51)
	at org.drools.builder.impl.KnowledgeBuilderImpl.add(KnowledgeBuilderImpl.java:40)
OK, I must not omit an import, but an NPE is uncalled for. So, I added
   import java.util.List
and then I get:
   ### compilation errors ###
   Unable to resolve ObjectType 'isRight' : [Rule name='nextTo']
   Query's must use positional or bindings, not field constraints:
This error message ought to be rewritten as
 "Queries require positional arguments or bindings, not field constraints"
Next, I added some semicolons:
query nextTo(String x, String y, List list)
    isRight( x, y, list; )
    or
    isRight( y, x, list; )
end
query isRight(String l, String r, List list)
    l := String() from list.get(0)
    r := String() from list.get(1)
    tail : List() from list.subList(1, list.size() )
    isRight( l, r, tail; )
end
and then I get:
   ### compilation errors ###
   Unable to resolve ObjectType 'isRight' : [Rule name='nextTo']
I had to swap the queries so that the definition of isRight precedes
its use in nextTo. That's a potentially blocking bug, since queries
can be used mutually recursively.
Quite a haul...
Wolfgang
                                
                         
                        
                                
                                12 years, 3 months