Drools VSM Module - Build Issue
by Peter Sellars
Am trying to build drools in order to test a patch for user resources but
have an issue with drools-vsm module.
I have added a method to the KnowledgeBuilderFactoryService interface. The
clients in the VSM complain that they do not override the method.
I am sure there is a simple step I am missing that will fix this issue (it
appears my snapshot version of the api, core and compiler modules are not
being used by vsm).
Any ideas?
Peter Sellars
Attention:
This email may contain information intended for the sole use of
the original recipient. Please respect this when sharing or
disclosing this email's contents with any third party. If you
believe you have received this email in error, please delete it
and notify the sender or postmaster(a)solnetsolutions.co.nz as
soon as possible. The content of this email does not necessarily
reflect the views of Solnet Solutions Ltd.
14 years, 10 months
Automated deployment of repository.xml to Guvnor
by Srinivas Doddi
I am writing this after going through all the archived lists.
My input will be the repository.xml file created from the Guvnor(and stored in SVN), and I have to export it to another(production) guvnor instance. I am trying to automate the process of "Exporting" the repository.xml file to the Guvnor.
I tried using the Browser testing tools like HttpUnit, Selenium but since the front-end is gwt based, I am not successful. Now I am trying to use HttpURLConnection, but the server is just returning me a status of "500" when I am trying to hit "
http://localhost:12212/drools-guvnor/org.drools.guvnor.Guvnor/backup"
I would like to know if anyone did something similar to this?
This is what I am having right now.
String urlString = "http://localhost:12212/drools-guvnor/org.drools.guvnor.Guvnor/backup";
try{
URL url = new URL(urlString);
conn = (HttpURLConnection) url.openConnection();
conn.setDoOutput(true);
conn.setDoInput(true);
conn.setRequestMethod("POST");
conn.setRequestProperty("Content-Type", "text/html,application/xhtml+xml,application/xml");
conn.setRequestProperty("packageImport", "true");
conn.setRequestProperty("importAsNew", "true");
String proxyCredentials = username + ":" + password;
// Configure the connection object to
String encodedCredentials = new String(new Base64().encode(proxyCredentials.getBytes()), "ASCII");
encodedCredentials = encodedCredentials.replaceAll("\n", "");
conn.setRequestProperty("Authorization", "Basic " + encodedCredentials);
int responseCode = conn.getResponseCode();
InputStream in = conn.getErrorStream();
}
Or do we have any Drools API for deployment of repository.xml to the repository?
Thank you.
SRINIVAS
14 years, 10 months
Bug in Sudoku Example - with fix
by jschmied
Hi!
I found a bug in the rule 6,7 and 8 in the sudoku example:
It should not only test against the PCV but against the RCV too:
Rule 6:
# the not operator only causes this when clause to resolve to true when
there are not
# any other PCVs or RCVswith the same row and value as $possible
not (PossibleCellValue( row == $row, value == $value ) || ResolvedCellValue(
row == $row, value == $value) )
7 and 8 are similar.
juergen
--
View this message in context: http://n3.nabble.com/Bug-in-Sudoku-Example-with-fix-tp196315p196315.html
Sent from the Drools - Dev mailing list archive at Nabble.com.
14 years, 10 months
Eclipse IDE BRMS properties files
by Hitoshi Ozawa
I'm trying to translate the properties files for the Drools BRMS
portion of the Eclipse IDE but can't find the properties files nor
able to grep the Strings.
Would greatly appreciate if you'll direct me to finding the where the
Strings are defined.
Thanks.
H.Ozawa
14 years, 10 months
Executing on a arbitrarily complex object
by gazzaaa87
Hi all,
I am using a StatelessKnowledgeSession and therefore call the execute method
to invoke the rules engine. Having carried out a basic test, it would appear
that calling execute on an arbitrarily complex object does not insert child
objects, rather rules will only fire if they are based on the parent.
e.g. let's say you have a class called 'Father', which holds a collection of
'Child' objects. By calling session.execute(fatherObject) I need rules to
fire that use the Child pattern without having to loop through 'insert'ing
all the child elements manually.
Has anyone come across a way around this? The only thing I managed to find
was the use of a Batch Executor but you have to set that up before calling
execute and therefore it's still effectively a manual process.
If only Drools used java annotations, it would be ideal to specify behaviour
similar to cascade with JPA.
Any help or pointers much appreciated!
Dan
--
View this message in context: http://n3.nabble.com/Executing-on-a-arbitrarily-complex-object-tp187271p1...
Sent from the Drools - Dev mailing list archive at Nabble.com.
14 years, 10 months
Using Smart GWT library in Guvnor
by Esteban Aliverti
Hi all,
Baunax and I are making some improvements in Guvnor's rule editor
(from/collect/accumulate support, expression builder widget, etc.) and we
want to start using Smart GWT (http://www.smartclient.com/). This library is
the successor of GWText (the one Guvnor is using now). You can see this in
GWText home page http://code.google.com/p/gwt-ext/.
Some of the reasons we have to move to Smart GWT are:
- GWTExt is deprecated. It is no longer under active development.
- Smart GWT is under LGPL license (just like GWTExt)
- Smart GWT support any version of GWT (from 1.5.3 to 2.0). There
shouldn't be any problem when we start using GWT 2.xx
- Smart GWT has a lot of widgets, effects, layouts etc. that can make our
life easier ;).
Of course we are not going to migrate Guvnor to Smart GWT; we want just to
use it for the new features we are implementing.
So, are you guys agree? Does anyone have any objection?
We are currently working on guvnor_expressionEditor3_baunax_esteban branch.
Best,
--
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Esteban Aliverti
14 years, 10 months
Open Source Healthcare Event (last week of March)
by Mark Proctor
http://blog.athico.com/2010/02/open-source-healthcare-event-last-week.html
Last November I bloggged about the great news for collaboration on
Drools between the US Navy and OSDE (Argentinian health care). This is
with a focus of potentially enabling Drools as an important component
for the Open Source Healthcare Connect
<http://www.connectopensource.org/display/Gateway/CONNECT+Community+Portal>project,
which provides a gateway into NHIN.
<http://healthit.hhs.gov/portal/server.pt?open=512&mode=2&cached=true&objI...>
Since then we've had other heath care organisations show an interest in
getting involved at some level. So it made sense that we should
potentially organise another event, similar to last years boot camp, but
specifically for the healthcare community.
The event will cover the usual intro into Drools, along with additional
talks on the recent developments of Drools; such as our
simulation/testing frameworks and service frameworks. We would ideally
like to keep this industry and academic research focused. That means we
will need as many third party industry and academic research talks as
possible and break out sessions to discuss requirements and potential
collaborations.
So whether you want to come along and tell the world about your research
projects, requirements and ideas or just see what others are up to, or
just find out what Drools is about, this should be a useful event for
anyone in the healthcare industry.
If this interests you, either as an attendee or a presenter, then please
let me know. The date is quite soon, tentatively last week of March and
at the Duke University in North Carolina for 3 days.
Mark
14 years, 10 months