Suggestion/Feedback for DSL
by Sean Su
If we are not changing how the DSL is working, I would like to provide some
feedback to the development team here.
Currently the DSL definition file is like a key value property file where
the key being the DSL and value being the DRL part of that DSL statement.
This is nice as we can change the DRL without impacting the DSL.
However when we update the DSL part, even as simple as the wording to be
displayed on the web page, which happens often, the rules using the DSL
statement will be broken.
Proposal: if possible, Drools/Guvnor should maintain a key (like name of
that statement) independent from the context that used for the Display.
Users should be allowed to update DSL without rebuilding the rules using
it, as long as the independent key is maintained.
Sean
12 years, 5 months
Fusion in a J2ee container
by Danilo Rizzo
Hi All,
I would like to integrate Drools Fusion in a Web Application.
Do you have any experience about this?
I noticed in the example I found it is used FireUntilHalt which is a
blocking method, can it be replaced by FireAllRules once the event is
received?
thx
Danilo
12 years, 5 months
--Guvnor in Cluster mode with Oracle DB failing
by san_hegde
Hi,
I am trying to deploy Guvnor in Clustered Node, using Oracle 11
I am getting Caused By: java.sql.SQLSyntaxErrorException: ORA-00902: invalid
datatype
I am able to deploy in Non-cluster respository..
Any idea on why it is throwing that exception in cluster..
Below is my cluster configuration in repository xml..
<Cluster id="node1" syncDelay="2000">
<Journal
class="org.apache.jackrabbit.core.journal.OracleDatabaseJournal">
param name="revision" value="${rep.home}/revision.log" />
param name="driver"
value="oracle.jdbc.xa.client.OracleXADataSource" />
param name="url"
value="jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(LOAD_BALANCE=yes)(ADDRESS=(PROTOCOL=TCP)(HOST=gvu0513.austin.hp.com)(PORT=1525))(ADDRESS=(PROTOCOL=TCP)(HOST=gvu0514.austin.hp.com)(PORT=1525)))(CONNECT_DATA=(SERVICE_NAME
= BDDBD)))" />
param name="user" value="abc"/>
param name="password" value="abc"/>
</Journal>
</Cluster>
--
View this message in context: http://drools.46999.n3.nabble.com/Guvnor-in-Cluster-mode-with-Oracle-DB-f...
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years, 5 months
Guvnor 5.5 bug - when the advanced enum feature is used, the selected value is not saved in special condition
by Sean Su
When there are 3 drop downs, one determines the values of the other, the
selection in the last drop down is not saved when changing the rules twice
in the row.
For example: I have the following statement:
in fact [field1] [field2][field3]
each of the field is presented as a drop down by using the advanced ENUM
feature - 1 determines the values in 2 and the selection of 2 determines
the value of 3.
After the value in field3 is selected, I can move on and make the changes
in the rule. When the first change occurred, Guvnor remembers the values
being selected in all 3 fields. But when another change is make, the
selected value in the last field (field3) will be forgotten. Please note
this is only happening to the last field. I did not go further and make the
statement contain more than 3 drop downs.
I have tested this several times and am confident this is a bug in the 5.5
final version.
Thanks
Sean
12 years, 5 months
Guvnor in Cluster mode with Oracle DB failing
by san_hegde
Hi,
I am trying to deploy Guvnor in Clustered Node, using Oracle 11
I am getting Caused By: java.sql.SQLSyntaxErrorException: ORA-00902: invalid
datatype
I am able to deploy in Non-cluster respository..
Any idea on why it is throwing that exception in cluster..
Below is my cluster configuration in repository xml..
<Cluster id="node1" syncDelay="2000">
<Journal
class="org.apache.jackrabbit.core.journal.OracleDatabaseJournal">
</Journal>
</Cluster>
--
View this message in context: http://drools.46999.n3.nabble.com/Guvnor-in-Cluster-mode-with-Oracle-DB-f...
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years, 5 months
Drools 6 - Trouble with newReaderResource(Reader reader)
by Markus Schneider
Hi list,
try to make my first experiences with Drools 6. For that purpose I've
modified slightly the 'KieFileSystemExample'
(
https://github.com/droolsjbpm/drools/blob/6.0.0.CR3/drools-examples-api/k...
)
as the code below shows. I try to use the newReaderResource(Reader reader)
but when I run maven test I get
the following error:
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.33 sec
<<< FAILURE! - in
org.drools.example.api.kiefilesystem.KieFileSystemExampleTest
testGo(org.drools.example.api.kiefilesystem.KieFileSystemExampleTest) Time
elapsed: 0.263 sec <<< ERROR!
java.lang.RuntimeException: Unable to fetch module from resource
:[ReaderResource resource=java.io.StringReader@6a5714de encoding='null']
at java.io.ByteArrayInputStream.<init>(ByteArrayInputStream.java:106)
at
org.drools.compiler.kie.builder.impl.KieRepositoryImpl.getKieModule(KieRepositoryImpl.java:192)
at
org.drools.compiler.kie.builder.impl.KieRepositoryImpl.addKieModule(KieRepositoryImpl.java:157)
at
org.drools.example.api.kiefilesystem.KieFileSystemExample.go(KieFileSystemExample.java:39)
at
org.drools.example.api.kiefilesystem.KieFileSystemExampleTest.testGo(KieFileSystemExampleTest.java:16)
public class KieFileSystemExample {
public String getRule() {
String s = "" +
"package org.drools.example.api.kiefilesystem \n\n" +
"import org.drools.example.api.kiefilesystem.Message
\n\n" +
"global java.io.PrintStream out \n\n" +
"rule \"rule 1\" when \n" +
" m : Message( ) \n" +
"then \n" +
" out.println( m.getName() + \": \" + m.getText() ); \n"
+
"end \n" +
"rule \"rule 2\" when \n" +
" Message( text == \"Hello, HAL. Do you read me, HAL?\"
) \n" +
"then \n" +
" insert( new Message(\"HAL\", \"Dave. I read you.\" )
); \n" +
"end";
return s;
}
public void go(PrintStream out) {
KieServices ks = KieServices.Factory.get();
KieRepository kr = ks.getRepository();
KieModule kModule =
kr.addKieModule(ks.getResources().newReaderResource( (Reader) new
StringReader(getRule()) ));
KieContainer kContainer =
ks.newKieContainer(kModule.getReleaseId());
KieSession kSession = kContainer.newKieSession();
kSession.setGlobal("out", out);
kSession.insert(new Message("Dave", "Hello, HAL. Do you read me,
HAL?"));
kSession.fireAllRules();
}
public static void main(String[] args) {
new KieFileSystemExample().go(System.out);
}
}
Any Idea?
Thanks in advance.
Regards,
-markus
12 years, 5 months