Re: [rules-users] How to do word match in drools?

2014-03-27 Thread Yuan, Stacy [DBA]
Great! I will try out. Thank you so much for your detail explanation!

Stacy

From: rules-users-boun...@lists.jboss.org 
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Wolfgang Laun
Sent: Thursday, March 27, 2014 11:33 AM
To: Rules Users List
Subject: Re: [rules-users] How to do word match in drools?

See inline.

On 27 March 2014 16:59, Yuan, Stacy [DBA] 
mailto:sta...@telenav.com>> wrote:
Hi,

I am new to this area. Thank you very much for your reply!

This is current script

brandName matches 
"(?i)(.*cyber.*|.*internet.*|.*pizza.*|.*restaurant.*|.*sushi.*)

So this  matches every string containing sushi.

Joa Sushie Café
Java Sushi
Sushi Blvd
Japanese Sushi Bar

This is to be expected: each of these 4 lines contains "sushi".



But I only want to match the word sushi. This means " Joa Sushie Café" will not 
be included.

Actually I am looking for word match. What is the best way to include above 
words?

All regular expressions I know have a way for expressing the concept "word 
boundary".
This is a zero-length assumption (or "anchor"), that matches a transition from 
a word character
to a non-word character. (Note that the definition of "word character" may not 
*always*
meet your expectations, but it should in this case.)


brandName == "(?i)(.*cyber.*|.*internet.*|.*pizza.*|.*restaurant.*|.*sushi.*)???

(The "==" is bad: you want to do a pattern match.) OK, to restrict the "sushi" 
to the
real thing (assuming the final "???" aren't relevant):
brandName matches "(?i)(...|... ...|\\bsushi\\b)"

"\b" is the word boundary anchor, and you have to duplicate the backslash, as 
in Java.
 If the same borderline case should hold for pizza and others, you could use

brandName matches 
"(?i).*\\b(cyber|internet|pizza|restaurant|sushi)\\b.*"

All of this is untested, but it shouldn't be very far off the mark.
-W


Best

Stacy

-Original Message-
From: 
rules-users-boun...@lists.jboss.org 
[mailto:rules-users-boun...@lists.jboss.org]
 On Behalf Of Wolfgang Laun
Sent: Thursday, March 27, 2014 12:26 AM
To: Rules Users List
Subject: Re: [rules-users] How to do word match in drools?

You can use == to compare strings.

For a more comprehensive answer, ask a more detailed question.

-W

On 26/03/2014, Yuan, Stacy [DBA] 
mailto:sta...@telenav.com>> wrote:
> For example,  word sushi
> I do not want sushie show up and shsushi show up when we do drools match.
>
> Thanks
> Stacy
>
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

Re: [rules-users] How to do word match in drools?

2014-03-27 Thread Wolfgang Laun
See inline.


On 27 March 2014 16:59, Yuan, Stacy [DBA]  wrote:

> Hi,
>
> I am new to this area. Thank you very much for your reply!
>
> This is current script
>
> brandName matches
> "(?i)(.*cyber.*|.*internet.*|.*pizza.*|.*restaurant.*|.*sushi.*)
>
> So this  matches every string containing sushi.
>
> Joa Sushie Café
> Java Sushi
> Sushi Blvd
> Japanese Sushi Bar
>

This is to be expected: each of these 4 lines contains "sushi".



>
> But I only want to match the word sushi. This means " Joa Sushie Café"
> will not be included.
>
> Actually I am looking for word match. What is the best way to include
> above words?
>

All regular expressions I know have a way for expressing the concept "word
boundary".
This is a zero-length assumption (or "anchor"), that matches a transition
from a word character
to a non-word character. (Note that the definition of "word character" may
not *always*
meet your expectations, but it should in this case.)



> brandName ==
> "(?i)(.*cyber.*|.*internet.*|.*pizza.*|.*restaurant.*|.*sushi.*)???
>
>
(The "==" is bad: you want to do a pattern match.) OK, to restrict the
"sushi" to the
real thing (assuming the final "???" aren't relevant):

brandName matches "(?i)(...|... ...|\\bsushi\\b)"

"\b" is the word boundary anchor, and you have to duplicate the backslash,
as in Java.
 If the same borderline case should hold for pizza and others, you could use

brandName matches
"(?i).*\\b(cyber|internet|pizza|restaurant|sushi)\\b.*"

All of this is untested, but it shouldn't be very far off the mark.
-W


>
> Best
>
> Stacy
>
> -Original Message-
> From: rules-users-boun...@lists.jboss.org [mailto:
> rules-users-boun...@lists.jboss.org] On Behalf Of Wolfgang Laun
> Sent: Thursday, March 27, 2014 12:26 AM
> To: Rules Users List
> Subject: Re: [rules-users] How to do word match in drools?
>
> You can use == to compare strings.
>
> For a more comprehensive answer, ask a more detailed question.
>
> -W
>
> On 26/03/2014, Yuan, Stacy [DBA]  wrote:
> > For example,  word sushi
> > I do not want sushie show up and shsushi show up when we do drools match.
> >
> > Thanks
> > Stacy
> >
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

[rules-users] duplicate class in drools

2014-03-27 Thread Ricardo
Hello guys, thanks in advance for your attention...

I found 3 DebugWorkingMemoryEventListener (ther are lot like this but this
is one among them) class in 3 various drools jars *drools-core-6.0.1,
knowledge-api-6.0.1 and kie-api-6.0.1 * jars, which one to be use?
two from event.rule package and one from core.event package?

I am bit confusing of these duplicates names, when knowledge-api introduced
this happen now again it happens becouse of kie-api,

my questions is as follows...

*1 - what is your recommendation for this problem?
2 - Is this going to be continue for future release too? *

thanks,




-
with kind regards,

--
View this message in context: 
http://drools.46999.n3.nabble.com/duplicate-class-in-drools-tp4029001.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] drools-camel-server-example exception

2014-03-27 Thread Maxime Falaize
Hello,

I was testing SOAP requests with the drools-camel-server-example and I have
trouble with it.
Everything is fine when I run org.drools.server.CxfSoapClientServerTest but
I noted that the SOAP request is sent to a spring reference of the cxf
endpoint and when I want to change it to
cxfrs://http://localhost:9002/soapto be more realistic, it raises this
exception :

Caused by: org.apache.cxf.interceptor.Fault: .No message body writer has
been found for class : class
com.sun.xml.internal.messaging.saaj.soap.ver1_1.Message1_1Impl, ContentType
: text/plain.
at
org.apache.cxf.jaxrs.client.WebClient$BodyWriter.handleMessage(WebClient.java:938)
~[cxf-rt-frontend-jaxrs-2.6.8.jar:2.6.8]
at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:262)
~[cxf-api-2.6.8.jar:2.6.8]
at
org.apache.cxf.jaxrs.client.WebClient.doChainedInvocation(WebClient.java:839)
~[cxf-rt-frontend-jaxrs-2.6.8.jar:2.6.8]
... 90 common frames omitted
Caused by: org.apache.cxf.jaxrs.client.ClientWebApplicationException: .No
message body writer has been found for class : class
com.sun.xml.internal.messaging.saaj.soap.ver1_1.Message1_1Impl, ContentType
: text/plain.
at
org.apache.cxf.jaxrs.client.AbstractClient.reportMessageHandlerProblem(AbstractClient.java:635)
~[cxf-rt-frontend-jaxrs-2.6.8.jar:2.6.8]
at
org.apache.cxf.jaxrs.client.AbstractClient.writeBody(AbstractClient.java:401)
~[cxf-rt-frontend-jaxrs-2.6.8.jar:2.6.8]
at
org.apache.cxf.jaxrs.client.WebClient$BodyWriter.handleMessage(WebClient.java:930)
~[cxf-rt-frontend-jaxrs-2.6.8.jar:2.6.8]
... 92 common frames omitted

I don't know how to correct this issue.

To be more precise, I edited the camel-client-test.xml and changed in the
soap route  to http://localhost:9002/soap"/>.

Thanks for your help.

-- 
Maxime FALAIZE
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

Re: [rules-users] How to do word match in drools?

2014-03-27 Thread rjr201
Hi, 

This is more a question about regular expressions than drools. However, if I
understand your question correctly you want to change this:

.*sushi.*

to

 *sushi .*

Cheers,
Rich



--
View this message in context: 
http://drools.46999.n3.nabble.com/rules-users-How-to-do-word-match-in-drools-tp4028979p4028996.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] How to do word match in drools?

2014-03-27 Thread Yuan, Stacy [DBA]
Hi,

I am new to this area. Thank you very much for your reply!

This is current script

brandName matches 
"(?i)(.*cyber.*|.*internet.*|.*pizza.*|.*restaurant.*|.*sushi.*)

So this  matches every string containing sushi. 

Joa Sushie Café
Java Sushi
Sushi Blvd
Japanese Sushi Bar

But I only want to match the word sushi. This means " Joa Sushie Café" will not 
be included.

Actually I am looking for word match. What is the best way to include above 
words?

brandName == "(?i)(.*cyber.*|.*internet.*|.*pizza.*|.*restaurant.*|.*sushi.*)???


Best

Stacy

-Original Message-
From: rules-users-boun...@lists.jboss.org 
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Wolfgang Laun
Sent: Thursday, March 27, 2014 12:26 AM
To: Rules Users List
Subject: Re: [rules-users] How to do word match in drools?

You can use == to compare strings.

For a more comprehensive answer, ask a more detailed question.

-W

On 26/03/2014, Yuan, Stacy [DBA]  wrote:
> For example,  word sushi
> I do not want sushie show up and shsushi show up when we do drools match.
>
> Thanks
> Stacy
>
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] KnowledgeAgentImpl memory leak (5.5.0.Final)

2014-03-27 Thread alineasol
Now we "only" have the memory leak problem when kbase is rebuilt because of
resource changes



--
View this message in context: 
http://drools.46999.n3.nabble.com/KnowledgeAgentImpl-memory-leak-5-5-0-Final-tp4028798p4028994.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] KnowledgeAgentImpl memory leak (5.5.0.Final)

2014-03-27 Thread san_hegde
Ok, thanks for the reply.

One more question.   So what are the issues which you still have?  I guess one 
is memory leak issue.  Apart from this do you have any other issue?

Thank you
Santhosh

From: alineasol [via Drools] [mailto:ml-node+s46999n4028986...@n3.nabble.com]
Sent: Thursday, March 27, 2014 3:59 PM
To: Ajekar, Santhosh Hegde (HP-IT)
Subject: Re: [rules-users] KnowledgeAgentImpl memory leak (5.5.0.Final)

We only have resolved the rebuild from cache problem when resources are down

You have the changes in the class UrlResource.java in our previous post in bold 
and also the patch posted by Toshiya Kobayashi: 
https://github.com/droolsjbpm/drools/commit/34d7d2c7de1ce55cea93f7317a7c682c69c57eae



If you reply to this email, your message will be added to the discussion below:
http://drools.46999.n3.nabble.com/KnowledgeAgentImpl-memory-leak-5-5-0-Final-tp4028798p4028986.html
To start a new topic under Drools: User forum, email 
ml-node+s46999n4700...@n3.nabble.com
To unsubscribe from KnowledgeAgentImpl memory leak (5.5.0.Final), click 
here.
NAML




--
View this message in context: 
http://drools.46999.n3.nabble.com/KnowledgeAgentImpl-memory-leak-5-5-0-Final-tp4028798p4028993.html
Sent from the Drools: User forum mailing list archive at Nabble.com.___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

Re: [rules-users] BuildError: Unable to Analyse Expression BUT WORKING, how can I remove error

2014-03-27 Thread grules
Thanks Joe!!!

From: Joe White-3 [via Drools] [mailto:ml-node+s46999n4028980...@n3.nabble.com]
Sent: Wednesday, March 26, 2014 5:42 PM
To: Gopu Shrestha
Subject: Re: [rules-users] BuildError: Unable to Analyse Expression BUT 
WORKING, how can I remove error

Remove the "<" characters. But it will still return an error. The error is 
valid. There is no method called getValue() on String.

From: [hidden email] 
[mailto:[hidden email]] On 
Behalf Of grules
Sent: Wednesday, March 26, 2014 2:51 PM
To: [hidden email]
Subject: Re: [rules-users] BuildError: Unable to Analyse Expression BUT 
WORKING, how can I remove error

Hi Joe,
The eclipse is working and I inserted "-Ddrools.dialect.mvel.strict = " 
but the error still popping up.

Return type is String.

Thank you for your help..

From: Joe White-3 [via Drools] [mailto:ml-node+[hidden 
email]]
Sent: Wednesday, March 26, 2014 4:41 PM
To: Gopu Shrestha
Subject: Re: [rules-users] BuildError: Unable to Analyse Expression BUT 
WORKING, how can I remove error

You're supposed to pick a value for that one. Either true or false. It is a 
property. You may also need the -D.

I'm asking what is the return type on getProviderClaimNumber() and does that 
type have a getValue method?

From: [hidden email] 
[mailto:[hidden email]] On 
Behalf Of grules
Sent: Wednesday, March 26, 2014 2:12 PM
To: [hidden email]
Subject: Re: [rules-users] BuildError: Unable to Analyse Expression BUT 
WORKING, how can I remove error

Hi Joe,

The getProviderClaimNumber return? i.e. System.out.println("...java 
(getter/setter)...providerClaimNumber.."+$claim.getClaimIdentificationInfo().getProviderClaimNumber().getValue())

Same value "130430007701"
As $claim.claimIdentificationInfo.providerClaimNumber.value Do i.e. 130430007701

Now for My Eclipse didn't open when I added drools.dialect.mvel.strict 
=

I just added like this in eclipse.ini
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20120913-144807
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Dhelp.lucene.tokenizer=standard
-Xms40m
-Xmx512m

drools.dialect.mvel.strict = 


From: Joe White-3 [via Drools] [mailto:ml-node+[hidden 
email]]
Sent: Wednesday, March 26, 2014 3:56 PM
To: Gopu Shrestha
Subject: Re: [rules-users] BuildError: Unable to Analyse Expression BUT 
WORKING, how can I remove error

I haven't done it in a long time but I think you have to disable strict mode in 
your eclipse ini file

>From the docs:
drools.dialect.mvel.strict = 

I can't swear that will work though.  What does getProviderClaimNumber return? 
Does it actually have a getValue() method?

From: [hidden email] 
[mailto:[hidden email]] On 
Behalf Of Gopu Shrestha
Sent: Wednesday, March 26, 2014 1:29 PM
To: Rules Users List
Subject: [rules-users] BuildError: Unable to Analyse Expression BUT WORKING, 
how can I remove error

It is so annoying to see an error marks in Eclipse Juno with Drools Plug in. 
However the code is working fine...
How can clean up this error??? Please advise...


[http://drools.46999.n3.nabble.com/attachment/4028973/0/image001.png]

Error Message!
BuildError: Unable to Analyse Expression System.out.println("...java 
(getter/setter)...providerClaimNumber.."+$claim.getClaimIdentificationInfo().getProviderClaimNumber().getValue());

System.out.println("..mvel...providerClaimNumber.."+$claim.claimIdentificationInfo.providerClaimNumber.value);
System.out.println("...ctype..."+$ct.value);:
[Error: unable to resolve method using strict-mode: java.lang.String.getValue()]
[Near : {... oviderClaimNumber().getValue()); }]

  ^
[Line: 32, Column: 0]


Console Output:
...java (getter/setter)...providerClaimNumber..130430007701
..mvel...providerClaimNumber..130430007701
...ctype...I


___
rules-users mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/rules-users

If you reply to this email, your message will be added to the discussion below:
http://drools.46999.n3.nabble.com/rules-users-BuildError-Unable-to-Analyse-Expression-BUT-WORKING-how-can-I-remove-error-tp4028972p4028973.html
To start a new topic under Drools: User forum, email [hidden 
email]
To unsubscribe from Drools, click here.
NAML

Re: [rules-users] Error when I upload a POJO to Guvnor

2014-03-27 Thread ahgiovanini
Tks ashish6276 but it doesn't worked for me.

My server log show this exception,


> Mar 27, 2014 8:07:56 AM org.apache.catalina.core.StandardWrapperValve
> invoke
> SEVERE: Servlet.service() for servlet [AssetFileServlet] in context with
> path [/guvnor-5.6.0.Final-tomcat-6.0] threw exception
> javax.enterprise.event.ObserverException
>   at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>   at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
>   at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
> Source)
>   at java.lang.reflect.Constructor.newInstance(Unknown Source)
>   at java.lang.Class.newInstance0(Unknown Source)
>   at java.lang.Class.newInstance(Unknown Source)
>   at
> org.jboss.weld.util.reflection.SecureReflections$16.work(SecureReflections.java:344)
>   at
> org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:52)
>   at
> org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInstantiation(SecureReflectionAccess.java:173)
>   at
> org.jboss.weld.util.reflection.SecureReflections.newInstance(SecureReflections.java:341)
>   at
> org.jboss.weld.injection.Exceptions.rethrowException(Exceptions.java:33)
>   at
> org.jboss.weld.injection.Exceptions.rethrowException(Exceptions.java:73)
>   at
> org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:162)
>   at
> org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:245)
>   at
> org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:233)
>   at
> org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:213)
>   at
> org.jboss.weld.manager.BeanManagerImpl.notifyObservers(BeanManagerImpl.java:590)
>   at
> org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:580)
>   at
> org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:575)
>   at
> org.jboss.solder.servlet.exception.CatchExceptionFilter.doFilter(CatchExceptionFilter.java:74)
>   at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
>   at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>   at
> org.jboss.solder.servlet.event.ServletEventBridgeFilter.doFilter(ServletEventBridgeFilter.java:74)
>   at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
>   at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>   at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
>   at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
>   at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
>   at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
>   at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
>   at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
>   at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
>   at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
>   at
> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023)
>   at
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
>   at
> org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
>   at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown 
> Source)
>   at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>   at java.lang.Thread.run(Unknown Source)
> Caused by: javax.servlet.ServletException: Servlet execution threw an
> exception
>   at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:328)
>   at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>   at
> org.jboss.solder.servlet.exception.CatchExceptionFilter.doFilter(CatchExceptionFilter.java:65)
>   ... 19 more
> Caused by: java.lang.UnsupportedClassVersionError: com/sample/Process :
> Unsupported major.minor version 51.0
>   at java.lang.ClassLoader.defineClass1(Native Method)
>   at java.lang.ClassLoader.defineClassCond(Unknown Source)
>   at java.lang.ClassLoader.defineClass(Unknown Source)
>   at
> org.drools.rule.MapBackedClassLoader.fastFindClass(MapBackedClassLoader.java:85)
>   at
> org.drools.rule.MapBackedClassLoader.loadClass(MapBackedClassLoader.java:103)
>   at java.lang.ClassLoader.loadClass(Unknown Source)
>   at
> org.drools.guvnor.server.contenthandler.ModelContentHandler.isClassVisible(M

Re: [rules-users] Error when I upload a POJO to Guvnor

2014-03-27 Thread Ashish Kumar
It ask for name while uploading. AFAIK Name should be same as of your pojo
jar name.
On 27 Mar 2014 16:18, "ahgiovanini"  wrote:

> hi guys!
>
> I'm using Guvnor 5.6.0 Final with tomcat 7.
>
> When I try upload a POJO file to Guvnor, I received one message error
> saying
> that is not possible load the file.
>
> Someone can help me please?
>
> Tks!
>
>
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/Error-when-I-upload-a-POJO-to-Guvnor-tp4028989.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

[rules-users] Error when I upload a POJO to Guvnor

2014-03-27 Thread ahgiovanini
hi guys!

I'm using Guvnor 5.6.0 Final with tomcat 7.

When I try upload a POJO file to Guvnor, I received one message error saying
that is not possible load the file.

Someone can help me please?

Tks!



--
View this message in context: 
http://drools.46999.n3.nabble.com/Error-when-I-upload-a-POJO-to-Guvnor-tp4028989.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Editing Action in Guided decision table ruins the action.

2014-03-27 Thread Michael Anstis
This has been fixed for the next release.


On 27 March 2014 10:38, Ioannis Christodoulou  wrote:

> Hello everyone,
> I'm using the latest stable kie workbench (6.0.1.Final) and I have created
> a guided decision table containing an action with free form brl.
>
> Whenever I try to edit this action and press apply changes, kie workbench
> will duplicate the action (creating the new/edited action, while keeping
> the old one) and will not allow me to remove (by clicking on the minus
> icon) the old action.
>
> If I try to validate the guided decision table, I get an error saying
> "Unable to complete your request. The following exception occurred:
> rowData contains a different number of columns to those provided".
>
> The only solution I found is to remove the action that I need to edit and
> re-create it. But this means that I have to re-enter the parameters in my
> rules.
>
> Example action:
> /*MyUtils is a custom class and I am calling a static method passing
> arguments: a string taken as a parameter from each rule and a Level object
> matched in the rule.
> */
> MyUtils.calculateLevel( "@{level_value}", $level);
>
> The issue appears if I try to change that by clicking on the edit (pencil)
> icon to (or any other change actually):
> MyUtils.calculateLevel("@{level_value}", "@{another_value}", $level);
>
> Kind regards
>
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

[rules-users] Editing Action in Guided decision table ruins the action.

2014-03-27 Thread Ioannis Christodoulou
Hello everyone,
I'm using the latest stable kie workbench (6.0.1.Final) and I have created
a guided decision table containing an action with free form brl.

Whenever I try to edit this action and press apply changes, kie workbench
will duplicate the action (creating the new/edited action, while keeping
the old one) and will not allow me to remove (by clicking on the minus
icon) the old action.

If I try to validate the guided decision table, I get an error saying
"Unable to complete your request. The following exception occurred: rowData
contains a different number of columns to those provided".

The only solution I found is to remove the action that I need to edit and
re-create it. But this means that I have to re-enter the parameters in my
rules.

Example action:
/*MyUtils is a custom class and I am calling a static method passing
arguments: a string taken as a parameter from each rule and a Level object
matched in the rule.
*/
MyUtils.calculateLevel( "@{level_value}", $level);

The issue appears if I try to change that by clicking on the edit (pencil)
icon to (or any other change actually):
MyUtils.calculateLevel("@{level_value}", "@{another_value}", $level);

Kind regards
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

Re: [rules-users] KnowledgeAgentImpl memory leak (5.5.0.Final)

2014-03-27 Thread alineasol
We only have resolved the rebuild from cache problem when resources are down

You have the changes in the class *UrlResource.java* in our previous post in
bold and also the patch posted by Toshiya Kobayashi: 
https://github.com/droolsjbpm/drools/commit/34d7d2c7de1ce55cea93f7317a7c682c69c57eae

  





--
View this message in context: 
http://drools.46999.n3.nabble.com/KnowledgeAgentImpl-memory-leak-5-5-0-Final-tp4028798p4028986.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] How to do word match in drools?

2014-03-27 Thread Wolfgang Laun
You can use == to compare strings.

For a more comprehensive answer, ask a more detailed question.

-W

On 26/03/2014, Yuan, Stacy [DBA]  wrote:
> For example,  word sushi
> I do not want sushie show up and shsushi show up when we do drools match.
>
> Thanks
> Stacy
>
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] KnowledgeAgentImpl memory leak (5.5.0.Final)

2014-03-27 Thread san_hegde
Did you finally get any solution to avoid memory leak in kbase building..

I am using drools/Guvnor 5.2 version.  Coud you please list all the changes
i have to do in source code to avoind all the issues which you were facing
like 
1) avoid rebuilding kbase from Cache,
2) avoid rebuilding cache when resource chnages in Guvnor
etc..

Thank you



--
View this message in context: 
http://drools.46999.n3.nabble.com/KnowledgeAgentImpl-memory-leak-5-5-0-Final-tp4028798p4028984.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users