Semantic Web Drools Module, Request for Feedbak
by Xavier Breton
Hi,
I'm looking for feedback, I'll develop a Semantic Web Drools Module that
will be the subject of my Master Degree Tesis.
The idea is to use Eclipse Modelling Framework (EMF) for prototyping and
follow a Model Driven Architecture (MDA) where the source language is
Semantic of Business Vocabularies and Business Rules (SBVR) and the target
language is Drools DRL.
The mapping could be (PIM level):
- Semantic Web Rule Language (SWRL)
- Ontology Web Language (OWL)
- RuleML
- Rule Interchange Format (RIF)
- REWERSE Rule Markup Language (R2ML)
It could be added to the module at the source UML or Entity Relationship
like models to transform the models into SBVR.
Regards
Xavier Breton
10 years, 9 months
IntelliFest 2013 (San Diego) - only 10 weeks to go
by Mark Proctor
http://blog.athico.com/2013/07/intellifest-2013-san-diegl-only-10.html
----
Here is the updated flyer for IntelliFest 2013, this October in San Diego. Dr. Ernest Friedman-Hill, the creator ofJess, will be there talking about the new Jess 8.0 release. Also Dr. Daniel Miranker, the creator of the Leaps algorithm (a lazy alternative to the Rete algorithm), will be there talking about web scale distributed pattern matching.
I'll also be there presenting my new algorithm, entitled "From Eager to Lazy : The Evolution of the Rete Algorithm
11 years, 3 months
Why the drools modified object does not reflect the changes when I call the remote web service?
by Nuwan Bandara
I’m using the XLS decision table for the drools rules file. When I use the
local drools rules instance, object gets updated and reflects the changes
accordingly but when I use the remote web service call to use the remote
drools engine, rules get executed correctly but updated values does not get
reflected back in the return object.
Here’s the function that I use in the decision table (.xls)
function boolean setCTCFlag(Object resultViewMapObj, String siteCode){
boolean flag = false;
Map<String, ResultView> resultViewMap = (Map<String, ResultView>)
resultViewMapObj;
List<ResultView> resultViewList = new ArrayList<ResultView>();
resultViewList = new ArrayList<ResultView> (resultViewMap.values());
ResultView resultView = new ResultView();
resultView = resultViewList.get(0);
if(resultView.getSampleView().getSample() != null){
String sampleInd =
resultView.getSampleView().getSample().getSampleIndicator();
if(sampleInd != null && sampleInd.length() != 0){
String[] sampleIndComp = sampleInd.split(""[^\\w\\s]"");
for(int i = 0; i<sampleIndComp.length; i++){
LabelValueView labelValueView = new
LabelValueView();
labelValueView.setLabel(sampleIndComp[i].trim());
labelValueView.setValue(" ");
// DOTO: this is the issue
// folowing line gets executed but changes do
not get reflected in the object.
// Only happens when this called remotely.
resultView.getDynamicFields().put("CTC_CLIENT_FLAG", labelValueView);
flag = true;
}
}
}
return flag;
}
11 years, 3 months
Regression 5.4.0 -> 5.5.0: NPE due to declare/extends
by Wolfgang Laun
Perhaps this has already been detected and fixed. 5.5.0 is still the
last "Final", isn't it?
// === express/Message.java
package express;
public class Message {
private String text;
public Message( String m ){
this.text = m;
}
public String getText(){return text; }
}
// === express/express.drl
package express;
declare CountedMessage extends Message
count : int
end
// === Used with a straightforward build, this is sufficient to throw:
Exception in thread "main" java.lang.NullPointerException
at org.drools.base.ClassTypeResolver.resolveType(ClassTypeResolver.java:130)
at org.drools.compiler.PackageBuilder.isNovelClass(PackageBuilder.java:2291)
at org.drools.compiler.PackageBuilder.generateDeclaredBean(PackageBuilder.java:2473)
at org.drools.compiler.PackageBuilder.processTypeDeclarations(PackageBuilder.java:2133)
at org.drools.compiler.PackageBuilder.mergePackage(PackageBuilder.java:1272)
at org.drools.compiler.PackageBuilder.addPackage(PackageBuilder.java:869)
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)
at express.Main.setup(Main.java:58)
at express.Main.main(Main.java:118)
11 years, 4 months
6.0.0.CR1 tagged - procedure for commits from now on
by Edson Tirelli
All,
As you probably know, 6.0.0.CR1 was tagged yesterday and the
corresponding branch (6.0.x) was created last Tuesday.
As a reminder, since the creation of the branch and until we release
6.0.0.Final:
(1) please cherry-pick all commits you make for master into the 6.0.x
branch. Do not wait to cherry-pick, because this might end up creating
conflicts if commits are cherry-picked out of order. Also don't forget to
cherry-pick.
(2) if there is a BZ and/or JIRA for your work (there should be), add the
BZ/JIRA numbers to your commit message
(3) add the link to your commit as a comment on the corresponding BZ
Item (3) above is temporary until they fix the BZ/GitHub integration,
but important.
After we release 6.0.0.Final, you should only cherry-pick commits into
6.0.x branch if they have a corresponding BZ and the 3 acks set.
Let us know if you have any questions.
Thanks,
Edson
--
Edson Tirelli
Principal Software Engineer
Red Hat Business Systems and Intelligence Group
11 years, 4 months
Tracking documentation changes
by Edson Tirelli
As we approach final release, many of us will be working on
documentation. I would like to ask anyone committing changes to docs to use
the BZ-916448 on your commit message to make it easier to track these
commits.
Thank you
--
Edson Tirelli
Principal Software Engineer
Red Hat Business Systems and Intelligence Group
11 years, 4 months
Guvnor in Reselliency environment : Assets stored in DB not visible in Secondary server
by Zahid Ahmed
I am working in Drools-Guvnor-5.5.0.Final version and have configured repository.xml to save all assets + indexes in Oracle 11 database.
I am deploying Guvnor in a resilient environment which has two servers. Guvnor deployed in both the servers is pointing to the same database.
Step 1
For this I generated the repository.xml from the administration panel of Guvnor and replaced in both primary and secondary Guvnor instance. And when I started the server and imported assets into primary guvnor, I was able to see the following tables in database,
1. FS_FSENTRY;
2. FS_WS_DEFAULT_FSENTRY;
3. PM_WS_DEFAULT_FSENTRY;
4. PM_WS_DEFAULT_BINVAL;
5. PM_WS_DEFAULT_BUNDLE;
6. PM_WS_DEFAULT_REFS;
7. PM_WS_DEFAULT_NAMES;
8. REPOSITORY_FS_FSENTRY;
9. VERSIONING_FS_FSENTRY;
10. VERSIONING_PM_BINVAL;
11. VERSIONING_PM_BUNDLE;
12. VERSIONING_PM_NAMES;
13. VERSIONING_PM_REFS;
I also configured workspace.xml files in
1. jboss-eap-6.0/bin/repository/workspaces/default
2. jboss-eap-6.0/bin/repository/workspaces/security
Step 2
Now started secondary guvnor, configured similar to primary Guvnor. But secondary server did not displayed the packages and assets from DB. Instead asked me to install sample packages.
Step 3
I configured DataStore in repository.xml. Restarted primary Guvnor server and found one more table is created in database with the assets init.
Table name : DS_DATASTORE
Step 4
Configured secondary Guvnor with DataStore and restarted it. Now I could see the packages of primary Guvnor, But the assets in packages were not available.
I am attaching the repository.xml file from both the servers.
SECIND ISSUE : Guvnor not giving the option to import one package
My second issue is that guvnor is not allowing to import one package. User has to import/export complete package. I have 3 applications running JBPM process runtimes. All the applications have there assets in separate packages. For any change in application A I need to import/Export Package A from DEV Guvnor Repo to PROD Guvnor Repo.
There is an un-resolved JIRA for this issue. Kindly let me know if this issue is resolved (and in which version). And if its not resolved then how to import a package in guvnor or an asset.
My Environment
1. drools-guvnor 5.5.0.Final
2. Assets
a. BPMN files
b. Task Forms
c. Images
d. WorkItemDefinitions
e. ChangeSets
Thanks and Best Regards,
Zahid Ahmed
11 years, 4 months
Fwd: [jbpm-console-ng] Fix calendar view for Octobers (#37)
by Wolfgang Laun
Due to the return from Daylight Saving Time October has one additional
hour. Adding a duration of 30 times the number of milliseconds per day
brings you to Oct 30, 23:00. Since java.util.Date respects the JVM's
locale, it might even have worked in several countries of this planet.
:-)
-W
---------- Forwarded message ----------
From: Petr Široký <notifications(a)github.com>
Date: Wed, 17 Jul 2013 23:11:00 -0700
Subject: [jbpm-console-ng] Fix calendar view for Octobers (#37)
To: droolsjbpm/jbpm-console-ng <jbpm-console-ng(a)noreply.github.com>
For some reason Octobers had only 34(41) days displayed instead of
correct 35(42). Not really sure where the problem was, replacing the
ad-hoc date code with joda time methods solved it.
11 years, 4 months