free irc bouncer
by Mark Proctor
irc bouncers are clients that proxy your connection to irc, so you are
online even when you can't connect. When you later connect the proxy
will relay all the missed conversations. This provides you with more of
a permanent connection to irc, ideal for poor network connection or
those who have to go to work during the day and cannot keep their
machines on.
Geek Bouncer offer a free bouncer:
http://geekbouncer.co.uk/home
Mark
13 years, 5 months
JBRULES-3143: Knowledge Agent does not handle multiple packages in Builder output from single resource
by Wolfgang Laun
Currently the KnowledgeAgent produces an incomplete KnowledgeBase even
during the first build from some change set if some resource results in more
than one KnowledgePackage object being produced by the PackageBuilder.
I think that the production of more than one KPackage from a single resource
by the KBuilder is due to certain type references such as an import plus use
in a declare for adding annotations or for permitting a declare/extend of a
pojo.
Handling more than one KP as the result of compiling a single resource is
not too difficult for the KAgent; an experimental patch has indeed verified
that the problem exhibited by JBRULES-3143 can be fixed. All builds for a
KAgent configured with property drools.agent.newInstance set to true
succeed.
*But many incremental builds (property drools.agent.newInstance set to
false) fail nevertheless.*
There is no way this can be fixed in KAagent alone, if at all. KAagent's
capability of doing incremental build was based on certain (shaky)
assumptions originally, and the aforementioned change to the PBuilder has
added new catches.
That the PBuilder produces more than one KPackage is due to the code dealing
with type declarations from a namespace different from the one of the
hosting package. I'm not sure whether this is really necessary, but type
handling (TypeDeclarationDescr) would have to be modified.
Cheers
Wolfgang
13 years, 5 months
Match vs Activation
by Mark Proctor
While working on other designs I'm wondering if a better Class name for
Activation is actually Match.
Once a rule is matched and an Activation is produced, as the Activation
has fired it remains true. i think I prefer
Match.isActive
to
Activation.isActive
Further Activation is harder to shorten and just looks wierd act vs match.
Also for evens you have onMatch and onUnMatch which I think is nicer for
saying when a rule becomes true and then becomes untry for a given tuple[].
I know as well Clips uses the term PartialMatch instead of the term
LeftTuple.
Anyway some whimsical thoughts for the day :)
Mark
13 years, 5 months
FAO: conan, laune: PackageBuilder
by Michael Anstis
This fails:-
*Test
*
package com.guvnor.tests;
import org.drools.compiler.PackageBuilder;
import org.drools.compiler.PackageBuilderErrors;
import org.drools.io.ResourceFactory;
import org.drools.lang.descr.PackageDescr;
public class FragmentsTest {
public static final void main(String[] args) {
try {
PackageBuilderErrors pbe;
PackageBuilder pb = new PackageBuilder();
pb.addPackage( new PackageDescr( "p3" ) );
pb.addPackageFromDrl( ResourceFactory.newClassPathResource(
"Fragment1.drl" ) );
pbe = pb.getErrors();
System.out.println("Errors = " + pbe.getErrors().length );
pb.addPackageFromDrl( ResourceFactory.newClassPathResource(
"Fragment2.drl" ) );
pbe = pb.getErrors();
System.out.println("Errors = " + pbe.getErrors().length );
pb.addPackageFromDrl( ResourceFactory.newClassPathResource(
"Fragment3.drl" ) );
pbe = pb.getErrors();
System.out.println("Errors = " + pbe.getErrors().length );
pb.getPackage();
} catch ( Exception e ) {
e.fillInStackTrace();
e.printStackTrace();
}
}
}
*Fragment1.drl
*
package com.guvnor.package3
import com.guvnor.package1.Person
import java.math.BigDecimal
*Fragment2.drl
*
package com.guvnor.package3
//import com.guvnor.package1.Person <<Fails unless I add this import
declare Person
end
declare Person2 extends Person
name : String
age : Integer
end
*Fragment3.drl
*
package com.guvnor.package3
rule "test"
when
Person( salary == 10 )
then
System.out.println("Hello Fred!");
end
Resolved with
https://github.com/droolsjbpm/drools/commit/dc00433f3e3821a2c224ba8dc36f0...
13 years, 5 months
Hudson is building 5.2.1-Final....
by Michael Anstis
Do we need to revert some POMs or something, or are we too late or is
everything OK?
Also, if you git clone (I rebased, but assume the same) 5.2.x it fails to
compile due to parental issues (references 5.2.1).
Geoffrey?
13 years, 5 months
Guvnor asset viewer
by Mark Proctor
Manstis, Toni,
This make sense for the combined asset tyupe selection and asset viewer?
That way we don't need a hard coded side bar. It's taken car of by
sorting and grouping on the first column, that happens to be the asset
type/format.
13 years, 5 months