Re: [rules-users] Guvnor 5.1: Can't open assets - "Unable to validate package configuration"
by Scott Mayne
My apologies, I should have looked a little deeper. The Guvnor Event Log showed I was missing a class in my POJO Model JAR; I fixed that and now everything is working fine.
--- On Wed, 12/15/10, Scott Mayne <smayne(a)webfinancialsolutions.com> wrote:
From: Scott Mayne <smayne(a)webfinancialsolutions.com>
Subject: Guvnor 5.1: Can't open assets - "Unable to validate package configuration"
To: rules-users(a)lists.jboss.org
Date: Wednesday, December 15, 2010, 1:50 PM
Hi all,
Using Guvnor 5.1, I'm unable to open assets and get this message:
"* Unable to validate package configuration (eg, DSLs, models) for [CA.FH.BETACAU]. Suggestion completions may not operate correctly for graphical editors for this package.
* Unable to get content assistance for this rule."
I've searched around and it seemed like it might be related to
https://issues.jboss.org/browse/BRMS-425
so I gave the user admin, package.admin and package.developer permission for everything, but it still pops up the same error. Is there any workaround/explanation/quick fix for this behavior?
15 years, 3 months
Guvnor 5.1: Can't open assets - "Unable to validate package configuration"
by Scott Mayne
Hi all,
Using Guvnor 5.1, I'm unable to open assets and get this message:
"* Unable to validate package configuration (eg, DSLs, models) for [CA.FH.BETACAU]. Suggestion completions may not operate correctly for graphical editors for this package.
* Unable to get content assistance for this rule."
I've searched around and it seemed like it might be related to
https://issues.jboss.org/browse/BRMS-425
so I gave the user admin, package.admin and package.developer permission for everything, but it still pops up the same error. Is there any workaround/explanation/quick fix for this behavior?
15 years, 3 months
Drools - Repeated Events and Temporal Relations
by rodih
Hi, In general I am writing rules for events which equal(by attributes
values) events can occur any time in consecutive manner(every second). I
want to fire rules for matched events only on an hourly bases.
In more details: I want to fire a rule when an event is inserted for the
first time (not exist yet) OR when an event is inserted and if and only if
equal events are already inserted to the working memory BUT the newest of
them is at least one hour ago old.
What is a reasonable way of writing a rule of that kind, taking events
duration will be 24H
Thanks
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Drools-Repeated-Event...
Sent from the Drools - User mailing list archive at Nabble.com.
15 years, 3 months
Re: [rules-users] "Negative" Rules
by Wolfgang Laun
Have you looked at insertLogical()?
"Changes made" is a very general term, could be anything...
-
-W
2010/12/15 Diego San Esteban <diego.sanesteban(a)coremain.com>
> Greetings,
>
>
>
> How is it possible to implement a "rollback" in the KB?
> Suppose that when retracting a fact, I want to undo the changes made.
> Writing a negative (opposite) rule isn't efficient, it means declaring the rule twice effectively. Also the negative rule is usually using lots of OR’s and NOT's which isn't fast.
>
>
> Any help?
>
> Thanks
>
>
>
> _______________________________________________
> rules-users mailing list
> rules-users(a)lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
15 years, 3 months
Automatic unsubscribing from a Guvnor resource
by Chris Selwyn
My Guvnor is setup to save its repository in an Oracle database.
However, the DBAs have a schedule that takes the database down at night
for backup.
I am finding that, if I set up the ResourceChangeNotifier/Scanner system
then the resource gets unloaded from the KnowledgeBase when the database
is down.
Is this really a sensible behaviour?
I would like to think that there would be a distinction between the
resource disappearing from the repository (in which case it would
expected that the rules disappear from the KB) and the repository not
being accessible (in which case I would hope that the rules would remain
cached in the KB).
I am using JBoss Rules 5.0.
Chris
15 years, 3 months
Updated rules recovery from rule engine
by aditya chitre
Hi All,
We are using drl files to load the rules in the rules engine. In our
application, we can dynamically add, modify and delete rules from the rules
engine. Is it possible to get these updated rules back into a text file from
the rules engine using java?
Regards,
Aditya
15 years, 3 months
About ExtensibleXmlParser
by tangrui.cn@gmail.com
Hi list,
In the method resolveSchema of ExtensibleXmlParser class, I think there's a
problem.
I'm using a changeset.xml, which has such a header
<change-set xmlns="http://drools.org/drools-5.0/change-set"
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance"
xs:schemaLocation="http://drools.org/drools-5.0/change-set *
/META-INF/schema/change-set-1.0.0.xsd*">
I want to fetch the xsd file from the path /META-INF/schema, but failed.
According to the method statement following, to find a xsd file name, the
systemId was substring-ed using lastIndexOf method. In this case no matter
what path I use to replace the bold text, only change-set-1.0.0.xsd will be
picked. Then the method will find the file under /META-INF, META-INF and
class path. That means even I've written the path
/META-INF/schema/change-set-1.0.0.xsd, but /META-INF/change-set-1.0.0.xsd
will be used.
String xsd;
int index = systemId.lastIndexOf( "/" );
if ( index == -1 ) {
index = systemId.lastIndexOf( "\\" );
}
if ( index != -1 ) {
xsd = systemId.substring( index + 1 );
} else {
xsd = systemId;
}
--
唐睿
15 years, 3 months
Problem with FROM and temporal operators
by Harris
Hi,
I'm trying to get the following rule running:
import foo.bar.Device;
import foo.bar.Signal;
declare Signal
@role( event )
@timestamp( time )
end
rule "No red signal within the last 3 days before job start for type=4
devices .."
salience 1000
when
$p : Device( type == "4" )
$e : Signal( status == "red", this before[24h,0s] $p.jobTime) from
$p.getSignalBuffer()
then
// do something ...
end
For a special kind of device it should be checked whether there have been
alarms raised within a certain time interval.
A couple of "devices" are inserted as facts. Each device has a buffer with
its n past "signals".
public class Device {
String type;
List<Signal> signalBuffer = new ArrayList<Signal>();
Date jobTime = new Date();
// Getters and Setters
}
public class Signal {
Date time;
String status;
// Getters and Setters
}
These classes are generate by JAXB/xjc according to a given XML Schema.
Although the rule looks OK to me, I'm getting the exception:
java.lang.ClassCastException: org.drools.common.DefaultFactHandle cannot be
cast to org.drools.common.EventFactHandle
I assume that "From" doesn't really work with the temporal operator and
events.
Is there a way to get this working?
Kind regards
Harris
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Problem-with-FROM-and...
Sent from the Drools - User mailing list archive at Nabble.com.
15 years, 3 months
Help required for Rule Creation
by kiran.nair@rsa.com
Hi,
I want to create a rule for the following scenario:
1. Event 1 : A file was created under the directory "/root/ " (Comment:
I have implemented this using 'matches' in the rule file)
2. Event 2: If File was created under "/root/" then get all the files
created within a 30 seconds of Event1. (Comment: Confused! Don't know
how to do this!)
The dataset I have is of all the files created on the system + time of
creation.
Thanks in advance!
Rgds,
Kiran
15 years, 3 months