Re: [rules-users] [drools-wb] how to move an asset to another package ?

2014-07-23 Thread Toni Rikkola
Looks like the move is indeed missing. For now you can clone the git
repo, do the refactoring and push the changes back to the workbench.

Toni Rikkola

On ti, 2014-07-22 at 03:25 -0700, jps wrote:
 Hello, 
 
 I'm in the process of refactoring the different packages in my project.
 How can I move an asset (a guided decision table in this case) from its
 current package to a new package ?
 It seems there's no button or action for that in drools-wb ?
 
 Regards.
 --jps
 
 
 
 --
 View this message in context: 
 http://drools.46999.n3.nabble.com/drools-wb-how-to-move-an-asset-to-another-package-tp4030422.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


Re: [rules-users] Including repository in a WAR file

2014-07-23 Thread Toni Rikkola
This is possible, but you will need to add the ability to compile the
repository_export.zip. This means you need to reuse a lot of the Guvnor
codes for resolving enums, package imports, guided rules and so on.  

If I guess our needs correctly. You are better taking a different
approach. Build the repository using Guvnor and then add the import
function for Drools packages. This way you only need the Drools core in
your own application for running these packages and updating them is
easy.

Toni Rikkola

On ti, 2014-07-22 at 17:55 -0700, ilguapo wrote:
 I'm using Drools 5.3.0
 
 
 I'd like to find out if the following scenario is possible:
 
 - Include the repository_export.zip file inside my application WAR file. 
 This way, Guvnor won't be necessary.
 - Provide a special upload page just like Guvnor's Import/Export to upload a
 completely new repository_export.zip file when rules have changed.
 
 I haven't been able to find a way to read a repository_export.zip file with
 the current API.  They only talk about drl, pkg, etc..etc but no zip files. 
 I could potentially take the zip file, unzip it to an XML and maybe read
 this file??
 
 Any ideas would be really helpful. 
 
 Regards,
 Ilguapo
 
 
 
 --
 View this message in context: 
 http://drools.46999.n3.nabble.com/Including-repository-in-a-WAR-file-tp4030450.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


Re: [rules-users] Using java enums in guvnor test scenarios (6.0.1Final)

2014-07-22 Thread Toni Rikkola
Hi,

Tested this and looks like you found a bug. Made a ticket for it so we
can get it fixed.
https://bugzilla.redhat.com/show_bug.cgi?id=1121985

Thanks for reporting
Toni Rikkola


On ma, 2014-07-21 at 10:28 -0700, pacovalsera wrote:
 Hi all, I'm defining a test scenario within guvnor (now called kie-workbench)
 and I'm experiencing some issues about using java enums.
 
 The case is simple, I have a java model (deploying a jar) with a class
 having a member of enum type. The enum is defined in the same package but in
 a different java file, not an inner class. This is packed in a jar that I
 deploy manually uploading the file to the embedded maven repo using the
 workbench.
 
 /
 public class ClassWithMemberAsEnum { private EnumType enumMember;
 /*getters/setters included*/}
 public enum EnumType {HELLO, BYE}
 /
 
 Then I write a dummy rule with the guided editor like this:
 
 /
 import es.shin.test.ClassWithMemberAsEnum;
 import es.shin.test.EnumType;
   
 rule DummyRule
 dialect mvel
 when
 x : ClassWithMemberAsEnum( enumMember == EnumType.HELLO )
 then
 x.setEnumMember( EnumType.BYE );
 end
 /
 
 And finally a test scenario inserting a ClassWithMemberAsEnum initialized
 with enumMember=EnumType.HELLO and checking that it is changed to
 EnumType.BYE after firing all rules.
 
 The error message returned in the reporting console is:
 
 /
 EnumTest : [Error: unable to resolve method using strict-mode:
 java.lang.Object.es()] [Near : {... es.shin.test.EnumType.HELLO }] ^
 [Line: 1, Column: 1]
 /
 
 I have tried the same case but defining the class in the data modeler and
 the enum with the enumeration editor, without using any jar artifact. The
 case worked as expected.
 
 Has anybody experienced the same issue?  Thanks for your help.
 
 
 
 
 --
 View this message in context: 
 http://drools.46999.n3.nabble.com/Using-java-enums-in-guvnor-test-scenarios-6-0-1Final-tp4030411.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


Re: [rules-users] kie-wb 6.1.CR2

2014-07-13 Thread Toni Rikkola
You can get 6.1.0.CR2 from Nexus.

https://repository.jboss.org/nexus/index.html#nexus-search;quick~kie-wb-dis

Toni

On la, 2014-07-12 at 02:04 -0700, Sumit Dhaniya wrote:
 Is there any link from where I can download kie-wb6.1.CR2 or I'll have to
 clone the project and create war.
 I tried the nightly build but unfortunately it doesn't works. 
 When I deploy it in tomcat 7 I can't access index page.
 
 
 
 --
 View this message in context: 
 http://drools.46999.n3.nabble.com/kie-wb-6-1-CR2-tp4030321.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


Re: [rules-users] uploading jar into drools-repo : ERROR

2014-03-28 Thread Toni Rikkola
Hi,

Can you let us know the guvnor/workbench version and few steps on how
you are trying to do the upload.

Thank you
Toni

On pe, 2014-03-28 at 15:12 +0530, sravan k wrote:
 Hi All , 
 
 
 Can any one of you guys please help me ..
 
 
 I am getting below exception while I'm uploading JAR into
 repository ,please let me know how to resolve this .
 
 
 
 
 Sorry, a technical error occurred. Please contact a system
 administrator
 
 ---
 Regards,
 Sravan.
 
 
 ___
 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] Error when I upload a POJO to Guvnor

2014-03-28 Thread Toni Rikkola
It is best to make a ticket with few steps on how to reproduce and an
example file if possible.

Sounds like this works for some, but your jar has something that the
Guvnor codes can not handle.

https://issues.jboss.org/browse/GUVNOR

Toni

On to, 2014-03-27 at 04:09 -0700, ahgiovanini wrote:
 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
  

Re: [rules-users] Updating project repositories

2014-03-21 Thread Toni Rikkola
Hi Joe,

What we do in the Workbench is just editing the pom.xml with our
editor. 

Since the problem happens during Build  Deploy, I'm tempted to say the
problem is in Drools core. We just pass the pom.xml as it is for the
core codes and let them handle all the Maven tasks. 

I'll check with Mario if this is a bug or if we have set the build up
wrong.

Toni

On to, 2014-03-20 at 22:07 +, Joe White wrote:
 Thanks Mike. I’ll take a look.
 
  
 
 From: rules-users-boun...@lists.jboss.org
 [mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Michael
 Anstis
 Sent: Thursday, March 20, 2014 4:03 PM
 To: Rules Users List
 Subject: Re: [rules-users] Updating project repositories
 
  
 
 The workbench attempts an install and deploy. GuvnorM2Repository in
 the guvnor project is the class (IIRC).
 
 Sent on the move
 
 On 20 Mar 2014 21:47, Joe White joe.wh...@recondotech.com wrote:
 
 In fact, if I manually go into the guvnor repository, copy the
 pom.xml directly from the workbench, and command line run “mvn
 deploy” the jar gets pushed out to my remote repository. So I
 know for sure the pom is configured correctly in the workbench
 
  
 
 Is the workbench actually calling “deploy” or just “install” ?
 Where in the code would be a good starting point to dig a
 little deeper on this?
 
  
 
 From:rules-users-boun...@lists.jboss.org
 [mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Joe
 White
 Sent: Thursday, March 20, 2014 3:15 PM
 To: Rules Users List
 Subject: Re: [rules-users] Updating project repositories
 
 
  
 
 I’ve got distribution management that matches my settings xml
 added to the pom but it doesn’t seem to connect (or to attempt
 to connect)
 
  
 
 distributionManagement
 
 repository
 
   idrecondo-repo/id
 
 
 
 urlhttp://papaafrepo001.recondo.vci:8081/artifactory/recondo-release/url
 
 /repository
 
 snapshotRepository
 
   idrecondo-repo/id
 
 
 
 urlhttp://papaafrepo001.recondo.vci:8081/artifactory/recondo-snapshot/url
 
 /snapshotRepository
 
   /distributionManagement
 
  
 
  
 
  
 
 From:rules-users-boun...@lists.jboss.org
 [mailto:rules-users-boun...@lists.jboss.org] On Behalf Of
 Michael Anstis
 Sent: Thursday, March 20, 2014 2:56 PM
 To: Rules Users List
 Subject: Re: [rules-users] Updating project repositories
 
  
 
 That depends how you're configuring your project's
 distribution management.
 
 Adding (I assume) your remote to the repositories section is
 only telling maven a remote to query to *download* artifacts.
 
 Sent on the move
 
 On 20 Mar 2014 20:41, Joe White joe.wh...@recondotech.com
 wrote:
 
 So if I change the configuration in the WB UI should I
 expect the jar to end up in my remote repo? It is only
 ending up in my local repository.
 
  
 
 From:rules-users-boun...@lists.jboss.org
 [mailto:rules-users-boun...@lists.jboss.org] On Behalf
 Of Michael Anstis
 Sent: Thursday, March 20, 2014 1:10 PM
 To: Rules Users List
 Subject: Re: [rules-users] Updating project
 repositories
 
  
 
 I've asked a colleague to comment. 
 
 We do manipulate the pom for the UI but should retain
 original content that is not modified by the Project
 Editor.
 
 @Toni... What's your opinion?
 
 Sent on the move
 
 On 20 Mar 2014 18:03, Joe White
 joe.wh...@recondotech.com wrote:
 
 Also, that is the same configuration that is
 in my settings.xml for my installed maven
 instance and the profile is active.
 
  
 
 From: rules-users-boun...@lists.jboss.org
 [mailto:rules-users-boun...@lists.jboss.org]
 On Behalf Of Joe White
 Sent: Thursday, March 20, 2014 12:01 PM
 To: Rules Users List
 Subject: [rules-users] 

Re: [rules-users] Updating project repositories

2014-03-21 Thread Toni Rikkola
And Mario bounced it back into Workbench ;)

We do our deployment here.

https://github.com/droolsjbpm/guvnor/blob/master/guvnor-m2repo-editor/guvnor-m2repo-editor-backend/src/main/java/org/guvnor/m2repo/backend/server/GuvnorM2Repository.java#L197

First we install into the local. The computer where the workbench is
running.

Then we deploy into the repository that is inside the Workbench.

And then we ignore anything that is set up in the pom.xml.

Toni

On pe, 2014-03-21 at 08:58 +0200, Toni Rikkola wrote:
 Hi Joe,
 
 What we do in the Workbench is just editing the pom.xml with our
 editor. 
 
 Since the problem happens during Build  Deploy, I'm tempted to say the
 problem is in Drools core. We just pass the pom.xml as it is for the
 core codes and let them handle all the Maven tasks. 
 
 I'll check with Mario if this is a bug or if we have set the build up
 wrong.
 
 Toni
 
 On to, 2014-03-20 at 22:07 +, Joe White wrote:
  Thanks Mike. I’ll take a look.
  
   
  
  From: rules-users-boun...@lists.jboss.org
  [mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Michael
  Anstis
  Sent: Thursday, March 20, 2014 4:03 PM
  To: Rules Users List
  Subject: Re: [rules-users] Updating project repositories
  
   
  
  The workbench attempts an install and deploy. GuvnorM2Repository in
  the guvnor project is the class (IIRC).
  
  Sent on the move
  
  On 20 Mar 2014 21:47, Joe White joe.wh...@recondotech.com wrote:
  
  In fact, if I manually go into the guvnor repository, copy the
  pom.xml directly from the workbench, and command line run “mvn
  deploy” the jar gets pushed out to my remote repository. So I
  know for sure the pom is configured correctly in the workbench
  
   
  
  Is the workbench actually calling “deploy” or just “install” ?
  Where in the code would be a good starting point to dig a
  little deeper on this?
  
   
  
  From:rules-users-boun...@lists.jboss.org
  [mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Joe
  White
  Sent: Thursday, March 20, 2014 3:15 PM
  To: Rules Users List
  Subject: Re: [rules-users] Updating project repositories
  
  
   
  
  I’ve got distribution management that matches my settings xml
  added to the pom but it doesn’t seem to connect (or to attempt
  to connect)
  
   
  
  distributionManagement
  
  repository
  
idrecondo-repo/id
  
  
  
  urlhttp://papaafrepo001.recondo.vci:8081/artifactory/recondo-release/url
  
  /repository
  
  snapshotRepository
  
idrecondo-repo/id
  
  
  
  urlhttp://papaafrepo001.recondo.vci:8081/artifactory/recondo-snapshot/url
  
  /snapshotRepository
  
/distributionManagement
  
   
  
   
  
   
  
  From:rules-users-boun...@lists.jboss.org
  [mailto:rules-users-boun...@lists.jboss.org] On Behalf Of
  Michael Anstis
  Sent: Thursday, March 20, 2014 2:56 PM
  To: Rules Users List
  Subject: Re: [rules-users] Updating project repositories
  
   
  
  That depends how you're configuring your project's
  distribution management.
  
  Adding (I assume) your remote to the repositories section is
  only telling maven a remote to query to *download* artifacts.
  
  Sent on the move
  
  On 20 Mar 2014 20:41, Joe White joe.wh...@recondotech.com
  wrote:
  
  So if I change the configuration in the WB UI should I
  expect the jar to end up in my remote repo? It is only
  ending up in my local repository.
  
   
  
  From:rules-users-boun...@lists.jboss.org
  [mailto:rules-users-boun...@lists.jboss.org] On Behalf
  Of Michael Anstis
  Sent: Thursday, March 20, 2014 1:10 PM
  To: Rules Users List
  Subject: Re: [rules-users] Updating project
  repositories
  
   
  
  I've asked a colleague to comment. 
  
  We do manipulate the pom for the UI but should retain
  original content that is not modified by the Project
  Editor.
  
  @Toni... What's your opinion?
  
  Sent on the move
  
  On 20 Mar 2014 18:03, Joe White
  joe.wh

Re: [rules-users] DSL: Unable to Expand Error - Even things that shouldn't be expanded.

2014-03-12 Thread Toni Rikkola
Is the DRL widget in step 9 empty? If not the content might break this,
but if validate works after step 9 then this must be a bug in the
editor. 

Toni

On ma, 2014-03-10 at 08:16 -0700, SrjTx wrote:
 Ok, this should make it happen
 
 1) Add new Guided Rule
 2) Tick Use DSL
 3) Click OK
 4) Add a DSL sentence
 5) Validated rule - OK
 6) Viewed Source - OK
 7) Saved - OK
 8) Re-opened - OK
 *9) Add a raw DRL to the then clause
 10) Save and publish.  You should see error in server.log*
 
 restarting jboss fixes it.
 
 
 
 --
 View this message in context: 
 http://drools.46999.n3.nabble.com/DSL-Unable-to-Expand-Error-Even-things-that-shouldn-t-be-expanded-tp4027749p4028612.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


Re: [rules-users] Fwd: Not able to deploy workbench

2014-03-12 Thread Toni Rikkola
Something going wrong here, since the web.xml doesn't have the
TOMCAT-JEE-SECURITY bits. Could be that there is a problem with our
release build.

Before release I tested the war with Tomcat and back then the web.xml
had TOMCAT-JEE-SECURITY bits in it. 

Toni

On ke, 2014-03-12 at 13:09 +, Michael Anstis wrote:
 
 
 -- Forwarded message --
 From: Maciej Swiderski swiderski.mac...@gmail.com
 Date: 12 March 2014 13:07
 Subject: Re: [rules-users] Not able to deploy workbench
 To: Michael Anstis michael.ans...@gmail.com
 Cc: Toni Rikkola t...@rikkola.net
 
 
 Mike,
 
 
 comments inline.
 
 
 Maciej
 On 12 mar 2014, at 13:16, Michael Anstis michael.ans...@gmail.com
 wrote:
 
  Any ideas? 
  
  (With your tomcat experience)
  
  Sent on the move
  
  -- Forwarded message --
  From: stephan step...@sann.name
  Date: 12 Mar 2014 12:04
  Subject: Re: [rules-users] Not able to deploy workbench
  To: rules-users@lists.jboss.org
  Cc: 
  
  Thanks, manstis!
  
  The information and the link you provided were very helpful.
  
  I am now able to deploy the application on tomcat and get to the
  login-page.
  
  Nevertheless I am not able to log in :(
  
  I followed every step provided in the README.txt, except step 5.
  (Edit
  web.xml and uncomment all entries that are marked with
  TOMCAT-JEE-SECURITY)
  - because it was not possible.
  
  a) It doesn't say which web.xml - could be the one included in the
  WAR,
  could be the one included in Tomcat's conf-directory.
  
 web.xml from war file should be edited
 
  b) Neither of these two files has entries marked
  TOMCAT-JEE-SECURITY (I
  have Tomcat 7.0.47).
  
 these files are again in war inside WEB-INF
 
 
 Maciej
 
  c) Google-search for TOMCAT-JEE-SECURITY brings up 7 (!) results -
  none of
  them helpful (most of them just repeating the same sentence from the
  readme-file...)
  
  Any more ideas?
  
  Thanks again!
  
  Best regards
  Stephan
  
  
  
  
  
  
  --
  View this message in context:
  http://drools.46999.n3.nabble.com/Not-able-to-deploy-workbench-tp4028658p4028660.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 mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Fwd: Not able to deploy workbench

2014-03-12 Thread Toni Rikkola
You can try and copy the web.xml here that has those lines.

https://github.com/droolsjbpm/kie-wb-distributions/blob/master/kie-drools-wb/kie-drools-wb-distribution-wars/src/main/tomcat7/WEB-INF/web.xml


Toni

On ke, 2014-03-12 at 06:41 -0700, stephan wrote:
 Hi again
 
 Thanks a real lot for your effort!
 
 But - as I told you - the web.xml does not have any entries marked with
 TOMCAT-JEE-SECURITY:
 
 *c:\development\apache-tomcat-7.0.47\webapps\kie-drools-wb-distribution-wars-6.0.1.Final-tomcat7.0\WEB-INFfindstr
 welcome-file web.xml
   welcome-file-list
 welcome-fileindex.jsp/welcome-file
   /welcome-file-list
 
 c:\development\apache-tomcat-7.0.47\webapps\kie-drools-wb-distribution-wars-6.0.1.Final-tomcat7.0\WEB-INFfindstr
 TOMCAT-JEE-SECURITY web.xml
 
 c:\development\apache-tomcat-7.0.47\webapps\kie-drools-wb-distribution-wars-6.0.1.Final-tomcat7.0\WEB-INF*
 
 Anyhow I think we have a misunderstanding here. Your write
 these files are again in war inside WEB-INF.
 
 I think this is not about these (whatever) files, this is about the (one)
 file web.xml which content should be altered.
 
 Best regards
 Stephan
 
 
 
 --
 View this message in context: 
 http://drools.46999.n3.nabble.com/Not-able-to-deploy-workbench-tp4028658p4028664.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


Re: [rules-users] 6.0.1.F EXTENDS in Guided Rule Editor does not work

2014-03-05 Thread Toni Rikkola
Works with the latest codes I have. Can you give some sort of mock
example of the DRL rule that you are trying to extend? I just want to
verify this is not failing because of that.  

Toni

On ti, 2014-03-04 at 15:07 -0800, SrjTx wrote:
 Any time I have tried to create a new RDSLR and select an [Extends] class I
 get:
 
 Unable to resolve parent rule, please check that both rules are in the
 same package
 
 The are both certainly in the same package.
 
 I am trying to extend from a DRL, should that matter?
 
 
 
 
 
 --
 View this message in context: 
 http://drools.46999.n3.nabble.com/6-0-1-F-EXTENDS-in-Guided-Rule-Editor-does-not-work-tp4028506.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


Re: [rules-users] 6.0.1.F EXTENDS in Guided Rule Editor does not work

2014-03-05 Thread Toni Rikkola
One thing that came into my mind. You could check if the package written
in the DRL rule is actually the same as the RDSLR is in. The package in
the DRL does not have to match the folder that it is in.


Toni

On ti, 2014-03-04 at 15:07 -0800, SrjTx wrote:
 Any time I have tried to create a new RDSLR and select an [Extends] class I
 get:
 
 Unable to resolve parent rule, please check that both rules are in the
 same package
 
 The are both certainly in the same package.
 
 I am trying to extend from a DRL, should that matter?
 
 
 
 
 
 --
 View this message in context: 
 http://drools.46999.n3.nabble.com/6-0-1-F-EXTENDS-in-Guided-Rule-Editor-does-not-work-tp4028506.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


Re: [rules-users] Project Explorer has dissappeared in KIE Workbench

2014-01-20 Thread Toni Rikkola
I tested the 6.0.1.Final war with Chrome and got the user agent error.
Looks like the only browser that works 100% is Firefox and any other
that uses Gecko 1.8.

Toni

On ma, 2014-01-20 at 13:25 +, Michael Anstis wrote:
 Can you please confirm you downloaded the WAR
 from 
 http://download.jboss.org/drools/release/6.0.1.Final/kie-drools-wb-distribution-6.0.1.Final.zip
 
 
 
 
 
 
 On 20 January 2014 13:10, ivot ivan.ote...@gmail.com wrote:
 Hi All,
 
 I have installed JBoss 7.1.1 and deployed
 kie-drools-wb-distribution-6.0.1.Final.war.
 
 However, when I log in to KIE Workbench I get an error
 message:
 
 http://drools.46999.n3.nabble.com/file/n4027767/StartUp_Error.png
 
 Alos I do not see Project Explorer on the screen. Also when I
 click on
 Explorer Menu option Project Explorer is not listed there:
 
 
 http://drools.46999.n3.nabble.com/file/n4027767/No_Project_Explorer.png
 
 It seems that there were some warnings during deployment of
 kie workbench
 (see server.log attached).
 
 server.log
 http://drools.46999.n3.nabble.com/file/n4027767/server.log
 
 Can anyone advise please how to fix this?
 
 Thank you in advance,
 Ivan
 
 
 
 
 
 
 
 --
 View this message in context:
 
 http://drools.46999.n3.nabble.com/Project-Explorer-has-dissappeared-in-KIE-Workbench-tp4027767.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 mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Guvnor Rule Validation

2013-06-11 Thread Toni Rikkola
 I've had thoughts about putting each rule in it's own package, and then
 creating a layer in my code to hide this from the user. But that seems like
 a hack.. and I suspect it would drastically effect the performance.. 


This is actually pretty close to what Guvnor does if you click Validate in 
the editors. The reason is that we don't want to compile a full rule base for 
each click of validate. You can reuse the codes we use for validation. 

^ That is how Guvnor 5.x and older Guvnor's work. In Drools workbench 6.0 
(=Guvnor 6.0) the validate feature will most likely use incremental builds. 

Toni


On Jun 10, 2013, at 1:41 PM, rjr201 wrote:

 I'm creating a system which embeds the Guvnor Guided Editor and uses the REST
 API to allow the user to edit and create rules. 
 
 I can't trust the user to create syntactically correct rules. If they do
 create an invalid rule then the whole package of rules will fail to compile.
 I need to find a way to detect that a individual rule has broken, and point
 the user to that rule. So they don't just sit there not understanding why
 it's not working. 
 
 I can see that when using standalone Guvnor this wouldn't be a problem, as
 the user would be able to see that the rule has a red cross next to it
 meaning something is wrong with that rule. 
 
 Has anyone else had experience doing this? Is there a way to get the UUID of
 the specific rule that is causing the package not to compile?
 
 I've had thoughts about putting each rule in it's own package, and then
 creating a layer in my code to hide this from the user. But that seems like
 a hack.. and I suspect it would drastically effect the performance.. 
 
 As always, thanks any help/advice anyone can give. 
 
 
 
 --
 View this message in context: 
 http://drools.46999.n3.nabble.com/Guvnor-Rule-Validation-tp4024218.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


Re: [rules-users] Guvnor compatibility with EXPERT

2013-05-09 Thread Toni Rikkola
Ok, sorry I understood it the wrong way :)

I hope you mean 5.2.1, not 4.2.1. 

There is a good change that 5.5. works with 5.2.1, not much that I know has 
changed in the plugin. The only way to really know is to test it.

Toni

On May 8, 2013, at 5:53 PM, ashish6276 wrote:

 hi toni
 
 Jboss tools contains the plugin for 5.5 and 5.4. But the question  is
 will that plugin be compatible with the guvnor 4.2.1  ?
 
 
 
 --
 View this message in context: 
 http://drools.46999.n3.nabble.com/Guvnor-compatibility-with-EXPERT-tp4023720p4023724.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


Re: [rules-users] Guvnor compatibility with EXPERT

2013-05-08 Thread Toni Rikkola
JBossTools should include the latest plugin.

http://www.jboss.org/tools

Toni

On May 8, 2013, at 12:33 PM, ashish6276 wrote:

 Hi
 
I have guvnor 5.2.1.  But i am not getting eclipse plugin for drools
 expert 5.2.1. Will DROOLS expert 5.5 plugin be compatible with guvnor 5.2.1
 ? if not can anyone provide link to download plugin for 5.2.1.
 
 Thanks
 
 
 
 --
 View this message in context: 
 http://drools.46999.n3.nabble.com/Guvnor-compatibility-with-EXPERT-tp4023720.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

Re: [rules-users] Drools Guvnor - Testing rules

2013-05-02 Thread Toni Rikkola
Guvnor uses the Drools Verifier module for this. You can run the verifier in 
the QA Analysis section.

Here is a list of features the Verifier covers 
https://community.jboss.org/wiki/DroolsVerifier
It also has the features you listed. Verifier is not perfect, depends how you 
write your rules, but it is not 100% perfect when it looks for these issues.

The mortgage example that comes with Guvnor is currently the only one we have.

Toni Rikkola


On May 1, 2013, at 3:28 AM, Alan wrote:

 Hi guys,
 
 I'm validating some features of Drools Guvnor and I would like to have some
 directions.
 We've got a project that has a lot of rules(its not on drools already, but
 we pretend to migrate it) and we would like to use Drools Guvnor to host
 those rules and run some analysis on it.
 
 I've seen some features but it still not clear, so I will list my doubts and
 you can say, ok it does or no it doesn't do it.
 
 *Do drools guvnor validate missing ends on rules? Ex: when age  15 and sex
 == 'F' then Y();(note that it doesn't cover age = 15)
 *Do it validate/find infinite loops?
 *Do it validate duplicate cases?(ex: when age  15 then Y(); when age  14
 then Y();)
 
 Is there some resource (documentation) that covers what cases drools guvnor
 can handle on rules validation?
 Also, is there some more examples(projects) to deploy on Guvnor to test and
 have some fun?
 
 Thanks a lot,
 
 Alan Araya
 
 
 
 --
 View this message in context: 
 http://drools.46999.n3.nabble.com/Drools-Guvnor-Testing-rules-tp4023594.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

Re: [rules-users] add guvnor-webapp-core as a dependency to project

2013-03-05 Thread Toni Rikkola
I doubt there are any docs for this yet :)
Unfortunately at this point you need to check where the modules you need are 
yourself. Just search for the class in guvnor repository that implements the 
interface, they should be all there.
I would also like to warn you that the module structure in Guvnor will change 
before 6.0 gets out. 

Toni

On Mar 1, 2013, at 7:05 PM, kooper wrote:

 Ok, I think I got it(but I could be wrong). It seems that I cannot use 
 guvnor-webapp-core as a dependency, outside of guvnor-webapp-drools war. As
 guvnor-webapp-core has CDI annotations on interfaces and and abstract
 classes that are not implemented in guvnor-webapp-core. So I need to
 implement them in my app before deploying, think just missed smth during
 documentation reading.
 
 Thanks everyone for your help :). 
 
 
 
 --
 View this message in context: 
 http://drools.46999.n3.nabble.com/add-guvnor-webapp-core-as-a-dependency-to-project-tp4022632p4022656.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


Re: [rules-users] Fill dependent dropdown lists based on a web decision table

2013-03-03 Thread Toni Rikkola
Ok, the problem here is that the documentation has gone old.

For example:
   'Car.color' : [ 'red','blue','green']
in the new editor is 
   Fact = Car
   Field = color
   Context = 'red','blue','green'

Toni

On Mar 1, 2013, at 9:14 AM, peach_wyss wrote:

 ok thanks, all is much clearer now...
 
 What I don't understand:
 - When I see examples of enumerations in guvnor like:
 'Car.color' : ['red', 'blue','green']
 
 - In all of this examples, there seems to be a text editor in guvnor. But 
 when I create a new enumeration in guvnor (5.5. final), there isn't a text 
 editor. What I see are three text-fields (Fact, Field, 'Context'), which 
 I don't understand. Is there a way, to switch to the text editor view?
 
 Sorry, maybe this is a stupid question, but couldn't really find a 
 description of this in the web.
 
 Thanks for your help.
 
 Kind regards,
 Peter
 
 
 From: manstis [via Drools] [hidden email]
 To: peach_wyss [hidden email] 
 Sent: Thursday, February 28, 2013 1:58 PM
 Subject: Re: [rules-users] Fill dependent dropdown lists based on a web 
 decision table
 
 Did you read the Advanced section?
 
 This talks about how you can use an external source of data for enumerations 
 in Guvnor.
 
 I thought this is what you wanted?
 
 On 28 February 2013 10:16, peach_wyss [hidden email] wrote:
 hy
 
 thanks for your answer.
 
 1) I think you have misunderstood me. I don't want this dropdown list in 
 guvnor, we're having our dropdown list on our own form in our application. So 
 guvnor should only provide a way to define this dependencies.
 
 2) Where can I define an enum like this 
 http://docs.jboss.org/drools/release/5.5.0.Final/drools-guvnor-docs/html_single/index.html#d0e1903
  in the Guvnor-Webclient? When I click on Knowledge Bases  Create New  New 
 Enumeration, I can type in something like Fact, Field and Context...which I 
 don't understand. Is there a text view for enumerations in guvnor?
 
 Thanks for your help.
 Peter
 
 
 From: manstis [via Drools] [hidden email]
 To: peach_wyss [hidden email] 
 Sent: Tuesday, February 26, 2013 8:40 AM
 Subject: Re: [rules-users] Fill dependent dropdown lists based on a web 
 decision table
 
 Look at how to use advanced enums in Guvnor's User Guide.
 sent on the move
 On 26 Feb 2013 07:33, peach_wyss [hidden email] wrote:
 Hi
 
 I'm using Drools and Guvnor in our project. We have the following Data Model
 (simplified):
 - Object C
 - has a List
 - has a List
 
 I need to build an easy to edit web decision table in guvnor. We need the
 table to fill a dropdown list (Object B) in dependency of another dropdown
 list (Object A), when for example creating a new Object C on a form. The
 table should look something like this:
 
 [Object A] [Object B]
 
 Test A1 Test B1
 
 Test B2
 
 Test B3
 
 Test A2 Test B4
 
 Test A3 Test B5
 
 Test B6
 
 Test A4 Test B7
 
 Test B8
 
 Test B9
 
 Test B10
 
 ...so when a User creates a new Object C (Create-Form) and select on for
 example Test A3 in a dropdown list (Object A), Drools should be firing and
 result Test B5 and Test B6, which then can be filled in the second
 dropdown list (Object B).
 
 How can I achieve such a scenario? We have already Drools Guvnor in use and
 the requirement is, to have such a table to easy edit the dependencies of
 this two dropdown lists.
 
 Some thoughts:
 - Is there a way to fill Objects in a List as a Action-Column in a web
 decision table?
 - Is there a way to add Objects to a List (global variable) in a web
 decision table?
 - Is there a way to achieve this with rule templates?
 - Are there other ways to achieve this?
 
 Thanks for your help.
 
 Kind regards,
 Peter
 
 
 
 --
 View this message in context: 
 http://drools.46999.n3.nabble.com/Fill-dependent-dropdown-lists-based-on-a-web-decision-table-tp4022589.html
 Sent from the Drools: User forum mailing list archive at Nabble.com.
 ___
 rules-users mailing list
 [hidden email]
 https://lists.jboss.org/mailman/listinfo/rules-users
 
 ___ 
 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/Fill-dependent-dropdown-lists-based-on-a-web-decision-table-or-other-type-of-rules-tp4022589p4022590.html
 To unsubscribe from Fill dependent dropdown lists based on a web decision 
 table (or other type of rules), click here.
 NAML
 
 
 
 View this message in context: Re: [rules-users] Fill dependent dropdown lists 
 based on a web decision table
 
 Sent from the Drools: User forum mailing list archive at Nabble.com.
 
 ___
 rules-users mailing list
 [hidden email]
 https://lists.jboss.org/mailman/listinfo/rules-users
 
 
 

Re: [rules-users] guvnor-ng branch will be renamed master

2013-01-16 Thread Toni Rikkola
Work done.

Managed to merge guvnor-ng to master by undoing the changes after the 
branching. 

I will remove guvnor-ng tomorrow, please commit to master from now on.

Toni

On Jan 15, 2013, at 4:53 PM, Toni Rikkola wrote:

 This is a warning for anyone working on guvnor-ng and master branches of the 
 Guvnor repository. 
 
 I will rename the master to master-bk and guvnor-ng to master tomorrow. 
 
 Current master will not be used in any future releases. It will be stored for 
 a while so we can be sure commits do not get lost.
 
 I'll email this list when I am done. I advice to avoid any fetches or pushing 
 tomorrow before my email.
 
 Why not merge guvnor-ng to master? Sounds easy, but guvnor-ng has a lot of 
 changes. Files changed names and locations, modules were split, code removed 
 and the current master has nothing the new master will need.
 
 Toni Rikkola


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


[rules-users] guvnor-ng branch will be renamed master

2013-01-15 Thread Toni Rikkola
This is a warning for anyone working on guvnor-ng and master branches of the 
Guvnor repository. 

I will rename the master to master-bk and guvnor-ng to master tomorrow. 

Current master will not be used in any future releases. It will be stored for a 
while so we can be sure commits do not get lost.

I'll email this list when I am done. I advice to avoid any fetches or pushing 
tomorrow before my email.

Why not merge guvnor-ng to master? Sounds easy, but guvnor-ng has a lot of 
changes. Files changed names and locations, modules were split, code removed 
and the current master has nothing the new master will need.

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


Re: [rules-users] Test Scenario not firing rule when a ruleflow-group is defined

2012-11-12 Thread Toni Rikkola
Sounds like a bug. To help fix this you could create a Jira with a simple test 
repository export.

Toni

On Nov 8, 2012, at 8:10 PM, mpgong wrote:

 Hello,
 
 I created a simple rule using the guvnor drl editor - it looks like this:
 rule Rule1
   no-loop true
   ruleflow-group CheckOne
 when
   $ca : TestFact()
 then
   System.out.println(Hello World);
 end
 
 when i create the scenario, where i insert a TestFact() object and added the
 expected rule to fire 'Rule1' and then hit the run scenario, the output said
 Rule1 was not activated and no rule fired.  However, when i take the rule
 flow group out it fires.
 Any idea why this might be.  Now i am able to use ruleflow-groups in my
 application but those rules where built with the decision tables (xls) and
 uploaded to guvnor.  
 
 The new set of rules are small and simple so i was just going to create them
 using drl.  This seems to be causing me problems because i'm trying to run
 these rules from a process and they aren't firing in there either.
 
 Thanks
 
 
 
 
 
 --
 View this message in context: 
 http://drools.46999.n3.nabble.com/Test-Scenario-not-firing-rule-when-a-ruleflow-group-is-defined-tp4020761.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


Re: [rules-users] drools-planner-distribution5.4 final unzipping error....

2012-06-19 Thread Toni Rikkola
What was the unzip tool that failed?

I tested with default OSX and Windows unzippers and it worked.

Toni

On Jun 19, 2012, at 7:49 AM, Manikandan Subramanian wrote:

 
 
 On Fri, Jun 15, 2012 at 11:46 PM, domingo sprabak...@gmail.com wrote:
 Hi,
 I am try to unzip the drools-planner-distribution-5.4.0.final.zip, while
 unzipping I got the following warnig messages...
 DeciderScoreComparatorfact...is password protested.Please enter the
 passwordin the box..
 File 'initializer' is password protected.Please enter the passwordin the
 box..
 File 'Factory' is password protected.Please enter the passwordin the box..
 File 'MachineReassignmentSolution' is password protected.Please enter the
 passwordin the box..
 File 'MrOriginalMacineSolutionIn..' is password protected.Please enter the
 passwordin the box..
 File 'EmployeeConsecutiveAssignment' is password protected.Please enter the
 passwordin the box..
 ...
 ..etc
 I suspect some of the files are password protected...how to get rid of this?
 
 thanks
 
 -
 with kind regards,
 
 --
 View this message in context: 
 http://drools.46999.n3.nabble.com/drools-planner-distribution5-4-final-unzipping-error-tp4017999.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
 
 
 
 -- 
 Thanks,
 Mani
 
 ___
 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] drools-planner-distribution5.4 final unzipping error....

2012-06-19 Thread Toni Rikkola
And now I see that you used the one in XP. 

Thanks and sorry for the noise :-)

On Jun 19, 2012, at 11:15 AM, Toni Rikkola wrote:

 What was the unzip tool that failed?
 
 I tested with default OSX and Windows unzippers and it worked.
 
 Toni
 
 On Jun 19, 2012, at 7:49 AM, Manikandan Subramanian wrote:
 
 
 
 On Fri, Jun 15, 2012 at 11:46 PM, domingo sprabak...@gmail.com wrote:
 Hi,
 I am try to unzip the drools-planner-distribution-5.4.0.final.zip, while
 unzipping I got the following warnig messages...
 DeciderScoreComparatorfact...is password protested.Please enter the
 passwordin the box..
 File 'initializer' is password protected.Please enter the passwordin the
 box..
 File 'Factory' is password protected.Please enter the passwordin the box..
 File 'MachineReassignmentSolution' is password protected.Please enter the
 passwordin the box..
 File 'MrOriginalMacineSolutionIn..' is password protected.Please enter the
 passwordin the box..
 File 'EmployeeConsecutiveAssignment' is password protected.Please enter the
 passwordin the box..
 ...
 ..etc
 I suspect some of the files are password protected...how to get rid of this?
 
 thanks
 
 -
 with kind regards,
 
 --
 View this message in context: 
 http://drools.46999.n3.nabble.com/drools-planner-distribution5-4-final-unzipping-error-tp4017999.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
 
 
 
 -- 
 Thanks,
 Mani
 
 ___
 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] Guvnor test case with fact with Object fields

2012-06-01 Thread Toni Rikkola
The latest Guvnor 5.4.0 should have better support for nested objects. 
If are already using it please open a Jira so we can improve the scenario 
editor.

Toni

On May 31, 2012, at 6:21 PM, mpgong wrote:

 Hello,
 
 I have a fact that has is also my entity model and it has a field that is a
 class called state which holds previous and current state values (enum).
 
 So i have a condition that gets the state and gets the two values to check.  
 
 The issue i'm running into is with creating a test case in guvnor, is it
 possible to create a test case with a field that is an object like this? 
 Guvnor recognizes that i have a field called state but it doesn't realize
 that it is a class so it doesn't look like i would be able to test any rules
 the uses state as a condition check.
 
 Thanks
 
 
 
 --
 View this message in context: 
 http://drools.46999.n3.nabble.com/Guvnor-test-case-with-fact-with-Object-fields-tp4017705.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


Re: [rules-users] Plugging custom verification rules into Guvnor

2012-05-17 Thread Toni Rikkola
Hi,

There is no way to do this in Guvnor right now. You can use custom rules with 
Verifier outside of Guvnor. You can even make the custom rules with Guvnor. 
What is missing is the ability to use the rules in Guvnor for the Source - 
Verify.

This has been on the wish list for some time, but can't promise that it will 
get done for some time. If you want to help and add it in, let me know.
https://issues.jboss.org/browse/GUVNOR-1898

Toni Rikkola

On May 16, 2012, at 11:14 AM, Joe Ammann wrote:

 Hi all
 
 coming from another thread [1], Wolfgang pointed me to the Guvnor/Drools
 verifier. I am looking now for ways to implement my own verification
 rules into Guvnor.
 
 Ideally, I would like to be able to hook into 2 places in Guvnor with
 custom rules (maybe these are going actually through the same code path
 in Guvnor)
 1) When editing BRLs (or other business oriented asset types) and
 selecting Source - Verify
 2) When doing Run Analysis on a package in QA Menu
 
 I searched the documentation and had a quick look at the source of
 Guvnor, but wasn't able to quickly find the way to achieve this. Any
 pointers?
 
 -- 
 CU, Joe
 
 [1] http://lists.jboss.org/pipermail/rules-users/2012-May/026518.html
 
 ___
 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] Drools 5.4.0.Final and jBPM 5.3.0.Final are being released

2012-05-09 Thread Toni Rikkola
Only blocker bugs can stop the release process. 
It is now too late to cherry pick bug fixes or documentation for the Final 
releases.

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


Re: [rules-users] Guvnor and Joda time

2012-04-27 Thread Toni Rikkola
To the jira, but looks like Michael added one before you.

So no need to :)

Toni

On Apr 26, 2012, at 3:40 PM, Sean Su wrote:

 sure. Attach to the jira or send to here?
 
 Thanks
 
 Sean
 
 Sent from my iPad
 
 On Apr 26, 2012, at 7:39 AM, Toni Rikkola toni.rikk...@gmail.com wrote:
 
 I made a Jira for this. If possible, provide a small repository export that 
 we can use for testing.
 
 https://issues.jboss.org/browse/GUVNOR-1877
 
 Toni Rikkola
 
 On Apr 25, 2012, at 8:30 PM, Sean Su wrote:
 
 Do we support Joda time objects in Guvnor (5.3)? I did add joda time jar on 
 the classpath (Guvnor's lib folder) and there is no class not found 
 exception. However I get following exception when trying to access the 
 deployment snapshot. 
 
 The snapshot worked fine when I was using Date. After switching to Joda 
 time, I did reload the POJO model and regenerated the deployment snapshot.
 
 I am using 5.3.final.
 
 java.lang.NullPointerException
 at java.io.OutputStream.write(OutputStream.java:58)
 at 
 org.drools.guvnor.server.files.FileManagerUtils.loadBinaryPackage(FileManagerUtils.java:196)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
 at 
 org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:32)
 at 
 org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
 at 
 org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28)
 at 
 org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
 at 
 org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:77)
 at 
 org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
 at 
 org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44)
 at 
 org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
 at 
 org.jboss.seam.security.SecurityInterceptor.aroundInvoke(SecurityInterceptor.java:163)
 at 
 org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
 at 
 org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
 at 
 org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:185)
 at 
 org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:103)
 at 
 org.drools.guvnor.server.files.FileManagerUtils_$$_javassist_seam_10.loadBinaryPackage(FileManagerUtils_$$_javassist_seam_10.java)
 at 
 org.drools.guvnor.server.files.PackageDeploymentServlet$1.execute(PackageDeploymentServlet.java:252)
 at 
 org.drools.guvnor.server.files.RepositoryServlet.doAuthorizedAction(RepositoryServlet.java:75)
 at 
 org.drools.guvnor.server.files.PackageDeploymentServlet.doGet(PackageDeploymentServlet.java:130)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:625)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
 at 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
 at 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at org.jboss.seam.web.ContextFilter$1.process(ContextFilter.java:42)
 at 
 org.jboss.seam.servlet.ContextualHttpServletRequest.run(ContextualHttpServletRequest.java:65)
 at org.jboss.seam.web.ContextFilter.doFilter(ContextFilter.java:37)
 at 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 at 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at 
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
 at 
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
 at 
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
 at 
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
 at 
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
 at 
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
 at 
 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
 at 
 org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
 at 
 org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
 at java.lang.Thread.run(Thread.java:662)
 
 -- 
 But beware of the Dark Side. Anger, fear, aggression - the Dark Side of 
 the Force are they. -Yoda

Re: [rules-users] 5.4.CR1 Guvnor bug?

2012-04-27 Thread Toni Rikkola
Ok, I see this thread is where Michael got the repo for the Joda time issue :)

For dedicated support, more stable and more tested/hardened versions of Drools 
and Guvnor. Check the BRMS product from Red Hat and contact Red Hat sales.

http://www.redhat.com/promo/BRMS/?sc_cid=7016000Tm0UAAS


Toni

On Apr 27, 2012, at 12:28 AM, Michael Anstis wrote:

 Hi,
 
 I've had a look at #2 too.
 
 The problem is that you need to build the package before taking a snapshot.
 
 There was another underlying problem that meant you could not build your 
 package either, but I've fixed that.
 
 Regarding the latest stable version: you can get the latest snapshot build 
 from 
 https://hudson.jboss.org/hudson/job/guvnor-5.4.x/lastSuccessfulBuild/artifact/
 
 You'll need to ensure you get the last successful build following commits 
 I've made this evening. 
 
 Realistically 5.4.0.Final won't be available until nearer to June (although 
 it *might* be early May).
 
 With kind regards,
 
 Mike
 
 On 26 April 2012 22:00, Sean Su sean.x...@gmail.com wrote:
 Thank Mike. I have a POC due by the end of May and these bugs/issues directly 
 impact the output of it. Is there any service channel we can access (paid or 
 free) that allows us to access the latest stable version, and possibly 
 dedicated support?
 
 Sean
 
 Sent from my iPad
 
 On Apr 26, 2012, at 4:44 PM, Michael Anstis michael.ans...@gmail.com wrote:
 
 OK.
 
 #1 is a bug. I have raised a JIRA - 
 https://issues.jboss.org/browse/GUVNOR-1879. It is a bit of an edge case but 
 I've fixed for 5.4.0.Final.
 
 #2 I'll attach the provided repository to the existing JIRA.
 
 Thanks,
 
 Mike
 
 On 26 April 2012 20:13, Sean Su sean.x...@gmail.com wrote:
 Attached is the repository exported from 5.3.final. There are two issues 
 here.
 
 I would appreciate it if the development can take a look.
 
 1. The last column of the decision table does not display any values on 
 5.4.CR1 while it works fine on 5.3.0. Please note the rules are still 
 generated correctly and it even passes the validator from 5.4.CR1. However 
 there is some GUI issue here.
 2. If you generate a deployment Snapshot, everything seems fine. However 
 when trying to access the generated file (from the link provided by Guvnor), 
 I get the NullPointerException. This can be reproduced in both 5.3.0.final 
 and 5.4.CR1, though the trace from 5.4.CR1 is shorter.
 
 I initially reported this NPE couple of days ago under the assumption that 
 it is caused by Guvnor and Joda time integration. But it seems it happens 
 (randomly) in that situations.
 
 Thanks
 
 Sean
 
 -- 
 But beware of the Dark Side. Anger, fear, aggression - the Dark Side of the 
 Force are they. -Yoda
 
 ___
 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 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] Guvnor and Joda time

2012-04-26 Thread Toni Rikkola
I made a Jira for this. If possible, provide a small repository export that we 
can use for testing.

https://issues.jboss.org/browse/GUVNOR-1877

Toni Rikkola

On Apr 25, 2012, at 8:30 PM, Sean Su wrote:

 Do we support Joda time objects in Guvnor (5.3)? I did add joda time jar on 
 the classpath (Guvnor's lib folder) and there is no class not found 
 exception. However I get following exception when trying to access the 
 deployment snapshot. 
 
 The snapshot worked fine when I was using Date. After switching to Joda time, 
 I did reload the POJO model and regenerated the deployment snapshot.
 
 I am using 5.3.final.
 
 java.lang.NullPointerException
 at java.io.OutputStream.write(OutputStream.java:58)
 at 
 org.drools.guvnor.server.files.FileManagerUtils.loadBinaryPackage(FileManagerUtils.java:196)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
 at 
 org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:32)
 at 
 org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
 at 
 org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28)
 at 
 org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
 at 
 org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:77)
 at 
 org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
 at 
 org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44)
 at 
 org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
 at 
 org.jboss.seam.security.SecurityInterceptor.aroundInvoke(SecurityInterceptor.java:163)
 at 
 org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
 at 
 org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
 at 
 org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:185)
 at 
 org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:103)
 at 
 org.drools.guvnor.server.files.FileManagerUtils_$$_javassist_seam_10.loadBinaryPackage(FileManagerUtils_$$_javassist_seam_10.java)
 at 
 org.drools.guvnor.server.files.PackageDeploymentServlet$1.execute(PackageDeploymentServlet.java:252)
 at 
 org.drools.guvnor.server.files.RepositoryServlet.doAuthorizedAction(RepositoryServlet.java:75)
 at 
 org.drools.guvnor.server.files.PackageDeploymentServlet.doGet(PackageDeploymentServlet.java:130)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:625)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
 at 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
 at 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at org.jboss.seam.web.ContextFilter$1.process(ContextFilter.java:42)
 at 
 org.jboss.seam.servlet.ContextualHttpServletRequest.run(ContextualHttpServletRequest.java:65)
 at org.jboss.seam.web.ContextFilter.doFilter(ContextFilter.java:37)
 at 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 at 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at 
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
 at 
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
 at 
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
 at 
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
 at 
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
 at 
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
 at 
 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
 at 
 org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
 at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
 at java.lang.Thread.run(Thread.java:662)
 
 -- 
 But beware of the Dark Side. Anger, fear, aggression - the Dark Side of the 
 Force are they. -Yoda
 ___
 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] Runtime jitting exception while inserting facts

2012-04-12 Thread Toni Rikkola
I'll check if there is a bug in Guvnor. It could cause the SocketException.

Toni

On Apr 12, 2012, at 12:06 PM, sumatheja wrote:

 Hi Mario,
 I moved to 5.4 CR1. I replaced the drools library with CR1 and 
 deployed the rules on guvnor 5.4 CR1 but when I try to read the knowledge 
 base I get the following error on Jboss log
 
 
 09:57:33,784 INFO  [org.drools.guvnor.server.security.DemoAuthenticator] 
 (http--127.0.0.1-8280-2) Demo login for user (admin) succeeded.
 09:57:34,142 WARN  [org.jboss.seam.security.permission.SecurityRuleLoader] 
 (http--127.0.0.1-8280-2) No security rules configured - rule base permissions 
 will be unavaila
 ble.
 09:57:34,145 INFO  
 [org.drools.guvnor.server.files.AuthorizationHeaderChecker] 
 (http--127.0.0.1-8280-2) admin authenticated for rest api
 09:57:34,153 INFO  [org.drools.guvnor.server.files.PackageDeploymentServlet] 
 (http--127.0.0.1-8280-2) PackageName: mattelli.re
 09:57:34,154 INFO  [org.drools.guvnor.server.files.PackageDeploymentServlet] 
 (http--127.0.0.1-8280-2) PackageVersion: LATEST
 09:57:34,156 INFO  [org.drools.guvnor.server.files.PackageDeploymentServlet] 
 (http--127.0.0.1-8280-2) PackageIsLatest: true
 09:57:34,157 INFO  [org.drools.guvnor.server.files.PackageDeploymentServlet] 
 (http--127.0.0.1-8280-2) PackageIsSource: false
 09:57:34,218 ERROR [org.drools.guvnor.server.files.PackageDeploymentServlet] 
 (http--127.0.0.1-8280-2) null: ClientAbortException:  
 java.net.SocketException: Connection r
 eset by peer: socket write error
 at 
 org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:403)
  [jbossweb-7.0.13.Final.jar:]
 at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:354) 
 [jbossweb-7.0.13.Final.jar:]
 at 
 org.apache.catalina.connector.OutputBuffer.writeBytes(OutputBuffer.java:426) 
 [jbossweb-7.0.13.Final.jar:]
 at 
 org.apache.catalina.connector.OutputBuffer.write(OutputBuffer.java:415) 
 [jbossweb-7.0.13.Final.jar:]
 at 
 org.apache.catalina.connector.CoyoteOutputStream.write(CoyoteOutputStream.java:89)
  [jbossweb-7.0.13.Final.jar:]
 at 
 org.apache.catalina.connector.CoyoteOutputStream.write(CoyoteOutputStream.java:83)
  [jbossweb-7.0.13.Final.jar:]
 at 
 org.drools.guvnor.server.files.PackageDeploymentServlet$1.execute(PackageDeploymentServlet.java:274)
  [guvnor-webapp-core-5.4.0.CR1.jar:5.4.0.CR1]
 at 
 org.drools.guvnor.server.files.RepositoryServlet.doAuthorizedAction(RepositoryServlet.java:58)
  [guvnor-webapp-core-5.4.0.CR1.jar:5.4.0.CR1]
 at 
 org.drools.guvnor.server.files.PackageDeploymentServlet.doGet(PackageDeploymentServlet.java:141)
  [guvnor-webapp-core-5.4.0.CR1.jar:5.4.0.CR1]
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:742) 
 [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) 
 [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
 at 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)
  [jbossweb-7.0.13.Final.jar:]
 at 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
  [jbossweb-7.0.13.Final.jar:]
 at 
 org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:62)
  [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
 at 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
  [jbossweb-7.0.13.Final.jar:]
 at 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
  [jbossweb-7.0.13.Final.jar:]
 at 
 org.jboss.solder.servlet.exception.CatchExceptionFilter.doFilter(CatchExceptionFilter.java:65)
  [solder-impl-3.1.0.Final.jar:3.1.0.Final]
 at 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
  [jbossweb-7.0.13.Final.jar:]
 at 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
  [jbossweb-7.0.13.Final.jar:]
 at 
 org.jboss.solder.servlet.event.ServletEventBridgeFilter.doFilter(ServletEventBridgeFilter.java:74)
  [solder-impl-3.1.0.Final.jar:3.1.0.Final]
 at 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
  [jbossweb-7.0.13.Final.jar:]
 at 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
  [jbossweb-7.0.13.Final.jar:]
 at 
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
  [jbossweb-7.0.13.Final.jar:]
 at 
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
  [jbossweb-7.0.13.Final.jar:]
 at 
 org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153)
  

Re: [rules-users] Runtime jitting exception while inserting facts

2012-04-12 Thread Toni Rikkola
About the connection error. I can't find a way to reproduce it. I'll keep 
trying and let you know if I find something.

Can you download the package directly from Guvnor? You could test the jitting 
error with that.

Toni

On Apr 12, 2012, at 12:30 PM, sumatheja wrote:

 Thanks Toni. Eagerly awaiting for your response :)
 
 2012/4/12 Toni Rikkola toni.rikk...@gmail.com
 I'll check if there is a bug in Guvnor. It could cause the SocketException.
 
 Toni
 
 On Apr 12, 2012, at 12:06 PM, sumatheja wrote:
 
 Hi Mario,
 I moved to 5.4 CR1. I replaced the drools library with CR1 and 
 deployed the rules on guvnor 5.4 CR1 but when I try to read the knowledge 
 base I get the following error on Jboss log
 
 
 09:57:33,784 INFO  [org.drools.guvnor.server.security.DemoAuthenticator] 
 (http--127.0.0.1-8280-2) Demo login for user (admin) succeeded.
 09:57:34,142 WARN  [org.jboss.seam.security.permission.SecurityRuleLoader] 
 (http--127.0.0.1-8280-2) No security rules configured - rule base 
 permissions will be unavaila
 ble.
 09:57:34,145 INFO  
 [org.drools.guvnor.server.files.AuthorizationHeaderChecker] 
 (http--127.0.0.1-8280-2) admin authenticated for rest api
 09:57:34,153 INFO  [org.drools.guvnor.server.files.PackageDeploymentServlet] 
 (http--127.0.0.1-8280-2) PackageName: mattelli.re
 09:57:34,154 INFO  [org.drools.guvnor.server.files.PackageDeploymentServlet] 
 (http--127.0.0.1-8280-2) PackageVersion: LATEST
 09:57:34,156 INFO  [org.drools.guvnor.server.files.PackageDeploymentServlet] 
 (http--127.0.0.1-8280-2) PackageIsLatest: true
 09:57:34,157 INFO  [org.drools.guvnor.server.files.PackageDeploymentServlet] 
 (http--127.0.0.1-8280-2) PackageIsSource: false
 09:57:34,218 ERROR [org.drools.guvnor.server.files.PackageDeploymentServlet] 
 (http--127.0.0.1-8280-2) null: ClientAbortException:  
 java.net.SocketException: Connection r
 eset by peer: socket write error
 at 
 org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:403)
  [jbossweb-7.0.13.Final.jar:]
 at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:354) 
 [jbossweb-7.0.13.Final.jar:]
 at 
 org.apache.catalina.connector.OutputBuffer.writeBytes(OutputBuffer.java:426) 
 [jbossweb-7.0.13.Final.jar:]
 at 
 org.apache.catalina.connector.OutputBuffer.write(OutputBuffer.java:415) 
 [jbossweb-7.0.13.Final.jar:]
 at 
 org.apache.catalina.connector.CoyoteOutputStream.write(CoyoteOutputStream.java:89)
  [jbossweb-7.0.13.Final.jar:]
 at 
 org.apache.catalina.connector.CoyoteOutputStream.write(CoyoteOutputStream.java:83)
  [jbossweb-7.0.13.Final.jar:]
 at 
 org.drools.guvnor.server.files.PackageDeploymentServlet$1.execute(PackageDeploymentServlet.java:274)
  [guvnor-webapp-core-5.4.0.CR1.jar:5.4.0.CR1]
 at 
 org.drools.guvnor.server.files.RepositoryServlet.doAuthorizedAction(RepositoryServlet.java:58)
  [guvnor-webapp-core-5.4.0.CR1.jar:5.4.0.CR1]
 at 
 org.drools.guvnor.server.files.PackageDeploymentServlet.doGet(PackageDeploymentServlet.java:141)
  [guvnor-webapp-core-5.4.0.CR1.jar:5.4.0.CR1]
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:742) 
 [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) 
 [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
 at 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)
  [jbossweb-7.0.13.Final.jar:]
 at 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
  [jbossweb-7.0.13.Final.jar:]
 at 
 org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:62)
  [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
 at 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
  [jbossweb-7.0.13.Final.jar:]
 at 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
  [jbossweb-7.0.13.Final.jar:]
 at 
 org.jboss.solder.servlet.exception.CatchExceptionFilter.doFilter(CatchExceptionFilter.java:65)
  [solder-impl-3.1.0.Final.jar:3.1.0.Final]
 at 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
  [jbossweb-7.0.13.Final.jar:]
 at 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
  [jbossweb-7.0.13.Final.jar:]
 at 
 org.jboss.solder.servlet.event.ServletEventBridgeFilter.doFilter(ServletEventBridgeFilter.java:74)
  [solder-impl-3.1.0.Final.jar:3.1.0.Final]
 at 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
  [jbossweb-7.0.13.Final.jar:]
 at 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
  [jbossweb-7.0.13.Final.jar

Re: [rules-users] Fwd: Re: Guvnor - expected value of a list

2012-02-15 Thread Toni Rikkola
In the summary: ...was [[test1,test1]] expected [[test1,test1]]
Looks like it should work. Can you tell me more about ClassB. Is it a pojo or 
declared model and is the field items a collection and what kind of?

Thanks
Toni

On Feb 15, 2012, at 10:07 AM, Péter Gombás wrote:

 Hi,
 
 still not working. Now i get even an error message (in attachment).
 
 Peter
 
 2012/2/15 Toni Rikkola toni.rikk...@gmail.com:
 Try =[test1,test1]
 
 Toni
 
 On Feb 15, 2012, at 9:47 AM, Michael Anstis wrote:
 
 
 sent on the move
 
 -- Forwarded message --
 From: Péter Gombás gombas.pe...@gmail.com
 Date: 15 Feb 2012 07:40
 Subject: Re: [rules-users] Guvnor - expected value of a list
 To: michael.ans...@gmail.com
 
 Hello Michael,
 
 yes, it is a Test scenario in Guvnor. In attachment is a very simple
 project. Target is to check the resulting list. On the picture you can
 see the problem: altough expected values are the same as target the
 test is not succesful. Or am i using it not correctly?
 
 Peter
 
 2012/2/14 Michael Anstis michael.ans...@gmail.com:
 I assume this is a QA \ Test Scenario in Guvnor?
 
 It's going to be helpful if you can provide an export of your repository
 (or
 an extract) showing the issue.
 
 
 On 14 February 2012 16:12, gombasp gombas.pe...@gmail.com wrote:
 
 Hello,
 
 I have the following problem: i would like to compare a value in expected
 section of a Guvnor test. Guvnor says actual value is:
 
 (Actual: [test1, test1])
 
 When i enter [test1, test1] to the expected value it will not match with
 actual.
 Is it possible to compare list values? If yes, what is the syntax?
 
 Thanks,
 
 Peter
 
 --
 View this message in context:
 
 http://drools.46999.n3.nabble.com/Guvnor-expected-value-of-a-list-tp3744129p3744129.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
 
 
 
 
 --
 Gombás Péter
 
 guvnor_test.zipguvnor.JPG___
 
 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
 
 
 
 
 -- 
 Gombás Péter
 guvnor2.JPG___
 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] Fwd: Re: Guvnor - expected value of a list

2012-02-15 Thread Toni Rikkola
Looks like a bug. I made a Jira for it.

https://issues.jboss.org/browse/GUVNOR-1830


Toni

On Feb 15, 2012, at 10:45 AM, Péter Gombás wrote:

 Hello,
 
 its a simple pojo:
 
 package com.gp;
 
 
 import java.util.ArrayList;
 import java.util.List;
 
 public class ClassB
 {
ListString items = new ArrayListString();
 
public void add(String s, int faktor)
{
for (int i = 0; i  faktor; i++)
{
items.add(s);
}
 
}
 
public ListString getItems()
{
return items;
}
 
public void setItems(ListString items)
{
this.items = items;
}
 
 }
 
 
 
 
 
 2012/2/15 Toni Rikkola toni.rikk...@gmail.com:
 In the summary: ...was [[test1,test1]] expected [[test1,test1]]
 Looks like it should work. Can you tell me more about ClassB. Is it a pojo 
 or declared model and is the field items a collection and what kind of?
 
 Thanks
 Toni
 
 On Feb 15, 2012, at 10:07 AM, Péter Gombás wrote:
 
 Hi,
 
 still not working. Now i get even an error message (in attachment).
 
 Peter
 
 2012/2/15 Toni Rikkola toni.rikk...@gmail.com:
 Try =[test1,test1]
 
 Toni
 
 On Feb 15, 2012, at 9:47 AM, Michael Anstis wrote:
 
 
 sent on the move
 
 -- Forwarded message --
 From: Péter Gombás gombas.pe...@gmail.com
 Date: 15 Feb 2012 07:40
 Subject: Re: [rules-users] Guvnor - expected value of a list
 To: michael.ans...@gmail.com
 
 Hello Michael,
 
 yes, it is a Test scenario in Guvnor. In attachment is a very simple
 project. Target is to check the resulting list. On the picture you can
 see the problem: altough expected values are the same as target the
 test is not succesful. Or am i using it not correctly?
 
 Peter
 
 2012/2/14 Michael Anstis michael.ans...@gmail.com:
 I assume this is a QA \ Test Scenario in Guvnor?
 
 It's going to be helpful if you can provide an export of your repository
 (or
 an extract) showing the issue.
 
 
 On 14 February 2012 16:12, gombasp gombas.pe...@gmail.com wrote:
 
 Hello,
 
 I have the following problem: i would like to compare a value in expected
 section of a Guvnor test. Guvnor says actual value is:
 
 (Actual: [test1, test1])
 
 When i enter [test1, test1] to the expected value it will not match with
 actual.
 Is it possible to compare list values? If yes, what is the syntax?
 
 Thanks,
 
 Peter
 
 --
 View this message in context:
 
 http://drools.46999.n3.nabble.com/Guvnor-expected-value-of-a-list-tp3744129p3744129.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
 
 
 
 
 --
 Gombás Péter
 
 guvnor_test.zipguvnor.JPG___
 
 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
 
 
 
 
 --
 Gombás Péter
 guvnor2.JPG___
 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
 
 
 
 -- 
 Gombás Péter
 
 ___
 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] Fwd: Re: Guvnor - expected value of a list

2012-02-14 Thread Toni Rikkola
Try =[test1,test1]

Toni

On Feb 15, 2012, at 9:47 AM, Michael Anstis wrote:

 
 sent on the move
 
 -- Forwarded message --
 From: Péter Gombás gombas.pe...@gmail.com
 Date: 15 Feb 2012 07:40
 Subject: Re: [rules-users] Guvnor - expected value of a list
 To: michael.ans...@gmail.com
 
 Hello Michael,
 
 yes, it is a Test scenario in Guvnor. In attachment is a very simple
 project. Target is to check the resulting list. On the picture you can
 see the problem: altough expected values are the same as target the
 test is not succesful. Or am i using it not correctly?
 
 Peter
 
 2012/2/14 Michael Anstis michael.ans...@gmail.com:
  I assume this is a QA \ Test Scenario in Guvnor?
 
  It's going to be helpful if you can provide an export of your repository (or
  an extract) showing the issue.
 
 
  On 14 February 2012 16:12, gombasp gombas.pe...@gmail.com wrote:
 
  Hello,
 
  I have the following problem: i would like to compare a value in expected
  section of a Guvnor test. Guvnor says actual value is:
 
  (Actual: [test1, test1])
 
  When i enter [test1, test1] to the expected value it will not match with
  actual.
  Is it possible to compare list values? If yes, what is the syntax?
 
  Thanks,
 
  Peter
 
  --
  View this message in context:
  http://drools.46999.n3.nabble.com/Guvnor-expected-value-of-a-list-tp3744129p3744129.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
 
 
 
 
 --
 Gombás Péter
 guvnor_test.zipguvnor.JPG___
 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] Drools 5.4.0.Beta2 released

2012-02-01 Thread Toni Rikkola
Drools 5.4.0.Beta2 released (Expert, Fusion, Planner, Guvnor)
New and Noteworthy: 
http://docs.jboss.org/drools/release/5.4.0.Beta2/droolsjbpm-introduction-docs/html/releaseNotesBeta2.html
Download and info: http://blog.athico.com/2012/01/drools-540beta-2-released.html

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


Re: [rules-users] How to Test the Rules which are there in Guvnor

2012-01-22 Thread Toni Rikkola
You can use Test Scenarios. Here is the link to the docs:

http://docs.jboss.org/drools/release/5.4.0.Beta1/drools-guvnor-docs/html_single/index.html#d0e1562

Toni

On Jan 23, 2012, at 8:39 AM, Veera wrote:

 Hi friends..
 
 Can any body tell me how to Test the Rules in Guvnor (i have Thousands of
 Rules).
 
 
 Thanks..
 
 --
 View this message in context: 
 http://drools.46999.n3.nabble.com/How-to-Test-the-Rules-which-are-there-in-Guvnor-tp3681089p3681089.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


Re: [rules-users] Code Coverage

2012-01-17 Thread Toni Rikkola
You need to write the coverage tests for JUnit yourself. Test Scenarios in 
Guvnor do this, but you can't use them outside Guvnor. 

Test Scenarios get all the rule names for the rules in one package and then 
compares that list to the rules that fired.
Edson's blog entry might help you 
http://blog.athico.com/2011/10/cookbook-how-to-test-rules-using-xunit.html.

Toni

On Jan 16, 2012, at 5:49 PM, mike wrote:

 Hi there,
 
 I was wondering if its possible to measure code coverage on test running 
 against a set of rules.
 
 Thank you
 Mike
  
 ___
 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 run the rule test scenarios from the Eclipse.

2012-01-17 Thread Toni Rikkola
Sorry, but this is not possible at the moment. There has been a Jira for this 
for a while.

Toni

On Jan 17, 2012, at 7:48 AM, srinivasasanda wrote:

 Hi All,
 
 i created a simple Fact (person) and rule (like age  20)  in Guvnor .
 and i created a simple rule test scenarios , when i submit Run Scenario
 button  in rule test scenarios it is
 showing result 100% . So i have thousands of rules  for each rule i have a
 rule test case . So i want to run the test scenarios from outside of the
 Guvnor (like eclipse)to execute all at once..
 
 Can anybody help me..
 
 Thanks in Advance..
 
 --
 View this message in context: 
 http://drools.46999.n3.nabble.com/How-to-run-the-rule-test-scenarios-from-the-Eclipse-tp3665269p3665269.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] Drools 5.4.0.Beta1 released

2011-12-20 Thread Toni Rikkola
Drools 5.4.0.Beta1 released (Expert, Fusion, Planner, Guvnor)
New and Noteworthy: 
http://docs.jboss.org/drools/release/5.4.0.Beta1/droolsjbpm-introduction-docs/html/releaseNotesBeta1.html
Download and info: http://blog.athico.com/2011/12/drools-540beta1-released.html

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


[rules-users] Drools 5.3.0.Final is released

2011-10-24 Thread Toni Rikkola
http://blog.athico.com/2011/10/drools-530final-released-including.html

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


Re: [rules-users] Is it possible to retrieve the collection of Conditions from DecisionTable?

2011-10-04 Thread Toni Rikkola
If you take a look at the Verifier it goes through the Drools AST with a 
visitor pattern.
It starts by using getting the PackageDescr using DrlParser, this uses Drools 
internals so be warned that it might change in the future.

  Reader drlReader = new InputStreamReader( stream );
  PackageDescr descr = new DrlParser().parse( drlReader );

After that it goes through the PackageDescr using PackageDescrVisitor. 
RuleDescrVisitor shows how to get the condition part from each rule.

https://github.com/droolsjbpm/drools/blob/master/drools-verifier/src/main/java/org/drools/verifier/visitor/PackageDescrVisitor.java
https://github.com/droolsjbpm/drools/blob/master/drools-verifier/src/main/java/org/drools/verifier/visitor/RuleDescrVisitor.java

Toni


On Oct 3, 2011, at 8:11 PM, Mark Proctor wrote:

 On 03/10/2011 18:03, Wolfgang Laun wrote:
 A condition does not have a name, as you write; values of the cells
 below a condition are (usually) literals.
 
 There is no API for extracting parts of a spreadsheet. You can look at
 the Drools source code (in the packages org.drools.decisiontable and
 .../parser) and write whatever you need - it is not too difficult.
 You can also look at drools-verifier, as that shows ho to analyse 
 resulting rule fragments.
 
 Mark
 
 -W
 
 
 On 3 October 2011 17:05, RaviCKotaravi.k...@wellsfargo.com  wrote:
 Hi All, for suppose I have a DecisionTable like below
 
 CONDITION   ACTION
 -
 COND1 ACTION1
 COND2 ACTION2
 COND3 ACTION3
 -
 
 This is just a representation of the DecisionTable. So I need to retrieve
 all the conditions and store them into a Collection like Set. Does Drools
 provide any such feature.
 
 We load the drools as below
 PackageBuilder builder = new PackageBuilder();
 builder.addPackageFromDrl(new StringReader(drl)); //drl is the filepath of
 decisiontable excel
 
 // add the package to a rulebase (deploy the rule package).
 RuleBase ruleBase = RuleBaseFactory.newRuleBase();
 ruleBase.addPackage(builder.getPackage());
 
 I tried to look into api of RuleBase, tried to get the packages, Rules,
 Consequence, etc etc, but could not find any method, that gets me the
 condition name.
 
 When I tried to do
 Package[] packages = rulebase.getPackages();
 
 for(Package pack : packages){
 System.out.println(Package Name is : +pack.getName());
 Rule[] rules = pack.getRules();
 for(Rule rule : rules){
 System.out.println(Rule name is : +rule.getName());
 
 All I get is some representation of each row, but I'm specifically looking
 for the value of the first column (CONDITION) for each rule.
 
 Please offer some guidance here.
 
 --
 View this message in context: 
 http://drools.46999.n3.nabble.com/Is-it-possible-to-retrieve-the-collection-of-Conditions-from-DecisionTable-tp3390026p3390026.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 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] Guvnor: Rules compilation error

2011-10-04 Thread Toni Rikkola
Hi,

I suggest that you open a Jira for this. https://issues.jboss.org/browse/GUVNOR
If possible, create a small repository export that we can use to reproduce 
this. 

Toni

On Oct 5, 2011, at 6:45 AM, Prashanth wrote:

 Hi,
 
 In-spite of having the jar loaded, and having them available in the Drools
 Guvnor and able to write rules with “zero ” errors in verification,
 
 Rule compilation fails during validation after writing rules, 
 
 says “Cannot resolve classname” for all those classes that have been
 imported and available to write rules
 
 Classes have been referred with their fully qualified class-names too.
 
 I request help to resolve this problem. 
 
 Thanks and Regards
 Prashanth
 
 --
 View this message in context: 
 http://drools.46999.n3.nabble.com/Guvnor-Rules-compilation-error-tp3395529p3395529.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


Re: [rules-users] Guvnor 5.2 method call in rhs

2011-08-24 Thread Toni Rikkola
Best place for bugs is the Guvnor Jira. I opened a ticket for you and I'm 
working on this  https://issues.jboss.org/browse/GUVNOR-1609

Toni

On Aug 22, 2011, at 10:54 PM, pamerida wrote:

 This version: guvnor-5.2.0.Final-tomcat-6.0.war
 
 --
 View this message in context: 
 http://drools.46999.n3.nabble.com/Guvnor-5-2-method-call-in-rhs-tp3275866p3276180.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


Re: [rules-users] Detection of Rule inconsistences?

2011-07-11 Thread Toni Rikkola

Here is a list of things that Verifier can currently do: 
http://community.jboss.org/wiki/DroolsVerifier
It does just what your mentioned, uses Drools to verify Drools. 
You can extend the Verifier rules with your own if you want to.

Toni Rikkola

On Jul 11, 2011, at 4:45 PM, Michael Anstis wrote:

 drools-verifier does this to an extent (that I believe can be extended).
 
 Toni Rikkola will know more about it.
 
 On 11 July 2011 14:10, Andre morpheusan...@web.de wrote:
 has anybody thought of controlling rule consistency of drools with drools?
 or are there features drools has?
 
 --
 View this message in context: 
 http://drools.46999.n3.nabble.com/Detection-of-Rule-inconsistences-tp3159127p3159127.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 mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Calling a Funciton in Guided Web Editor as condition in Guvnor

2011-05-23 Thread Toni Rikkola
You can make a DSL for it or use the free form text field. 

If your getting an error please make a Jira with steps to reproduce the issue.
https://issues.jboss.org/browse/GUVNOR

Toni

On May 22, 2011, at 12:03 AM, mahmood lebbai wrote:

 How to call a customfunction as a condition in guided web editor in Guvnour?. 
 
 whenever I use predicate , it throws an error stating fact is required.
 
 Please help me out on this.
 
 Regards,
 Mahmood
 ___
 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] Import Functions in Guvnor

2011-04-27 Thread Toni Rikkola
You need to use free form text or make a DSL for the function if you want to 
use it in the RHS.

Toni

On Dec 1, 2010, at 7:24 AM, Pankaj Khattar wrote:

 
 Can anybody share that how to import java function in the guvnor  use them
 in writing rules in guvnor.
 
 For example i have a drl file in which i have
 import function com.alu.ae.ais.smp.fm.drools.service.Function.delayAlert;
 
 in which 'Function' is the class  'delayAlert' a method in the class, the
 rule is as 
 
 rule Delay Alert
   no-loop true
   dialect mvel
   lock-on-active
   when
   
   then
   delayAlert(method parameter);
 end
 
 -- 
 View this message in context: 
 http://drools-java-rules-engine.46999.n3.nabble.com/Import-Functions-in-Guvnor-tp1997244p1997244.html
 Sent from the Drools - User 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


Re: [rules-users] Drools verifier

2011-03-16 Thread Toni Rikkola
Can you make few rules for us to test this with.

I have to say that the verifier is not perfect when it searches for redundancy, 
so your rules might be too complex for it at the moment.

Toni

On Mar 16, 2011, at 1:29 PM, FrankVhh wrote:

 Hi Wolfgang,
 
 Yes, you are absolutely right about the path mistake. Can't believe I missed
 that. Fixing it removes the errors from the verifier.
 
 However, it still does not return the expected outputs...
 
 System.out.println(result.getVerifierData().getAll().isEmpty()); = returns
 false, which is as expected
 
 But the following statement still does not return anything.
 for (VerifierMessageBase base : result
   
 .getBySeverity(Severity.WARNING)) {
   System.out.println(base);
   }
 
 I'm sorry to take so much of your time, I really appreciate your efforts.
 
 Regards,
 Frank
 
 --
 View this message in context: 
 http://drools-java-rules-engine.46999.n3.nabble.com/Drools-verifier-tp2681002p2687459.html
 Sent from the Drools - User 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


Re: [rules-users] Drools verifier

2011-03-15 Thread Toni Rikkola
Hi Frank and Wolfgang,

Looks right. Are you using the latest codes or 5.2.0.M1? The latest codes in 
git are not working properly.
If you get the same result with any of the the Drools release jars please open 
a Jira and I will take a look.

 Gaps is not something a verifier would detect. It does not try to
 understand your rules. What do you expect?

The verifier can actually find some gaps from rule sets. For example uncovered 
checks for number values.
If you have 
Person( age 18 )
it gives a warning that you might want to cover Person( age = 18 ).

Toni Rikkola

On Mar 15, 2011, at 11:58 AM, Wolfgang Laun wrote:

 Try a rule with an empty consequence. (rule x when Object() then end).
 
 The .DRL file must compile for the Verifier to do its task.
 Duplicate rules (rule names) do not compile.
 
 Gaps is not something a verifier would detect. It does not try to
 understand your rules. What do you expect?
 
 -W
 
 
 On 15 March 2011 09:21, FrankVhh frank.vanhoensho...@agserv.eu wrote:
 Hi all,
 
 Triggered by a post on this forum, I decided to try a testcase
 implementation of Drool Verifiier.
 
 I manage to write some code that does not produce any errors at runtime,
 which is good. Unfortunately, it doesn't produce any errors/warnings/notes
 on my rulefile either, which isn't good.
 
 The drl file consists of some duplicate rules, and since the file is only
 part of a ruleset, there might be some gaps as well.
 
 I pasted the java-code below. Does anyone see where I am going wrong?
 
 Thanks in advance!
 
 Regards,
 Frank
 
VerifierBuilder vBuilder =
 VerifierBuilderFactory.newVerifierBuilder();
 
Verifier verifier = vBuilder.newVerifier();
 
String ruleText  =
 C:\\Users\\Frank\\Documents\\DroolsWorkSpaces\\EmpiricalExperiments\\Financial
 Rules\\src\\main\\rules\\clearancerules.drl;
verifier.addResourcesToVerify( 
 ResourceFactory.newReaderResource(
 new StringReader( ruleText ) ), ResourceType.DRL );
 
verifier.fireAnalysis();
 
VerifierReport result = verifier.getResult();
 
for(VerifierMessageBase base: result.getBySeverity(
 Severity.ERROR ) ){
System.out.println( base );
}
for(VerifierMessageBase base: result.getBySeverity(
 Severity.WARNING ) ){
System.out.println( base );
}
for(VerifierMessageBase base: result.getBySeverity( 
 Severity.NOTE )
 ){
System.out.println( base );
}
 
 --
 View this message in context: 
 http://drools-java-rules-engine.46999.n3.nabble.com/Drools-verifier-tp2681002p2681002.html
 Sent from the Drools - User 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 mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Drools verifier

2011-03-15 Thread Toni Rikkola
Yes it can often be ignored and we need some configuration to silence the 
unwanted warnings. The current way is best for use cases like the decision 
table verification in Guvnor.

Age is a good example. Person's age can't be less than 0 or more than 120. The 
top number is difficult. 120 is pretty safe, but usually you should be 
suspicious from ~90.
So in the configurations you could set:
Person.age 0-90 = check that they are covered
Person.age 90-120 = check them, but make a notification

You can of course do this today with custom verification rules. Just use a 
clean verifier base and add your own verifier rules.

Toni

On Mar 15, 2011, at 12:39 PM, Wolfgang Laun wrote:

 2011/3/15 Toni Rikkola toni.rikk...@gmail.com
 
 The verifier can actually find some gaps from rule sets. For example 
 uncovered checks for number values.
 If you have 
 Person( age 18 )
 it gives a warning that you might want to cover Person( age = 18 ).
 
 
 I'd say that such a warning may not be very useful because
- in many cases you may not be interested in the other values at all,
- in some cases 18, 19,... is handled with Person( age  50 ) with low 
 salience (not recommended!),
- in many (other) cases you use a (low salience) catch all rule to 
 handle facts not selected by 1st order rules,
 
 Moreover, I'm thinking of using additional rules with Verifier, with one of 
 the primary targets being magic numbers.
 
 But Verifier is a fine achievement, and the confiugration is here to get you 
 what you want!
 
 -W
 
  
 Toni Rikkola
 
 
  
 
 ___
 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] Guvnor UI bugs?

2011-01-26 Thread Toni Rikkola
You can browse our Jira for workarounds.
Please make a ticket for bugs you find if one doesn't already exist.

https://jira.jboss.org/browse/GUVNOR

Toni Rikkola

On Jan 26, 2011, at 8:11 PM, jlegelis wrote:

 
 I'm running Drools 5.1.1 on JDK 1.6, client is Chrome on XP.   I've noticed
 quite a few UI bugs in Guvnor, most feel like browser caching issues,
 setter/getter issues etc.  For example, when creating test scenarios,
 changing the values in the 'given' clause then running the scenario results
 in the 'old' values being sent.  Anybody else notice this or have any
 workarounds?
 -- 
 View this message in context: 
 http://drools-java-rules-engine.46999.n3.nabble.com/Guvnor-UI-bugs-tp2356106p2356106.html
 Sent from the Drools - User 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


Re: [rules-users] How to Analyze Rule Test Coverage?

2011-01-23 Thread Toni Rikkola
Verifier is not much help if your trying to solve the runtime coverage.
You can get the rules that fired using an AgendaFilter.

ksession.fireAllRules( new AgendaFilter() {
public boolean 
accept(Activation activation) {
// Your code here.
}
}

Toni

On Jan 21, 2011, at 1:58 PM, Esteban Aliverti wrote:

 You could use Drools-Verifier to check things like Range Validation, Missing 
 equality, Redundancy, etc.
 Here you have some kind of documentation: 
 http://community.jboss.org/wiki/DroolsVerifier (Toni promised me that he 
 would update it some time ago...)
 
 Best Regards,
 
 
 
 Esteban Aliverti
 - Developer @ http://www.plugtree.com 
 - Blog @ http://ilesteban.wordpress.com
 
 
 On Fri, Jan 21, 2011 at 7:43 AM, hyjshanghai hyjshang...@gmail.com wrote:
 
 Yes, this can be the low-level infrastructure to implement the functionality
 comparable to that of Cobertura, which I think is not practical for we rule
 engine users to do without much effort.
 
 --
 View this message in context: 
 http://drools-java-rules-engine.46999.n3.nabble.com/How-to-Analyze-Rule-Test-Coverage-tp2300759p2300943.html
 Sent from the Drools - User 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 mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Guvnor bulk importer problem

2011-01-23 Thread Toni Rikkola
Hi,

I made a Jira for this so that we can use your work to improve our bulk 
importer.
https://issues.jboss.org/browse/GUVNOR-1169

Let me know if you want to patch the drools bulk importer to support your 
changes.


Toni Rikkola

On Jan 23, 2011, at 12:01 AM, vasilievip wrote:

 
 Attaching my version of repository xml generator for Guvnor based on drools
 repository api.
 RepositoryGenerator scans specified folders and generates packages into
 repository then export it as xml into target folder (then unit tests loading
 this exported file and perform package testing). 
 
 http://drools-java-rules-engine.46999.n3.nabble.com/file/n2310754/RepositoryGenerator.java
 RepositoryGenerator.java 
 http://drools-java-rules-engine.46999.n3.nabble.com/file/n2310754/KnowledgeGenerator.java
 KnowledgeGenerator.java 
 http://drools-java-rules-engine.46999.n3.nabble.com/file/n2310754/RulesGenerator.java
 RulesGenerator.java 
 
 Generator can be executed with maven build:
dependency
groupIdorg.drools/groupId
artifactIddrools-repository/artifactId  
exclusions
exclusion
groupIdorg.hibernate/groupId
artifactIdhibernate/artifactId
/exclusion
exclusion
groupIdorg.hibernate/groupId
artifactIdhibernate-entitymanager/artifactId
/exclusion
/exclusions
/dependency
 ...
 
   plugin
artifactIdmaven-dependency-plugin/artifactId
executions
execution
phasecompile/phase
goals
goalcopy-dependencies/goal
/goals
configuration
 
 outputDirectory${project.build.directory}/model_to_guvnor/outputDirectory
 
 includeArtifactIdsmycompany-model/includeArtifactIds
/configuration
/execution
/executions
/plugin   
 ...
   plugin  
  groupIdorg.codehaus.mojo/groupId  
  artifactIdexec-maven-plugin/artifactId  
  executions  
   execution  
phasecompile/phase  
goals  
goaljava/goal  
/goals  
configuration  
 mainClasscom.mycompany.RepositoryGenerator/mainClass  
 arguments  
  argument${project.build.directory}/classes/argument  
 
 argument${project.build.directory}/model_to_guvnor/argument
  argument${app-version}/argument
  argument${app-build-date}/argument
 /arguments  
/configuration  
   /execution  
  /executions  
 /plugin  
 -- 
 View this message in context: 
 http://drools-java-rules-engine.46999.n3.nabble.com/Guvnor-bulk-importer-problem-tp1488360p2310754.html
 Sent from the Drools - User 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


Re: [rules-users] getting all binary packages from Guvnor

2010-12-09 Thread Toni Rikkola
Hi,

There is nothing like this at the moment. You can create a Jira asking for this 
feature. 

Best way to do this would be to add a change-set located in Guvnor to your 
agents change-set. The change-set in Guvnor would have all the links to the 
packages.

Toni Rikkola

On Dec 9, 2010, at 4:24 PM, Kumar, Ravendra wrote:

 Hi Guys,
  
 I am just  playing  with Guvnor and my Knowledge Builder,
  
 I am able to pull  a  single binary package by  hard-coding it  into 
 changeset.xml using Configuration Agent like below
  
 change-set
 add
 resource basicAuthentication='enabled' username='admin' password='admin' 
 source='http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/mortgages/TEST'
  type='PKG' /
 /add
 /change-set
  
 But my requirement is not to hard code all  other packages into 
 change-set.xml, but I want to pull packages from Guvenor becasus a lot of 
 packages are being create and deleted frequently.
 So is there any way that I can get all packages/ or whole knowledgebase from 
 Guvnor. May be like this
  
  
 change-set
 add
 resource basicAuthentication='enabled' username='admin' password='admin' 
 source='http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/packags' 
 type='PKG[]' /
 /add
 /change-set
  
 And it should return  all binary packages.
  
 Any information will be highly appreciated.
  
 Thanks,
 Rav
 
 Think green - keep it on the screen. This e-mail and any attachment is for 
 authorised use by the intended recipient(s) only. It may contain proprietary 
 material, confidential information and/or be subject to legal privilege. It 
 should not be copied, disclosed to, retained or used by, any other party. If 
 you are not an intended recipient then please promptly delete this e-mail and 
 any attachment and all copies and inform the sender. Thank 
 you.___
 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] Validate/View Source or new rule (Decision table- web guided editor) - SerializationException - Guvnor 5.1.1

2010-11-28 Thread Toni Rikkola
With 5.1.1 you need to run ant gwt-compile in the drools-guvnor folder before 
running the maven build. This compiles the GWT javascript with the lastest code 
changes.

In the current trunk codes maven does the build every time you run it, so the 
ant task is not needed anymore.

Toni Rikkola

On Nov 25, 2010, at 9:37 AM, kumar7881 wrote:

 Thanks for the information.
 
 To build my own copy, I am sure I needed more knowledge, is there any place 
 to get more info on this fix. I mean is there any place to get gwt client 
 code and replace simply.
 
 Please help.
 
  
 
 Thanks
 
 Kumar
 
 Mobile: 91 - 9980330068
 
  
 
 From: sherod [via Drools - Java Rules Engine] [mailto:[hidden email]] 
 Sent: Thursday, November 25, 2010 12:57 PM
 To: Achyutha, Venkata
 Subject: Re: Validate/View Source or new rule (Decision table- web guided 
 editor) - SerializationException - Guvnor 5.1.1
 
  
 
 I'm going to take stab and say its a mismatch between the GWT client and the 
 server side code. 
 
  
 
 I.e the data model on the server side was updated in 5.1.1, but the client 
 wasn't refreshed to use it - since GWT generates the client side JS data 
 model atcompile time.
 
  
 
 Might have to patch and build your own copy to fix it?
 
  
 
  
 
 On Thu, Nov 25, 2010 at 5:59 PM, kumar7881 [hidden email] wrote:
 
 
 Guys, any one hints on this, please help me on this, this is stopeer for me
 and not able to find out any clues from internet etc..
 
 Thanks
 Kumar
 --
 View this message in context: 
 http://drools-java-rules-engine.46999.n3.nabble.com/Validate-View-Source-or-new-rule-Decision-table-web-guided-editor-SerializationException-Guvnor-5-1-1-tp1945466p1965365.html
 Sent from the Drools - User mailing list archive at Nabble.com.
 ___
 rules-users mailing list
 [hidden email]
 https://lists.jboss.org/mailman/listinfo/rules-users
 
  
 
 
 ___ 
 rules-users mailing list 
 [hidden email] 
 https://lists.jboss.org/mailman/listinfo/rules-users
 
 
 View message @ 
 http://drools-java-rules-engine.46999.n3.nabble.com/Validate-View-Source-or-new-rule-Decision-table-web-guided-editor-SerializationException-Guvnor-5-1-1-tp1945466p1965452.html
 To unsubscribe from Validate/View Source or new rule (Decision table- web 
 guided editor) - SerializationException - Guvnor 5.1.1, click here.
 
 
 View this message in context: RE: Validate/View Source or new rule (Decision 
 table- web guided editor) - SerializationException - Guvnor 5.1.1
 Sent from the Drools - User 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


Re: [rules-users] Building a rule base from the content of a directory

2010-11-20 Thread Toni Rikkola
Can't remember what the issue was with BRL back then. I can take a second look 
at the TODO next week.

Toni Rikkola

On Nov 19, 2010, at 2:26 PM, Bruno Freudensprung wrote:

 Hi,
 
 Many thanks for you answer!
 Are you talking about DroolsCompilerAntTask and DroolsVerifierAntTask 
 Ant tasks (that I discovered after having read you email)?
 
 I've taken a look at the code of the DroolsCompiler task (Drools 5.1.1) 
 and it also concatenates (into a single string) the package file and the 
 BRL file (transformed into DRL) before adding it to the 
 KnowledgeBuilder. The code comes along with the following comment:
// TODO: Right now I have to first change this to String. 
 Change to
// use KnowledgeBuilder directly when the support for that 
 is done.
// -Toni Rikkola-
 
 I really wonder if there is a more straighforward way to handle that 
 package file + BRL file association. This is quite fair however 
 compared to the following case:
 the Drools RCP plugin enables to create rule resources, either rule 
 packages (a DRL file with package, import, globals...) in a single DRL 
 file, or individual rules in a single DRL file as well. An individual 
 rule seems to be kinda like a BRL file: something without any package, 
 import, globals... and with one rule. The problem is I don't see a 
 clever way (when listing the content of a directory) to make the 
 distinction between individual rules and rule packages.
 
 For the moment I tend to think that, like in Guvnor UI, the solution is 
 to have conventions (this directory contains individual rules, that 
 directory contains rule packages, that one business rules...).
 
 Bruno.
 
 
 Justin Case a écrit :
 I'm happily using an Ant task for that - registered as Eclipse external 
 builder. 
 But I don't feel it exactly like cutting edge...
 HTH,
 JC
 
 
 
 
 ___
 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] Nested classes in the fact model in Guvnor

2010-10-21 Thread Toni Rikkola
Hi,

This is a bug. I reported it: https://jira.jboss.org/browse/GUVNOR-679

Toni Rikkola

On Oct 20, 2010, at 4:40 PM, Chris Selwyn wrote:

 
 If I have nested classes in my Java model, I find that the Guvnor is 
 giving me the option to import classes using a $ as the separator 
 between the containing class name and the nested classname.
 
 However, validation of rules always fails saying that the class name 
 with the $ in it cannot be resolved.
 If I change these into . then the problem goes away.
 
 Is this a known problem or am I missing something?
 
 I am using Drools 5.1.1
 
 Chris Selwyn
 ___
 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] Drools Eclipse IDE Update Site 3.5

2010-09-28 Thread Toni Rikkola
It should work now. There was an issue with the feature jars.

Toni

On Tue, Sep 21, 2010 at 5:29 PM, Brian Trezise 
brian.trez...@intellidata.net wrote:

  Have you found anything on this? I still can't see anything at the update
 site in eclipse

 ~Brian


 On 9/15/2010 7:15, Toni Rikkola wrote:

 I'll take a look at this.


 Toni Rikkola

 On Sep 14, 2010, at 5:52 PM, Brian Trezise wrote:

   I'm not sure why, but when I try to get eclipse to download the
 eclipse IDE from the drools update site as listed on the webpage,
 Eclipse isn't seeing anything there.  If i go to the link in Chrome I
 get an error stating that the browser couldn't display the page; firefox
 shows a list of three files.  I'm trying to download the latest IDE
 plugin from http://downloads.jboss.com/drools/updatesite3.5/

 ~Brian
 ___
 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] Problem with Guvnor 5.1.1, save frequently does not save...

2010-09-22 Thread Toni Rikkola
Hi,

Thank you for reporting this.

I created a JIRA for this if you want to follow it.
https://jira.jboss.org/browse/GUVNOR-636

Do you still get the Check-in popup every time you click Save? I'm just
wondering if this is related to a previous bug we had.

Toni Rikkola

2010/9/22 David Shields david.shie...@duke.edu


 I have spent several days writing rules and tests for them in Guvnor, and
 kept having strange results.  A test would sometimes fail, repeatedly, and
 then finally start working after I would delete and recreate some portion of
 it, or change a value.

 After two of us spent many hours trying to identify the extent of the
 problem, we concluded the following:
 1.  The problem happens under both IE and Firefox.
 2.  The problem happens less frequently under Firefox if we install and
 turn on a third-party plug-in which disables Firefox caching web pages.
 3.  Saving a new rule or test will allow us to work with it (edit - save -
 test scenarios).  However, frequently the rule or test will just disappear
 once we log out.
 4.  A Save and Check-in will often work correctly if we cross our
 fingers and do the following:
 a.  Save it once  (the screen updates, and you can check the
 version history)
 b.  Refresh the browser
 c.  Make the change again
 d.  Save it a second time
 5.  After doing a Save and Check-in, you can immediately do a view
 source and see your changes in place.  However, if you then close the test
 (or rule) and re-open it, you will often find that the change is gone, and
 the test or rule looks like it did before you made the change.

 A sample screenshot appears below.  In this case, I created the test with
 the performedTime set to 20-Sep-2008.  I ran the test and it failed,
 because the rule was checking for greater than or equal to 21-Sep-2008.  I
 then changed the date on the test to 21-Sep-2008, did a save changes and a
 Check-in, and then ran the scenario again.

 As you can see below, the asserted object contains the date 20-Sep-2008,
 even though the test clearly shows 21-Sep-2008.



 Does anybody have any ideas on this?  If I copy the above test into a new
 test, it will often work the first time, but then it may disappear, once I
 logout, even though it was saved and checked-in.

 It almost seems like there is something wrong with the imbedded repository,
 and / or the first running of the test created fact objects that are
 persisting and being found the second time I ran the changed test. ...

 We are running the Final release of Drools Guvnor 5.1.1 found in
 drools-5.1.1-guvnor.zip downloaded on 4-Sep-2010
 We are running under Tomcat 6.0, with the recommended jar files replaced.

 Thanks for your help!

 --
 David Shields
 Division of Clinical Informatics
 Department of Community and Family Medicine
 Duke University Medical Center

 Phone (864) 787-8551


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


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


Re: [rules-users] Drools Eclipse IDE Update Site 3.5

2010-09-15 Thread Toni Rikkola
I'll take a look at this.


Toni Rikkola

On Sep 14, 2010, at 5:52 PM, Brian Trezise wrote:

  I'm not sure why, but when I try to get eclipse to download the 
 eclipse IDE from the drools update site as listed on the webpage, 
 Eclipse isn't seeing anything there.  If i go to the link in Chrome I 
 get an error stating that the browser couldn't display the page; firefox 
 shows a list of three files.  I'm trying to download the latest IDE 
 plugin from http://downloads.jboss.com/drools/updatesite3.5/
 
 ~Brian
 ___
 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] Guvnor connection Drolls API.

2010-09-09 Thread Toni Rikkola
You can use the direct URL for the knowledge package. It can be found 
from the package view. There is a section on the bottom that has 
Information and important URLs.

Toni Rikkola

tom ska wrote:
 Hi,
 what I want to do, is to initialise knowledgeBase with package created 
 in Guvnor. But I don't want to use changeSet.xml. I have my own 
 configuration file (apache commons configuration), and I want to load 
 all connection's data from this file. So I have in my config file: 
 Guvnor's URL, and login and password. I want to load my knowledgeBase 
 in JAVA using this file. Is this possible? To avoid using changeSet.xml?

 Thanks,
 tom.
 

 ___
 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] NPE in Guvnor Analysis w/Decision Table

2010-09-03 Thread Toni Rikkola
Hi,

Works with my test data, but sounds like a bug. Can you please open a 
jira for this. If possible, I need to know about the rules that you are 
using and what they are doing.

Toni Rikkola

Lawrence Terrill wrote:
 It seems every time I try to perform a rule analysis in the QA tab of Guvnor 
 on a package containing a decision table, I get an NPE, both in 5.1 and 
 5.2.SNAPSHOT. 

 User error or bug? Anyone seen this work?

 Larry
 ___
 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] Drools 5.1.0CR1

2010-07-20 Thread Toni Rikkola
Juan Ignacio Barisich wrote:
 Hello everyone.
 I'm working on a research about migration from OSWorklow to 
 DroolsFlow. Among other things, I need spring integration support. As 
 I know, this feature will be supported in the 5.1.0CR1 version of 
 Drools. Do you know when this version will be released? On 
 https://jira.jboss.org/browse/JBRULES there isn't an expected date for 
 this version.

 Thanks in advance.

 Juan Barisich
 

 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users
   
Tagging it right now. So it should be out tomorrow.

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


Re: [rules-users] Upgraded Guvnor to 5.1.x from 5.0 and getting expander error with DSL

2010-07-12 Thread Toni Rikkola
Hi,

This sounds like a bug. Can you please create a Jira for this?
https://jira.jboss.org/browse/GUVNOR

Thank you
Toni Rikkola

Andrew Nguyen wrote:
 I just upgraded to the latest milestone and am getting the following error:

   [package configuration problem][ERR 103] Line 31:0 rule 'rule_key' 
 failed predicate: {(validateIdentifierKey(DroolsSoftKeywords.RULE))}? in rule
   [package configuration problem][ERR 101] Line 31:9 no viable 
 alternative at input 'TPNOrders' in rule expander
   [package configuration problem][ERR 101] Line 32:0 no viable 
 alternative at input 'import' in rule expander in rule dsl

 This exact set of *.brl, *.dsl, drools.package were working up until the 
 upgrade.  I've been searching the web but haven't found anything similar.

 Thanks!
 ___
 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] Drools 5.1.0.M2

2010-06-16 Thread Toni Rikkola
I fixed the URL. Thanks for letting me know.

Yes, the old repo is no longer used and all the dependencies for Drools 
can be found using just the JBoss repo.

Toni Rikkola

Steve Ronderos wrote:
 Good catch Alan,

 I looked around but I'm not quite sure who to contact about correcting 
 the URL on that page.  Maybe one of the Drools team members could 
 answer that question (and confirm that the old repo will in fact no 
 longer be receiving updates).

 Thanks,
 Steve

 rules-users-boun...@lists.jboss.org wrote on 06/09/2010 07:19:50 AM:

  From:
 
  alan.gai...@tessella.com
 
  To:
 
  Rules Users List rules-users@lists.jboss.org
 
  Date:
 
  06/09/2010 07:24 AM
 
  Subject:
 
  Re: [rules-users] Drools 5.1.0.M2
 
  Sent by:
 
  rules-users-boun...@lists.jboss.org
 
 
  Steve,
 
  Many thanks for the information!
 
  Just to let you know, the link on the Drools Downloads page (http://
  www.jboss.org/drools/downloads.html) still points to the old 
 repository.
 
  Regards,
 
  Alan
 
 

 
  Steve Ronderos steve.ronde...@ni.com
  Sent by: rules-users-boun...@lists.jboss.org
  08/06/2010 17:14
 
  Please respond to
  Rules Users List rules-users@lists.jboss.org
 
  To
 
  Rules Users List rules-users@lists.jboss.org
 
  cc
 
  Subject
 
  Re: [rules-users] Drools 5.1.0.M2
 
 
 
 
  JBoss recently updated their maven repository.  Unfortunately I
  don't think that the old repository (the one you listed) is going to
  continue getting new updates.
 
  The new repo url is 
 https://repository.jboss.org/nexus/content/groups/public/
 
  You can see the 5.1.0.M2 artifact is available at that URL: https://
  
 repository.jboss.org/nexus/content/groups/public/org/drools/drools/5.1.0.M2/ 

 
  You can read more about the new repo on their wiki: http://
  community.jboss.org/wiki/MavenGettingStarted-Users
 
  Thanks,
  Steve
 
  rules-users-boun...@lists.jboss.org wrote on 06/08/2010 08:52:39 AM:
 
   From:
  
   alan.gai...@tessella.com
  
   To:
  
   Rules Users List rules-users@lists.jboss.org
  
   Date:
  
   06/08/2010 08:57 AM
  
   Subject:
  
   [rules-users] Drools 5.1.0.M2
  
   Sent by:
  
   rules-users-boun...@lists.jboss.org
  
   Drools 5.1.0.M2 still isn't available from the JBoss Maven 
 repository (at
   http://repository.jboss.com/maven2/org/drools/). Any idea when it
   will be made available?
   Thanks,
   Alan___
   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 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] drools-guvnor 5.1.0-M1 not available on Maven2

2010-04-23 Thread Toni Rikkola
Your right it is missing. Thanks for letting me know. I'll add the war 
as soon as possible.

Toni

fmetral wrote:
 Hi,

 Here is my dependency
 dependency
 groupIdorg.drools/groupId
 artifactIddrools-guvnor/artifactId
 version5.1.0.M1/version
 typewar/type
 /dependency

 I know that Guvnor is a web application. That's why I've specified type as
 war.
 For version 5.0.1, the war is deployed on Maven2 repository but for
 5.1.0.M1, it is not.

 Regards,
   

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


Re: [rules-users] Extending the validation of rules functionality in Guvnor

2010-04-20 Thread Toni Rikkola
Hi,

The Verify button for a single asset will be in the asset editor, next 
to the Validate button in the M2 release. The feature is in the trunk, 
but it is/was down for a moment due to some updates.

You can use the verifier rules in M1 and earlier versions for the entire 
rule package, if you go to the Admin section in Guvnor. The Verify 
button in asset view just checks the single rule or decision table.

Toni Rikkola

AndreaLee wrote:
 I have just read http://community.jboss.org/wiki/DroolsVerifier and am happy
 to see that Drools Verifier seems to be heading in the right direction for
 business logic validation that my project requires.

 Which version of Guvnor is the Verify button available in? I have
 downloaded Guvnor 5.1.0.M1 but do not see the Verify button. I am also
 unable to check out the project via svn as I am unable to connect to
 http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk or
 https://svn.jboss.org/repos/labs/labs/jbossrules/trunk.
   

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


Re: [rules-users] Rules categorization/packages

2010-03-16 Thread Toni Rikkola
Hi,

Its possible that there are some bugs in the snapshots. Can you tell me 
what your model looks like?

Toni

Amit Kumar wrote:
 The latest builds seem to be no good for guvnor
 They do seem rich in features .. especially support for 
 collect/accumulate in guvnor along with inbox and global packages.
  
 But But But.. on adding a fact in the when/then clause then all the 
 attributes of the facts are not coming .. some attributes come.. not 
 all of them.
 I am picking it from here
 https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/
 Any other place I can look :)
  
 Thanks
 Amit

 On Mon, Feb 22, 2010 at 8:54 AM, Amit Kumar amitku...@gmail.com 
 mailto:amitku...@gmail.com wrote:

 Thanks Jervis!!

 On Sun, Feb 21, 2010 at 7:05 PM, Jervisliu j...@redhat.com
 mailto:j...@redhat.com wrote:

 A new feature called Sharable artifacts/Global artifacts will be
 available in Drools 5.1. This feature allows you share an
 asset among
 different packages. It also creates a global area (you can
 consider it
 as a global package). Potentially you can promote an asset
 that you
 think is more appropriate to be defined in a global scope from
 your
 current package to the global area, so that this global asset
 can be
 reused by every package. This feature is already on trunk,
 maybe you
 want to give it a try. Any comments or feedbacks will be highly
 appreciated.

 Cheers,
 Jervis


 Amit Kumar wrote:
  Hello All,
 
  I am looking to organize the rules in different categories.
 But for
  distribution purposes We are creating packages for different
  roles/processing phases
 
  So a rule will reside in one pckage but for navigation it
 can belong
  to multiple categories
 
  So packages are like Shirts, Pants, Shoes, Sweaters
  Categories are Color, Material, Size, Gender and those have sub
  categories witin them
 
  We have rules which will device the category of the item
  Like red rule, blue rule, cloth rule, leather rule
 
  Now the problem we are facing is for category rules is if I
 define the
  rule in Shirt package .. then I will not be able ot use it
 in Pant
  package.. Will have to redefine it.
 
  The other problem in this scenario is If I have a price rule
 in Shirt
  package and the category is Blue Color and XL Size then
 I will
  have to put it in both categories
  When I put the Blue Rule on Blue Category and XL Rule
 on XL
  Category  and I put the rule in both categories.. will it
 be an and
  relationship or will be an OR
 
  Regards,
  Amit
 
 
 
 
  ___
  rules-users mailing list
  rules-users@lists.jboss.org mailto:rules-users@lists.jboss.org
  https://lists.jboss.org/mailman/listinfo/rules-users
 

 ___
 rules-users mailing list
 rules-users@lists.jboss.org mailto: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] Drools Guvnor

2010-02-22 Thread Toni Rikkola
Hi,

When you upload files to Guvnor XML and .properties files are stored 
under XML, properties and everything else for example Word files or PDF 
files go to Other assets, documentation.

Toni

Nilima R wrote:

 Can you please explain the use of *XML,properties* and *Other 
 assets ,documentation* links available in Guvnor.



 Thanks,
 Nilima
 =-=-=
 Notice: The information contained in this e-mail
 message and/or attachments to it may contain 
 confidential or privileged information. If you are 
 not the intended recipient, any dissemination, use, 
 review, distribution, printing or copying of the 
 information contained in this e-mail message 
 and/or attachments to it are strictly prohibited. If 
 you have received this communication in error, 
 please notify us by reply e-mail or telephone and 
 immediately and permanently delete the message 
 and any attachments. Thank you


   
 

 ___
 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] guvnor - dsl rule editor - using : in text box

2010-02-17 Thread Toni Rikkola
Tested it and this is a bug.
I made a Jira for it so you can follow it.
https://jira.jboss.org/jira/browse/GUVNOR-505

Toni

John Walker wrote:
 All,

 I have a DSL sentence that looks like this:
 [when]- and var9 matches {v9}=field9!=null, field9 matches {v9}

 When using the Guvnor guided rule editor, I add the - and var9 
 matches {v9} DSL sentence to the rule, giving me a WHEN condition 
 like this:
 - and var9 matches [text box]

 I want to put a URL in the text box, but anytime I use a value 
 containing a colon:,
 I get a popup box with error message The value [some value with a 
 colon] is not valid for this field

 Example:
 DSL in rule, using guvnor guided editor:  - and var9 matches 
 [http://google.com];
 Popup error message:   The value http://google.com is not valid for 
 this field

 What needs to happen to allow a value with a colon?  I did not have 
 this problem with drools4 and JBRMS.

 Thanks,
 John
 

 ___
 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] Verifier Question

2010-02-16 Thread Toni Rikkola
Hi,

If you check out the trunk and take a look at the drools-verifier you 
can see the VerifierTestStandalone.java that uses the verifier as a 
module. This would be a nice feature for Eclipse.

Toni

J Michael Dean wrote:
 Does anyone have a succinct example of using verifier on a DRL or knowledge 
 base?  This is a nice feature in Guvnor and I thought it should be easy in 
 the Eclipse environment to create a simple plugin that would gobble up the 
 knowledge base and spit out the report.  Thanks.

 - Mike


 ___
 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] Guvnor test scenario problem when ruleflow-group option is defined on a rule

2009-12-04 Thread Toni Rikkola
Hi,

Rule flow groups were just added to test scenarios, they will be in the 
next release.

https://jira.jboss.org/jira/browse/GUVNOR-474

Toni Rikkola

Mathieu wrote:
 Hello,

 I would like to validate rules created under Guvnor ( 5.0.1 ) by using the
 Test scenarios . But, it does not work when the option  ruleflow-group 
 exists on rules. All the rules that I created use the option ruleflow-group
 . I do not see in the Test Scenario  an option allowing to indicate the
 ruleflow-group. Is it a known bug? Is there a solution to test rules
 belonging to ruleflow-group since Guvnor?

 Thanks
   

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


Re: [rules-users] Extending the validation of rules functionality in Guvnor

2009-08-21 Thread Toni Rikkola
Hi,

This feature is not in the Guvnor at the moment, but I was planning to 
add it when I start working on GUVNOR-101.

https://jira.jboss.org/jira/browse/GUVNOR-101

Toni

Premkumar Stephen wrote:
 Hello everyone,

 Currently,  the validate functionality ensures that rules have proper 
 syntax.
 it is possible to extend this functionality so that business use cases 
 might also be validated? Is there an API/examples to do that.

 For eg, in our domain,  an object X can be evaluated for 3 criteria ( 
 a, b, c )
 However, we would need to prevent rules written which combine criteria 
 b and c
 Rules can have the combinations ( a,b,c, ab, ac ). Combinations ( bc 
 and abc ) should not be allowed.



 Regards,
 Prem
 

 ___
 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] Validation in Guvnor fails due to unrecognized method of implemented interface

2009-07-10 Thread Toni Rikkola

Hi Brody,

Some things that you can try:
1. Try refreshing the browser after you have moved to 5.0.1. Maybe it is 
still using the old javascripts and that is why it is not showing the 
editors.

2. Try rebuilding the packages.
3. Move repository from 5.0.0.CR1 to 5.0.1 using the export/import that 
is under admin.


Toni

Brody bach wrote:

Hi Edson, thanks for the reply..
how can I contact the guvnor people than? :)
Or are they reading this too?

Regards
bb


Edson Tirelli-3 wrote:
  

   Brody,

   This seems to be a serialization problem. Please, talk to the guvnor
people on how to migrate between versions.

[]s
Edson

2009/7/9 Brody bach brodyb...@yahoo.com



Sooryfor reposting this one, Edson was expecting a feedback :)



Hi Edson,
sorry for the very late reply

As I mentioned before, I had this problem in Guvnor. So I undeployed my
old
guvnor and redeploy a new one (the one I take fresh from website :), so
it
should be the latest version).
Now I get a new problem: I can't open any rules I've created using the
previous version. The exception I got:

12:06:26,171 INFO  [STDOUT] [] DEBUG 01-07 12:06:26,171
(ServiceImplementation.java:loadRuleAsset:491)   Load time taken for
asset:
62
12:06:26,171 INFO  [STDOUT] [] ERROR 01-07 12:06:26,171
(RepositoryServiceServlet.java:doUnexpectedFailure:69)
com.google.gwt.user.client.rpc.SerializationException: Type
'org.drools.guvnor.client.rpc.RuleAsset' was not assignable to
'com.google.gwt.user.client.rpc.IsSerializable' and did not have a custom
field serializer.  For security purposes, this type will not be
serialized.
12:06:26,171 ERROR [STDERR] []
com.google.gwt.user.client.rpc.SerializationException: Type
'org.drools.guvnor.client.rpc.RuleAsset' was not assignable to
'com.google.gwt.user.client.rpc.IsSerializable' and did not have a custom
field serializer.  For security purposes, this type will not be
serialized.
12:06:26,171 ERROR [STDERR] []  at

com.google.gwt.user.server.rpc.impl.LegacySerializationPolicy.validateSerialize(LegacySerializationPolicy.java:140)
12:06:26,171 ERROR [STDERR] []  at

com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:581)
12:06:26,171 ERROR [STDERR] []  at

com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:129)
12:06:26,171 ERROR [STDERR] []  at

com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter$ValueWriter$8.write(ServerSerializationStreamWriter.java:146)
12:06:26,171 ERROR [STDERR] []  at

com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue(ServerSerializationStreamWriter.java:520)
12:06:26,171 ERROR [STDERR] []  at
com.google.gwt.user.server.rpc.RPC.encodeResponse(RPC.java:573)
12:06:26,171 ERROR [STDERR] []  at
com.google.gwt.user.server.rpc.RPC.encodeResponseForSuccess(RPC.java:441)
12:06:26,171 ERROR [STDERR] []  at
com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:529)
12:06:26,171 ERROR [STDERR] []  at

com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:164)
12:06:26,171 ERROR [STDERR] []  at

com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java:86)
12:06:26,171 ERROR [STDERR] []  at
javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
12:06:26,171 ERROR [STDERR] []  at
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
12:06:26,171 ERROR [STDERR] []  at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
12:06:26,171 ERROR [STDERR] []  at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
12:06:26,171 ERROR [STDERR] []  at
org.jboss.seam.web.ContextFilter$1.process(ContextFilter.java:42)
12:06:26,171 ERROR [STDERR] []  at

org.jboss.seam.servlet.ContextualHttpServletRequest.run(ContextualHttpServletRequest.java:53)
12:06:26,171 ERROR [STDERR] []  at
org.jboss.seam.web.ContextFilter.doFilter(ContextFilter.java:37)
12:06:26,171 ERROR [STDERR] []  at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
12:06:26,171 ERROR [STDERR] []  at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
12:06:26,171 ERROR [STDERR] []  at

org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
12:06:26,171 ERROR [STDERR] []  at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
12:06:26,171 ERROR [STDERR] []  at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
12:06:26,171 ERROR [STDERR] []  at

org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
12:06:26,171 ERROR [STDERR] []  at

org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
12:06:26,171 ERROR [STDERR] []  at


Re: [rules-users] How to import drl files to Guvnor

2009-06-30 Thread Toni Rikkola

Hi,

You can do this with Create New Package.

In Guvnor:
1. Select Knowledge Bases from the right
2. Select Create New
3. Select New Package. New Window pops up
4. Select Import from DRL file
5. Select the DRL file and upload. If the package that the rule uses 
exists it will merge the DRL content to the existing package, if not it 
will create a new package for it.


Toni

kavuri wrote:

Hi,

I am new to guvnor web based application.we have lot of rule 
files(DRL) developed in our project.until now we are just manually 
writing the code in the drl files.as http://files.as we have lots of 
rules it becomes hard to maintain.so we trying to shift those drl 
files into guvnor for effctive management of rules.


i got guvnor war file and deployed in the tomcat 6.0.it 
http://6.0.it is  working fine .now i need to inport all my drl 
files into that system.i want to sink guvnor with my project.


anyone please help me out 
Thanks in advance

regards,
Vamsi Krishna.Kavuri.


___
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] Guvnor causes NoClassDefFoundError when using functions

2009-06-25 Thread Toni Rikkola

Hi,

Can you create a JIRA about this? Just in case this is a problem in Guvnor.

https://jira.jboss.org/jira/browse/GUVNOR

If you can. Give the Guvnor version that you are using and a small 
repository export or test case that we can use to reproduce this.


Thank you
Toni

Andrew Nguyen wrote:

Hello all,

I have been using Guvnor to manage some rules in a prototype system 
that we are developing.  If I login to Guvnor, make some changes, and 
rebuild the package, sometimes I will get the following error:
 


java.lang.NoClassDefFoundError: tpn/CompareBetween


I have a function defined that is compareBetween and the syntax and 
everything looks correct in the generated DRL file.  Sometimes, I can 
rebuild the package (without making any changes) and the problem will 
go away?


Has anyone seen anything like this before?

Thanks,
Andrew


--
Andrew Nguyen
Nguyen  Associates
Custom Software Development  IT Services
http://www.na-consulting.net
and...@na-consulting.net mailto:and...@na-consulting.net
858-225-7575



___
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] Guvnor Building pkg error

2009-06-17 Thread Toni Rikkola

Hi,

Just noticed that you asked this same thing in the drools-dev list ( and 
I even replied to it :) ).


Please try to only ask on one list. This list, drools-users is the one 
for this type of questions.


Thanks
Toni

Yan Liu wrote:
When trying to build a package (even using the sample pkg from drools 
Guvnor) I got this - Sorry, a technical error occurred. Please 
contact a system administrator.
 
This is indeed very frustrating as I need to build binary pkgs for my 
remote rule agents to access. I found the post here saying it is 
fixed. https://jira.jboss.org/jira/browse/GUVNOR-327 No details though.
 
Can anyone shed some light on this problem if you know how to fix it?
 
Thanks in advance for your reply.
 
Yan



___
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] Bug in Guvnor?

2009-04-07 Thread Toni Rikkola

Hi,

Looks like this has been fixed. The sample works with the trunk codes, 
but did fail when I tested with CR1.


Thank you for reporting.

Toni Rikkola

hpost wrote:

Hi.  I didn't see this in Jira, and it is very reproducible for me.  I am
using 5.0CR1, and trying to work completely in Guvnor.  I create a simple
Model, add a Business Rule and a Test Scenario, and all works fine.  As soon
as I add a function, the Test Scenarios no longer work.  If I delete the
function, the Test Scenario starts working again.  Here is a simple sample.

package TestPkg

declare TestFact
name: String
age: Integer
end

function int testFunc() {

return 2;
}

rule TestRule
dialect mvel
when
$testFact : TestFact( name == Bill )
then
$testFact.setAge( 3 );
end


I'm not even calling the function - just its presence causes Test Scenarios
to fail.

Thanks,

Herman Post

  


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


Re: [rules-users] Error running DroolsCompilerAntTask in CR1

2009-03-23 Thread Toni Rikkola

Hi,

I did some testing with the information that you provided, but couldn't 
reproduce the error. The ant task has some changes after M5, so it is 
possible that this is a bug. Can you open a Jira about this and possibly 
add some more details, like a simple DRL file that helps to reproduce this?


https://jira.jboss.org/jira/browse/JBRULES

Thank you

Toni Rikkola

Jeff Davis wrote:

Hi,

I upgraded everything from M5 to CR1 last night, but noticed that my 
ant task no longer worked and was returning an error (it had worked 
previously under M5, and I confirmed by switching everything back to 
test). The error I now receive is:


[compiler] java.util.zip.ZipException: error in opening zip file
[compiler] at java.util.zip.ZipFile.open(Native Method)
[compiler] at java.util.zip.ZipFile.init(ZipFile.java:203)
[compiler] at java.util.zip.ZipFile.init(ZipFile.java:234)
[compiler] at 
org.apache.tools.ant.AntClassLoader.getResourceURL(AntClassLoader.java:1028)
[compiler] at 
org.apache.tools.ant.AntClassLoader$ResourceEnumeration.findNextResource(AntClassLoader.java:147)
[compiler] at 
org.apache.tools.ant.AntClassLoader$ResourceEnumeration.nextElement(AntClassLoader.java:130)
[compiler] at 
org.apache.tools.ant.util.CollectionUtils$CompoundEnumeration.nextElement(CollectionUtils.java:198)
[compiler] at 
sun.misc.CompoundEnumeration.nextElement(CompoundEnumeration.java:43)
[compiler] at 
org.drools.util.ChainedProperties.loadProperties(ChainedProperties.java:233)
[compiler] at 
org.drools.util.ChainedProperties.init(ChainedProperties.java:119)
[compiler] at 
org.drools.util.ChainedProperties.init(ChainedProperties.java:41)
[compiler] at 
org.drools.util.ChainedProperties.init(ChainedProperties.java:35)
[compiler] at 
org.drools.RuleBaseConfiguration.init(RuleBaseConfiguration.java:376)
[compiler] at 
org.drools.RuleBaseConfiguration.init(RuleBaseConfiguration.java:234)
[compiler] at 
org.drools.common.AbstractRuleBase.init(AbstractRuleBase.java:149)
[compiler] at 
org.drools.reteoo.ReteooRuleBase.init(ReteooRuleBase.java:144)
[compiler] at 
org.drools.reteoo.ReteooRuleBase.init(ReteooRuleBase.java:121)
[compiler] at 
org.drools.RuleBaseFactory.newRuleBase(RuleBaseFactory.java:58)
[compiler] at 
org.drools.RuleBaseFactory.newRuleBase(RuleBaseFactory.java:38)
[compiler] at 
org.drools.contrib.DroolsCompilerAntTask.createWithPackageBuilder(DroolsCompilerAntTask.java:241)
[compiler] at 
org.drools.contrib.DroolsCompilerAntTask.execute(DroolsCompilerAntTask.java:170)
[compiler] at 
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
[compiler] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native 
Method)
[compiler] at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[compiler] at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

[compiler] at java.lang.reflect.Method.invoke(Method.java:585)
[compiler] at 
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)

[compiler] at org.apache.tools.ant.Task.perform(Task.java:348)
[compiler] at org.apache.tools.ant.Target.execute(Target.java:357)
[compiler] at 
org.apache.tools.ant.Target.performTasks(Target.java:385)
[compiler] at 
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
[compiler] at 
org.apache.tools.ant.Project.executeTarget(Project.java:1306)
[compiler] at 
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
[compiler] at 
org.apache.tools.ant.Project.executeTargets(Project.java:1189)

[compiler] at org.apache.tools.ant.Main.runBuild(Main.java:758)
[compiler] at org.apache.tools.ant.Main.startAnt(Main.java:217)
[compiler] at 
org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
[compiler] at 
org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)


My build.xml is:

project name=test default=compile

path id=drools.path.task
fileset dir=C:\Apps\drools-5.0.0.CR1-bin
include name=drools-compiler-5.0.0.CR1.jar/
include name=drools-ant-5.0.0.CR1.jar/
include name=drools-core-5.0.0.CR1.jar/
include name=drools-decisiontables-5.0.0.CR1.jar/
include name=drools-api-5.0.0.CR1.jar/
/fileset
fileset dir=C:\Apps\drools-5.0.0.CR1-bin\lib
include name=*.jar/
/fileset
/path
path id=drools.path
pathelement path=target\classes/
fileset dir=C:\Apps\drools-5.0.0.CR1-bin
include name=drools-ant-5.0.0.CR1.jar/
include name=drools-decisiontables-5.0.0.CR1.jar/
include name=drools-api-5.0.0.CR1.jar/
/fileset
/path

taskdef name=compiler 
classname=org.drools.contrib.DroolsCompilerAntTask 
classpathref=drools.path.task /


target name=create.rules.package 
compiler
srcdir=src\main\rules
tofile=target\package\packge.pkg
classpathref=drools.path
include name=Sample.drl /
/compiler
/target

Re: [rules-users] Problem with viewing the Business Rule Assets under the Rules Package in Drools Guvnor

2009-02-20 Thread Toni Rikkola

Hi,

Do you have any user permissions set? It is possible that something is 
not permitting you to see it. In that case this might be a bug, because 
there is a way to get around it.


In the next Drools release the asset should also be visible in archives 
after you have archived the package.


Toni Rikkola

guyt1...@aim.com wrote:

Hello,

I have noticed a strange behavior with the Drools Guvnor where I can 
not see any of my web guided decision table from the Rules Package 
Business Rule Asset view.  I can navigate to this decision table 
using the Assets View and when I click on the more info button the 
addition information on the left hand side of the decision table 
clearly shows that the asset belongs to the expected package that I 
can not see it from.  I have tried to archive the decision table and 
it does not show up in the archives.  I have tried changing the 
package name on the asset and then I tried to navigate to the asset 
from the other package, I still can not see it.  Note, the package 
somehow gets disconnects from the package after a restart the app 
server. The other strange behavior is that I can make changes to the 
decision table and then rebuild the packages and the changes show in 
the package source.  I just can not see the decision table by from the 
package...


Note, I have configured JackRabbit to store the repository in a 
database along with a journal node for clustering.


Environment Details:
+ App Server - JBoss 4.0.3.sp1
+ Drools 5.0M5
+ Database - Microsoft Sql Server
+ JackRabbit Repo - Configured to use a Jndi data source configured in 
JBoss.


Any advise would be appreciated.

Thanks,
-GuyT1122


*A Good Credit Score is 700 or Above. See yours in just 2 easy steps! 
http://pr.atwola.com/promoclk/100126575x1218822736x1201267884/aol?redir=http:%2F%2Fwww.freecreditreport.com%2Fpm%2Fdefault.aspx%3Fsc%3D668072%26hmpgID%3D62%26bcd%3DfebemailfooterNO62* 




___
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] Rule Templates and Guvnor

2009-02-18 Thread Toni Rikkola

Hi,

You can't use templates at the moment.

But you can use the copy function in the rule editor. Create a rule that 
is used as a base, disable it and copy this rule when creating new ones.


Toni Rikkola

Vikrant Yagnick wrote:


Hi All,

I was wondering if there is any support for Rule Templates directly in 
Guvnor. I haven’t been able to find anything in the official 
documentation or by playing around Guvnor.


Does someone have any ideas as to how one would store templates in 
Guvnor?


*Cheers,*

*Vikrant Yagnick*

Software Designer - CLICO

MajescoMastek Ltd | Mastek Millennium Center,Millennium Business Park, 
Mahape, Navi Mumbai 400-710 |


(T) 91 22 6695 Extn - 5230 | Mobile: +919833490598 | _www.mastek.com_




MASTEK LTD.
Mastek is in NASSCOM's 'India Top 20' Software Service Exporters List.
In the US, we're called MAJESCOMASTEK

~~
Opinions expressed in this e-mail are those of the individual and not 
that of Mastek Limited, unless specifically indicated to that effect. 
Mastek Limited does not accept any responsibility or liability for it. 
This e-mail and attachments (if any) transmitted with it are 
confidential and/or privileged and solely for the use of the intended 
person or entity to which it is addressed. Any review, 
re-transmission, dissemination or other use of or taking of any action 
in reliance upon this information by persons or entities other than 
the intended recipient is prohibited. This e-mail and its attachments 
have been scanned for the presence of computer viruses. It is the 
responsibility of the recipient to run the virus check on e-mails and 
attachments before opening them. If you have received this e-mail in 
error, kindly delete this e-mail from desktop and server.

~~



___
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 delete the rules in guvnor once they're modified and saved

2009-02-10 Thread Toni Rikkola

Hi,

After you have saved the rule you can only archive it. To permanently 
remove it you need to first archive and then go to 
Administration-Archive to delete it.


Toni Rikkola

Zhang Jing-A52198 wrote:


Hi All,

I import a drl file to the guvnor. Then I modify it and as soon as I 
click “save changes”, the “delete” button would disappear. So my 
question is how to delete the rules once they’re modified and saved?


Thanks,

Jing



___
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] Eclipse guvnor plugin issue

2009-02-05 Thread Toni Rikkola

Hi

Please do a Jira. Then we can take a better look at it and see if it 
needs to be fixed.


Thank you
Toni Rikkola

Steven Williams wrote:

Hi all,

I am using the snapshot version of the eclipse plugin from Feb 5. When 
I attempt to drag a file from the repository explorer into the 
Navigator view I get the following exception:


java.lang.Exception: Could not create directory C:\Documents and 
Settings\Administrator\workspace\.metadata\.plugins\org.guvnor.tools\623d8213:11f48a3ddff:-7fff
at 
org.guvnor.tools.views.RepositoryView.prepareFileTransfer(Unknown Source)

at org.guvnor.tools.views.RepositoryView.access$1(Unknown Source)
at org.guvnor.tools.views.RepositoryView$2.dragSetData(Unknown Source)
at org.eclipse.swt.dnd.DNDListener.handleEvent(DNDListener.java:54)
...

I am using Windows and can drag the file from a mapped webdav 
directory on my computer. I think the problem is that the filename 
contains the invalid character :


Should I raise a bug?

thanks
Steve


___
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] Guvnor Issues

2009-01-23 Thread Toni Rikkola

Hi

#1 The archive button archives the fact type or any other asset. After 
that you can delete or restore the asset from Administration - Archive.


#2 For this it would be good to open a Jira. Please include your locale 
information.


Toni

Herman Post wrote:


Thanks for responding.  I am evaluating Guvnor for use by 
non-programmers in my


organization.  A programmer can figure out how to work around issues, but

non-programmers become frustrated quickly, so I think this is important. 

 


Are the other two issues I mentioned irrelevant in your opinion?

 


Thanks,

 


Herm

 

 

*From:* rules-users-boun...@lists.jboss.org 
[mailto:rules-users-boun...@lists.jboss.org] *On Behalf Of *Edson Tirelli

*Sent:* Thursday, January 22, 2009 6:19 PM
*To:* Rules Users List
*Subject:* Re: [rules-users] Guvnor Issues

 



   Regarding #3, it is not a Guvnor issue. In fact, if you are 
declaring types in the DRL file directly, you will face the same 
limitation. Feel free to open the Jira for #3 against 
drools-core/drools-compiler. Can't promise I will be able to get to 
that any time soon, but it is something I think it is worth doing.


   []s
   Edson

2009/1/22 Herman Post herman.p...@imail.org 
mailto:herman.p...@imail.org


Hi,

 I've been working with the Model feature in Guvnor 5.M4 and have some 
questions:


 1.  Is there a way to delete a fact type once created?

 2.  When I declare a field as a Date it gets included as a 
java.lang.Date and the fact will not validate.


 3.  If I have created two facts, the one created first cannot 
reference the second one as the type of a field.  The second on can 
reference the first.  It would be nice to support this forward 
-referencing feature. 

 I'd be happy to enter any of these in Jira if they are not already 
present (couldn't find them).


 Thanks,

 Herm



___
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] Problem with (examples for )Guvnor M3 (mortgage, advertisement)

2009-01-12 Thread Toni Rikkola

Hi

There was a bug in M3 and M4. It jammed Guvnor when user was looking at 
asset lists. https://jira.jboss.org/jira/browse/GUVNOR-79 and 
https://jira.jboss.org/jira/browse/GUVNOR-103.


Should be fixed now.

Toni

psentosa wrote:

Hi Shahad,

no I haven't..but I'm sure they're aware of our mails complaining about this
problem...
I solved the problem by using Opera
haven't tried Chrome yet..

Regards
Paul


Shahad Ahmed wrote:
  

Hi Paul,
I'm seeing the same issues you reported with IE 7 and Firefox 3. However,
I
do get the Guvnor to work with the new Google Chrome browser.

Have you raised the Javascript error as a bug via the drools website
(JIRA)
so that the drools team are aware of the issue?

Regards
Shahad


On Tue, Dec 9, 2008 at 10:09 AM, Paul Sentosa psent...@yahoo.com wrote:



Hi Michal,
thanks for the reply I'm so waiting for..

yes, I did use firefox; then I also tried IE, still I get the same
problems.
I activated the error-report window, and I get this (please see the
attachment, 15KB) everytime I experience the problem.
It said:
There is eventually a problem which prevents the site to be displayed
correctly
Line: 125
Character: 29
Error: null is Null or not an Object
Code: 0
URL:
http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/(.letters
numbers).cache.html
which looks like a javascript problem.

This happens not only on the current version of jboss I used (4.2.2) but
also on the 4.2.3 which comes in the package standalone.
Would be nice if someone could give explanation on this

regards







--
*From:* Michal Bali michalb...@gmail.com
*To:* Rules Users List rules-users@lists.jboss.org
*Sent:* Tuesday, December 9, 2008 10:44:43 AM
*Subject:* Re: [rules-users] Problem with (examples for )Guvnor M3
(mortgage, advertisement)

Which browser are you using? I assume Firefox? If so can you try
different
one Opera, IE (maybe Safari?)
It doesn't work for me on Firefox but it works in Opera (BTW I haven't
done
anything with permissions)

On Mon, Dec 8, 2008 at 5:22 PM, psentosa psent...@yahoo.com wrote:

  

Dear all,

I'm testing Guvnor for the first time (M3, never tried the previous
versions) and try to run the mortgage example first.
In the example folder, there's a .txt file which describes how to run
it.
So I imported the repository and wanted to take a look at the rules.
When
I
clicked on the name of the category (from AssetView) or any asset (from
Package view), it displayed Please wait..loading data, which
unfortunately
didn't progress further. So I have to cancel it by clicking on the x to
get
back to the previous screen.
On the console there's the report
Checking access for...*name of the category* (for clicking on a
category)
and
INFO  [STDOUT] DEBUG 08-12 18:03:33,390
(ServiceImplementation.java:listAssets:883)  time for asset list
load:
0
(for clicking on an asset type from the Package view).

So I thought maybe I should defined the access right in the
Administration
page (this is also described in the .txt file); So I create a user
permission with admin right, shut down the server, set the property
enable
role-based-authorization to true, repack, re-run the server and try
again.
Still I experience the same problem.
For the other example Advertising I also experienced the same problem.

Several questions I have:
- Should I always define the acces right to be able to browse through
the
categories/asset? But apparently I still have problems although user
permissions are defined. Or maybe I progress in a wrong way to use the
Guvnor?
- In the example mortgage, I saw that the client has
drools-core-5.0.0.MR2
and mvel-2.0M2. Could it be the problem, that the example was created
using
GuvnorM2 so it didn't work for M3?

Unfortunately the documentation of M3 is for some part already
out-of-date.
Would be nice to have the most actual one :)

An additional info: I'm currently using Jboss 4.2.2

Many thanks for any reply!

regards
--
View this message in context:
http://www.nabble.com/Problem-with-%28examples-for-%29Guvnor-M3-%28mortgage%2C-advertisement%29-tp20899551p20899551.html
Sent from the drools - user 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 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] Error in setting up Guvnor in tomcat 6

2008-10-28 Thread Toni Rikkola

Hi,

I'm currently fixing problems with tomcat and Guvnor. I'll let you know 
if I can solve this.


Toni Rikkola

drools newbie wrote:

Hello,
I followed the instructions given in
http://www.jboss.org/community/docs/DOC-10130.  But getting following error.
Please someone help.

INFO: Deploying web application archive mydrools-guvnor.war
Oct 28, 2008 9:48:24 AM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Oct 28, 2008 9:48:24 AM org.apache.catalina.core.StandardContext start
SEVERE: Context [/mydrools-guvnor] startup failed due to previous errors
Oct 28, 2008 9:48:25 AM org.apache.catalina.loader.WebappClassLoader
loadClass
INFO: Illegal access: this web application instance has been stopped
already.  C
ould not load org.apache.xerces.impl.dtd.XMLNotationDecl.  The eventual
followin
g stack trace is caused by an error thrown for debugging purposes as well as
to
attempt to terminate the thread which caused the illegal access, and has no
func
tional impact.
java.lang.IllegalStateException
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
der.java:1273)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
der.java:1233)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at org.apache.xerces.impl.dtd.DTDGrammar.notationDecl(Unknown
Source)
at org.apache.xerces.impl.dtd.XMLDTDProcessor.notationDecl(Unknown
Sourc
e)
at org.apache.xerces.impl.XMLDTDScannerImpl.scanNotationDecl(Unknown
Sou
rce)
at org.apache.xerces.impl.XMLDTDScannerImpl.scanDecls(Unknown
Source)
at
org.apache.xerces.impl.XMLDTDScannerImpl.scanDTDExternalSubset(Unknow
n Source)

-
Oct 28, 2008 9:48:25 AM org.apache.catalina.startup.HostConfig
deployDirectory
SEVERE: Error deploying web application directory examples
java.lang.NoClassDefFoundError: org/apache/xerces/impl/dtd/XMLNotationDecl
at org.apache.xerces.impl.dtd.DTDGrammar.notationDecl(Unknown
Source)
at org.apache.xerces.impl.dtd.XMLDTDProcessor.notationDecl(Unknown
Sourc
e)
at org.apache.xerces.impl.XMLDTDScannerImpl.scanNotationDecl(Unknown
Sou
rce)
at org.apache.xerces.impl.XMLDTDScannerImpl.scanDecls(Unknown
Source)
at
org.apache.xerces.impl.XMLDTDScannerImpl.scanDTDExternalSubset(Unknow
n Source)
at
org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(
Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
known Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)


  


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