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, 10 months
Attach custom editor on guided decision table cell
by c3310082
Hi,
We would like to render a custom editor when a user double-clicks on a cell
that is present in web guided decision table in Guvnor 5.1 (or later). The
custom editor needs to be invoked for cells that represent a particular fact
model attribute only.
This is somewhat similar to WS custom forms functionality available for
guided business rules.
So far we have seen the
org.drools.guvnor.client.decisiontable.GuidedDecisionTableWidget class that
contains implementation for:
public void onCellDblClick(GridPanel grid,
int rowIndex,
int colIndex,
EventObject e)
in the GridCellListenerAdapter class that opens up text editor or drop down
editor.
We're new to GWT and Guvnor so would appreciate it if anyone can provide the
high level steps.
Thanks
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Attach-custom-editor-...
Sent from the Drools - Dev mailing list archive at Nabble.com.
12 years, 2 months
Re: [rules-dev] [rules-users] DRL to XML transformation
by Wolfgang Laun
The result of XmlDumper in its current state may not accurately reflect all
that can now (5.4.0) be written in DRL. At least I got that impression when
I was looking at XmlDumper earlier (IIRC ~5.2.0) and found some glitches
even then.
Mark, Michael: I'd be pleased to learn that this has been fixed. :)
-W
On 31/05/2012, Michael Anstis <michael.anstis(a)gmail.com> wrote:
> The XML format produced by XmlDumper is an XML representation of various
> internal Descriptors used by Drools Expert and only supports features up to
> 4.0
>
> It is unfortunately not the same as that stored internally in Guvnor (which
> is simply a XStream representation of Guvnor's internal model).
>
> Furthermore Guvnor's internal representation is private and subject to
> change from release to release.
>
> There is no easy way to convert from one to the other, other than writing
> your own XSLT.
>
> With kind regards,
>
> Mike
>
> On 29 May 2012 13:36, Anirban Bandyopadhyay <
> Anirban.Bandyopadhyay(a)monitisegroup.com> wrote:
>
>> Hi,****
>>
>> ** **
>>
>> We have a set of rule files in DRL format. We couldn’t find a way (tool)
>> of importing them into Guvnor as BRL file so that we can edit using the
>> designer.****
>>
>> ** **
>>
>> We ended up using the DrlParser and XmlDumper to transform them from DRL
>> to BRL. It produces the XML and when we add it to the repository using
>> WebDav, Guvnor lists the files under Business Rule which is perfect. BUT
>> when I try to open it, it throws the following error:****
>>
>> ** **
>>
>>
>> com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$Unkno
>> ****
>>
>> wnFieldException: No such field
>> org.drools.ide.common.client.modeldriven.brl.Rul****
>>
>> eModel.rule-attribute****
>>
>> ---- Debugging information ----****
>>
>> field : rule-attribute****
>>
>> class :
>> org.drools.ide.common.client.modeldriven.brl.RuleModel****
>>
>> required-type :
>> org.drools.ide.common.client.modeldriven.brl.RuleModel****
>>
>> converter-type :
>> com.thoughtworks.xstream.converters.reflection.ReflectionC****
>>
>> onverter****
>>
>> path : /rule/rule-attribute****
>>
>> version : null****
>>
>> -------------------------------****
>>
>> at
>> com.thoughtworks.xstream.converters.reflection.AbstractReflectionConv****
>>
>> erter.determineType(AbstractReflectionConverter.java:449)****
>>
>> at
>> com.thoughtworks.xstream.converters.reflection.AbstractReflectionConv****
>>
>> erter.doUnmarshal(AbstractReflectionConverter.java:290)****
>>
>> at
>> com.thoughtworks.xstream.converters.reflection.AbstractReflectionConv****
>>
>> erter.unmarshal(AbstractReflectionConverter.java:230)****
>>
>> at
>> com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshall****
>>
>> er.java:72)****
>>
>> at
>> com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(A****
>>
>> bstractReferenceUnmarshaller.java:65)****
>>
>> at
>> com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnm****
>>
>> arshaller.java:66)****
>>
>> at
>> com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnm****
>>
>> arshaller.java:50)****
>>
>> at
>> com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller****
>>
>> .java:134)****
>>
>> at
>> com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarsh****
>>
>> al(AbstractTreeMarshallingStrategy.java:32)****
>>
>> at
>> com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1035)**
>> **
>>
>> at
>> com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1019)**
>> **
>>
>> at com.thoughtworks.xstream.XStream.fromXML(XStream.java:895)****
>>
>> at com.thoughtworks.xstream.XStream.fromXML(XStream.java:886)****
>>
>> at
>> org.drools.ide.common.server.util.BRXMLPersistence.unmarshal(BRXMLPer****
>>
>> sistence.java:191)****
>>
>> at
>> org.drools.guvnor.server.contenthandler.drools.BRLContentHandler.retr****
>>
>> ieveAssetContent(BRLContentHandler.java:41)****
>>
>> at
>> org.drools.guvnor.server.RepositoryAssetService.handlePackageItem(Rep****
>>
>> ositoryAssetService.java:132)****
>>
>> at
>> org.drools.guvnor.server.RepositoryAssetService.loadRuleAsset(Reposit****
>>
>> oryAssetService.java:118)****
>>
>> at
>> org.drools.guvnor.server.RepositoryAssetService$Proxy$_$$_WeldClientP****
>>
>> roxy.loadRuleAsset(RepositoryAssetService$Proxy$_$$_WeldClientProxy.java)*
>> ***
>>
>> at
>> org.drools.guvnor.server.RepositoryServiceServlet.loadRuleAsset(Repos****
>>
>> itoryServiceServlet.java:403)****
>>
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>> Method)****
>>
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.****
>>
>> java:39)****
>>
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces****
>>
>> sorImpl.java:25)****
>>
>> at java.lang.reflect.Method.invoke(Method.java:597)****
>>
>> at
>> com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:5****
>>
>> 69)****
>>
>> at
>> com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(Remot****
>>
>> eServiceServlet.java:208)****
>>
>> at
>> com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(Remot****
>>
>> eServiceServlet.java:248)****
>>
>> at
>> com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(Ab****
>>
>> stractRemoteServiceServlet.java:62)****
>>
>> at
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:637)***
>> *
>>
>> at
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:717)***
>> *
>>
>> at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl****
>>
>> icationFilterChain.java:290)****
>>
>> at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF****
>>
>> ilterChain.java:206)****
>>
>> at
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV****
>>
>> alve.java:233)****
>>
>> at
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextV****
>>
>> alve.java:191)****
>>
>> at
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j****
>>
>> ava:127)****
>>
>> at
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j****
>>
>> ava:102)****
>>
>> at
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal****
>>
>> ve.java:109)****
>>
>> at
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav****
>>
>> a:293)****
>>
>> at
>> org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcesso****
>>
>> r.java:877)****
>>
>> at
>> org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.pr****
>>
>> ocess(Http11AprProtocol.java:594)****
>>
>> at
>> org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:16****
>>
>> 75)****
>>
>> at java.lang.Thread.run(Thread.java:662)****
>>
>> ** **
>>
>> ** **
>>
>> I am able to re-produce the same error when I try to convert the BRL to
>> DRL using BRDRLPersistence and BRXMLPersistence marshalling and
>> unmarshalling. I checked that the field ‘rule-attribute’ is indeed not
>> present in org.drools.brms.client.modeldriven.brl.RuleModel. when I look
>> at the example brl file from the sample mortgage, they don’t have
>> ‘rule-attribute’, and it’s not only that specific node, the whole set of
>> node names are different. ****
>>
>> ** **
>>
>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>** **
>>
>> ** **
>>
>> public void convertDrlToBrl() throws IOException, DroolsParserException
>> {*
>> ***
>>
>> ** **
>>
>> Resource fileResource = new
>> ClassPathResource("Beneficiary_User_KYC_Level_3_Daily_Limit.drl");****
>>
>> ** **
>>
>> DrlParser parser = new DrlParser();****
>>
>> XmlDumper dumper = new XmlDumper();****
>>
>> ** **
>>
>> Reader source = new InputStreamReader(new
>> FileInputStream(fileResource.getFile()));****
>>
>> PackageDescr pkg = parser.parse(source);****
>>
>> ** **
>>
>> String xmlString = dumper.dump(pkg);****
>>
>> ** **
>>
>> System.out.println(xmlString);****
>>
>> }****
>>
>> ** **
>>
>> <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<** **
>>
>> ** **
>>
>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>** **
>>
>> ** **
>>
>> public void convertBrlToDrl() throws IOException {****
>>
>> ** **
>>
>> Resource fileResource = new
>> ClassPathResource("Beneficiary_User_KYC_Level_3_Daily_Limit_BRL.brl");****
>>
>> ** **
>>
>> String fileAsString =
>> FileUtils.readFileToString(fileResource.getFile());****
>>
>> ** **
>>
>> BRDRLPersistence write = (BRDRLPersistence)
>> BRDRLPersistence.getInstance();****
>>
>> BRXMLPersistence read = (BRXMLPersistence)
>> BRXMLPersistence.getInstance();****
>>
>> ** **
>>
>> RuleModel ruleModel = read.unmarshal(fileAsString);****
>>
>> String outputDRL = write.marshal(ruleModel);****
>>
>> ** **
>>
>> System.out.println(outputDRL);****
>>
>> ** **
>>
>> }****
>>
>> ** **
>>
>> <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<** **
>>
>> ** **
>>
>> Generated xml file:****
>>
>> ** **
>>
>> ===============================================****
>>
>> ** **
>>
>> <rule name="Beneficiary_User_KYC_Level_3_Daily_Limit_BRL">****
>>
>> <rule-attribute name="dialect" value="mvel" />****
>>
>> ** **
>>
>> <lhs><pattern object-type="UserBean" >****
>>
>> <field-constraint field-name="kycLevel"> ****
>>
>> <literal-restriction evaluator="==" value="KYC_LEVEL_3" />****
>>
>> ** **
>>
>> </field-constraint>****
>>
>> <field-constraint field-name="userType"> ****
>>
>> <literal-restriction evaluator="==" value="BENEFICIARY" />****
>>
>> ** **
>>
>> </field-constraint>****
>>
>> ** **
>>
>> ** **
>>
>> </pattern>****
>>
>> ** **
>>
>> <pattern object-type="Activity" >****
>>
>> <field-constraint field-name="type"> ****
>>
>> <literal-restriction evaluator="!=" value="TRANSACTION.SEND" />****
>>
>> ** **
>>
>> </field-constraint>****
>>
>> ** **
>>
>> ** **
>>
>> </pattern>****
>>
>> ** **
>>
>> ** **
>>
>> </lhs><rhs> Limit fact0 = new Limit();****
>>
>> fact0.setType( "DAILY_TRANSACTION_LIMIT"
>> );
>> ****
>>
>> fact0.setValue( 10000 );****
>>
>> fact0.setErrorMessage( "Maximum daily
>> total amount of N10,000 exceeded for {0}." );****
>>
>> insert(fact0 );****
>>
>> </rhs>****
>>
>> </rule>****
>>
>> ** **
>>
>> ================================================****
>>
>> ** **
>>
>> ** **
>>
>> Am I doing something wrong? Is there a better way of converting the DRLs
>> to BRLs?****
>>
>> ** **
>>
>> Thanks in advance!****
>>
>> *Anirban Bandyopadhyay*
>>
>> ------------------------------
>> This message contains confidential and proprietary information of the
>> sender, and is intended only for the person(s) to whom it is addressed.
>> Any
>> use, distribution, copying, disclosure or taking of any action in
>> reliance
>> upon it by any other person is strictly prohibited. If you have received
>> this message in error, please notify the e-mail sender immediately, and
>> delete the original message without making a copy.
>>
>> The Monitise group comprises: Monitise plc (Reg. No. 6011822), Monitise
>> Group Limited (Reg. No. 5590897), Monitise International Limited (Reg.
>> No.
>> 5556711) and Monitise Europe Limited (Reg. No. 4831976). These companies
>> are registered in England and Wales and their registered office address
>> is:
>> Warnford Court, 29 Throgmorton Street, London, EC2N 2AT United Kingdom.
>>
>> _______________________________________________
>> rules-users mailing list
>> rules-users(a)lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/rules-users
>>
>>
>
12 years, 6 months
Fwd: [rules-users] DRL to XML transformation
by Michael Anstis
Edson, Mark,
AFAIK XmlDumpers's XML is not the same as the internal representation used
by Guvnor (that is really only an XStream representation of Guvnor's
internal model).
I had a look at XmlDumper and it references a schema (that I could not
find), but it definitely follows a different mechanism to Guvnor.
Am I correct? The user below would need to write an XSLT to transform
between the two.
Or is the expectation that XML from XmlDumper should be able to be loaded
into Guvnor?
Thanks,
Mike
---------- Forwarded message ----------
From: Anirban Bandyopadhyay <Anirban.Bandyopadhyay(a)monitisegroup.com>
Date: 29 May 2012 13:36
Subject: [rules-users] DRL to XML transformation
To: "rules-users(a)lists.jboss.org" <rules-users(a)lists.jboss.org>
Hi,****
** **
We have a set of rule files in DRL format. We couldn’t find a way (tool)
of importing them into Guvnor as BRL file so that we can edit using the
designer.****
** **
We ended up using the DrlParser and XmlDumper to transform them from DRL to
BRL. It produces the XML and when we add it to the repository using
WebDav, Guvnor lists the files under Business Rule which is perfect. BUT
when I try to open it, it throws the following error:****
** **
com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$Unkno
****
wnFieldException: No such field
org.drools.ide.common.client.modeldriven.brl.Rul****
eModel.rule-attribute****
---- Debugging information ----****
field : rule-attribute****
class : org.drools.ide.common.client.modeldriven.brl.RuleModel
****
required-type : org.drools.ide.common.client.modeldriven.brl.RuleModel
****
converter-type :
com.thoughtworks.xstream.converters.reflection.ReflectionC****
onverter****
path : /rule/rule-attribute****
version : null****
-------------------------------****
at
com.thoughtworks.xstream.converters.reflection.AbstractReflectionConv****
erter.determineType(AbstractReflectionConverter.java:449)****
at
com.thoughtworks.xstream.converters.reflection.AbstractReflectionConv****
erter.doUnmarshal(AbstractReflectionConverter.java:290)****
at
com.thoughtworks.xstream.converters.reflection.AbstractReflectionConv****
erter.unmarshal(AbstractReflectionConverter.java:230)****
at
com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshall****
er.java:72)****
at
com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(A****
bstractReferenceUnmarshaller.java:65)****
at
com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnm****
arshaller.java:66)****
at
com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnm****
arshaller.java:50)****
at
com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller****
.java:134)****
at
com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarsh****
al(AbstractTreeMarshallingStrategy.java:32)****
at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1035)****
at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1019)****
at com.thoughtworks.xstream.XStream.fromXML(XStream.java:895)****
at com.thoughtworks.xstream.XStream.fromXML(XStream.java:886)****
at
org.drools.ide.common.server.util.BRXMLPersistence.unmarshal(BRXMLPer****
sistence.java:191)****
at
org.drools.guvnor.server.contenthandler.drools.BRLContentHandler.retr****
ieveAssetContent(BRLContentHandler.java:41)****
at
org.drools.guvnor.server.RepositoryAssetService.handlePackageItem(Rep****
ositoryAssetService.java:132)****
at
org.drools.guvnor.server.RepositoryAssetService.loadRuleAsset(Reposit****
oryAssetService.java:118)****
at
org.drools.guvnor.server.RepositoryAssetService$Proxy$_$$_WeldClientP****
roxy.loadRuleAsset(RepositoryAssetService$Proxy$_$$_WeldClientProxy.java)***
*
at
org.drools.guvnor.server.RepositoryServiceServlet.loadRuleAsset(Repos****
itoryServiceServlet.java:403)****
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)****
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.****
java:39)****
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces****
sorImpl.java:25)****
at java.lang.reflect.Method.invoke(Method.java:597)****
at
com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:5****
69)****
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(Remot****
eServiceServlet.java:208)****
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(Remot****
eServiceServlet.java:248)****
at
com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(Ab****
stractRemoteServiceServlet.java:62)****
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)****
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)****
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl****
icationFilterChain.java:290)****
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF****
ilterChain.java:206)****
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV****
alve.java:233)****
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextV****
alve.java:191)****
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j****
ava:127)****
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j****
ava:102)****
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal****
ve.java:109)****
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav****
a:293)****
at
org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcesso****
r.java:877)****
at
org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.pr****
ocess(Http11AprProtocol.java:594)****
at
org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:16****
75)****
at java.lang.Thread.run(Thread.java:662)****
** **
** **
I am able to re-produce the same error when I try to convert the BRL to DRL
using BRDRLPersistence and BRXMLPersistence marshalling and unmarshalling.
I checked that the field ‘rule-attribute’ is indeed not present in
org.drools.brms.client.modeldriven.brl.RuleModel. when I look at the
example brl file from the sample mortgage, they don’t have
‘rule-attribute’, and it’s not only that specific node, the whole set of
node names are different. ****
** **
>>>>>>>>>>>>>>>>>>>>>>>>>>>>** **
** **
public void convertDrlToBrl() throws IOException, DroolsParserException {***
*
** **
Resource fileResource = new
ClassPathResource("Beneficiary_User_KYC_Level_3_Daily_Limit.drl");****
** **
DrlParser parser = new DrlParser();****
XmlDumper dumper = new XmlDumper();****
** **
Reader source = new InputStreamReader(new
FileInputStream(fileResource.getFile()));****
PackageDescr pkg = parser.parse(source);****
** **
String xmlString = dumper.dump(pkg);****
** **
System.out.println(xmlString);****
}****
** **
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<** **
** **
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>** **
** **
public void convertBrlToDrl() throws IOException {****
** **
Resource fileResource = new
ClassPathResource("Beneficiary_User_KYC_Level_3_Daily_Limit_BRL.brl");****
** **
String fileAsString =
FileUtils.readFileToString(fileResource.getFile());****
** **
BRDRLPersistence write = (BRDRLPersistence)
BRDRLPersistence.getInstance();****
BRXMLPersistence read = (BRXMLPersistence)
BRXMLPersistence.getInstance();****
** **
RuleModel ruleModel = read.unmarshal(fileAsString);****
String outputDRL = write.marshal(ruleModel);****
** **
System.out.println(outputDRL);****
** **
}****
** **
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<** **
** **
Generated xml file:****
** **
===============================================****
** **
<rule name="Beneficiary_User_KYC_Level_3_Daily_Limit_BRL">****
<rule-attribute name="dialect" value="mvel" />****
** **
<lhs><pattern object-type="UserBean" >****
<field-constraint field-name="kycLevel"> ****
<literal-restriction evaluator="==" value="KYC_LEVEL_3" />****
** **
</field-constraint>****
<field-constraint field-name="userType"> ****
<literal-restriction evaluator="==" value="BENEFICIARY" />****
** **
</field-constraint>****
** **
** **
</pattern>****
** **
<pattern object-type="Activity" >****
<field-constraint field-name="type"> ****
<literal-restriction evaluator="!=" value="TRANSACTION.SEND" />****
** **
</field-constraint>****
** **
** **
</pattern>****
** **
** **
</lhs><rhs> Limit fact0 = new Limit();****
fact0.setType( "DAILY_TRANSACTION_LIMIT" );*
***
fact0.setValue( 10000 );****
fact0.setErrorMessage( "Maximum daily total
amount of N10,000 exceeded for {0}." );****
insert(fact0 );****
</rhs>****
</rule>****
** **
================================================****
** **
** **
Am I doing something wrong? Is there a better way of converting the DRLs
to BRLs?****
** **
Thanks in advance!****
*Anirban Bandyopadhyay*
------------------------------
This message contains confidential and proprietary information of the
sender, and is intended only for the person(s) to whom it is addressed. Any
use, distribution, copying, disclosure or taking of any action in reliance
upon it by any other person is strictly prohibited. If you have received
this message in error, please notify the e-mail sender immediately, and
delete the original message without making a copy.
The Monitise group comprises: Monitise plc (Reg. No. 6011822), Monitise
Group Limited (Reg. No. 5590897), Monitise International Limited (Reg. No.
5556711) and Monitise Europe Limited (Reg. No. 4831976). These companies
are registered in England and Wales and their registered office address is:
Warnford Court, 29 Throgmorton Street, London, EC2N 2AT United Kingdom.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
12 years, 6 months
Help
by Olfa h
HI,
My master thesis is to develop a model interface that allows the
doctor to pose
the question for the patient. it consists of an interface and a database
format connaissace ontology. this application must guide the doctor.
The purpose of the ontology is to implement the interface model that
contains a text box to enter the question and a text box to type the answer
and then clicking a button data are displayed which are imported for the
ontology weight the answer and then if the readings are not in good clicks
a button to display other data but not displayed the first time and if the
election is made on a data. By clicking a button to display the data that
are connected to select data and then validate the choice.
Please can you guide me to make this work?
can you give to me a detailed description and the simplest methods to
follow and i inform you about all the information concerned my
environment to lead a good results because i'm a beginner in this domain ?
If there is any point on the ontology create or something missing you
can tell me because this is the first that I work with ontologies.
so I just need to realized this little application to validate the model
interface and the ontology and I like that you guide me.
Attached is the interface model and the ontology.
I await your advise and your help.
Thank you very much.
12 years, 7 months
wrong docs about persistence
by Mauricio Salatino
Hi Guys, I notice that there is wrong section in the docs:
Bitronix also provides a simple embedded JNDI service, ideal for testing.
To use it add a jndi.properties file to your META-INF and add the following
line to it:
*Example 3.66. JNDI properties*
java.naming.factory.initial=bitronix.tm.jndi.BitronixInitialContextFactory
I was testing this configurations and I notice that if you put that file
inside your META-INF directory it doesn't work. You need to add that file
to your
src/test/resources or src/main/resources directories for a Maven Project.
Can somebody else check this, so we can change it?
Cheers
--
- MyJourney @ http://salaboy.wordpress.com
- Co-Founder @ http://www.jugargentina.org
- Co-Founder @ http://www.jbug.com.ar
- Salatino "Salaboy" Mauricio -
12 years, 7 months
Want to host IntelliFest (previously RuleFest)?
by Mark Proctor
IntelliFest (previously RuleFest) is currently trying to find premises
on the west coast of USA, with near by accomodation, to host 150 people
for 4 days. Interested in hosting?
If so contact me on mproctor at codehaus d0t org
12 years, 7 months
2 very useful github tips
by Edson Tirelli
Was watching a presentation yesterday from Zack Holman (@holman) and he
presented 2 very useful tricks on github:
* on any page in a repository, press "t" on your keyboard and start typing
the name of a file and it will find the file for you. Same as ctrl+t/ctrl+r
on Eclipse. I use this all the time. Press "?" for a list of all keyboard
shortcuts.
* on a diff/commit page, add "?w=1" at the end of the URL to make the diff
ignore whitespaces. Very useful for those commits where people are using a
different code format.
Edson
--
Edson Tirelli
JBoss Drools Core Development
JBoss by Red Hat @ www.jboss.com
12 years, 7 months