Re: [rules-users] the condition starts with - in DSL mapping

2011-06-24 Thread James Gu
I created an issue.

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

There are too much information in my repository, I am sorry I can not
attache a export.

Thanks,
James


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


Re: [rules-users] Drools' use of hashCode

2011-06-24 Thread Wolfgang Laun
This is the state of things in connection with hashCode, update and object
comparison:


   - There is a fact type A with a field b of class B and
   - patterns for A use constraints comparing b with == to some other
   object of type B and
   - B overrides hashCode using a field c of B and
   - this field is changed in an update of some object B.

In any situation like this, it is necessary to instruct the engine that any
fact of type A containing a reference to the changed fact B has changed.

In most real-world situation, this may not be possible. Then,

   - either avoid constraining on object references by replacing this with
   primary key field constraints,
   - or refrain from using c in hashCode.

-W


On 22 June 2011 13:58, M. H. hugues...@hotmail.com wrote:

 And yet the funny thing is it does affect the other fact:
 if you run this without the hashCode and equals method, it works fine, but
 if you run it with hashCode and equals overriden, the second rule won't be
 executed.
 You mentionned before the usual rules for hashCode and equals, what are
 they
 appart from equals=equal hashCodes? I don't understand why this works in a
 case and not in the other, so maybe I'm missing something here?

 Thanks,

 --
 View this message in context:
 http://drools.46999.n3.nabble.com/rules-users-Drools-use-of-hashCode-tp3090455p3095159.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 Rules!!!

2011-06-24 Thread Michael Anstis
Sorry, wrong link.

You do have the good fortune of being able to use 5.2.0.Final now though:
http://download.jboss.org/drools/release/5.2.0.Final/guvnor-distribution-5.2.0.Final.zip

The example is in the ZIP archive's folder
/guvnor-distribution-5.2.0.Final/examples/sources/src/main/java/org/drools/guvnor/examples.

On 24 June 2011 06:26, Sumeet Karawal sumeet.kara...@tcs.com wrote:

 I downloaded from the link, but I am not able to find the mortgages example
 there.

 Thanks  Regards,
 Sumeet Karawal



  From:   Michael Anstis michael.ans...@gmail.com

  To: Rules Users List rules-users@lists.jboss.org

  Date:   06/23/2011 03:19 PM

  Subject:Re: [rules-users] Guvnor Rules!!!

  Sent by:rules-users-boun...@lists.jboss.org






 Have you looked at the mortgages example under the examples folder in
 the guvnor-distribution;

 http://download.jboss.org/drools/release/5.2.0.CR1/drools-distribution-5.2.0.CR1.zip
 ?

 There is a similar example for 5.1, but TBH I'm not sure of the location in
 either the download or internet.

 2011/6/22 Sumeet Karawal sumeet.kara...@tcs.com

  Hi,

  I am not able to run Guvnor rules on eclipse. I have read the Knowledge
  Agent part from the user guide but not able to get through.

  I am doing the following steps:

I have created a Java class in eclipse and exported it as a .jar file.
Then I import it in Guvnor under the upload POJO Model.
I create some rules for it
Then I build the package and get the following URLs :

  URL for package documentation:



 http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/com.JBoss/LATEST/documentation.pdf
   (Embedded
  image moved
  to file:
  pic32197.gif)



  URL for package source:



 http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/com.JBoss/LATEST.drl
   (Embedded
  image moved
  to file:
  pic02151.gif)



  URL for package binary:



 http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/com.JBoss/LATEST
   (Embedded
  image moved
  to file:
  pic18827.gif)



  URL for running tests:



 http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/com.JBoss/LATEST/SCENARIOS
   (Embedded
  image moved
  to file:
  pic20956.gif)



  Change Set:



 http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/com.JBoss/LATEST/ChangeSet.xml
   (Embedded
  image moved
  to file:
  pic21205.gif)




  I have gone through use  of KnowledgeAgent in the user guide but not
  getting how to do it. I mean what code should I write to get the
  KnowledgeBase from these URLs.

  It would be really helpful if someone could guide me on this.


  Thanks  Regards,
  Sumeet Karawal
  Mailto: sumeet.kara...@tcs.com
  =-=-=
  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




 ___
 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 guided editor problem - add more options

2011-06-24 Thread marros
Hi Mike,

Ok so now I have downloaded guvnor-distribution-5.2.0.final.zip

Again I trashed everything I had set up and started again.

I extracted the jboss-as-distribution-6.0.0.final.zip to a folder called
c:\software\jboss on my pc.

I have also created environment variables for JAVA_HOME and JBOSS_HOME and
made sure they are included in the PATH statement (oout of interest I have
installed the JDK1.6.0_26 release)

I can then launch the AS from here (by running the run.bat file from the
\bin folder) and I am able to open a browser to the home page on
http://localhost:8080

I then extracted the guvnor-distribution-5.2.0.final.zip to a seperate
folder. Then went to the binaries folder and before copying I renamed
guvnor-5.2.0.Final-jboss-as-6.0.war file to just guvnor.war (The Guvnor
manual recommends this for a nicer URL) I then copied this file into
c:\software\jboss\jboss-6.0.0.final\server\default\deploy folder

Again I can see the AS trying to deploy the guvnor.war file. the first thing
that happens is an error stating Failed to add deployment:
vfs:///c:/software/jboss/jboss-6.0.0.fnal/server/default/deploy/guvnor.war:
org.jboss.deployers.spi.DeploymentException: Failed to mount archive:
/c/software/jboss/jboss-6.0.0.fnal/server/default/deploy/guvnor.war

I then get lthe following:

http://drools.46999.n3.nabble.com/file/n3103179/jbaserr.jpg 

I have followed the install instructions contained in the Guvnor Manual for
users  administrators for 5.2.0.Final (which was downloaded with the
distribution at the begginning of this message). I know am a complete newbie
and I am not really a programmer, but I need to be looking at Drools and and
am just trying to get it installed and running

-
--
Best Regards

Marros
--
View this message in context: 
http://drools.46999.n3.nabble.com/Guvnor-guided-editor-problem-add-more-options-tp3087495p3103179.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Search function of Guvnor limited to filename search?

2011-06-24 Thread style.x7
Thanks for the clarification, I'm evaluating using guvnor to store and search
rules versus using svn etc. I was expecting more from guvnor search since
underlying it's lucene. I do have use cases for full-text search etc. 

Other than creating a JIRA, any guide you can share on customizing guvnor
functionalities?

Thanks in advance.

--
View this message in context: 
http://drools.46999.n3.nabble.com/Search-function-of-Guvnor-limited-to-filename-search-tp3099182p3103233.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Drools 5.2.0.Final released

2011-06-24 Thread itchupe
Wow, that is excellent. I will check it out asap :)
It is a shame though, the Guided Editor had to go from eclipse.

Will the strategy be, that the business users (non-programmers) will use
guvnor? Any special plans in this area?
Will the guided editor there have all the properties and things as I would
programm a rule in the normal text-ruleeditor?

How should I set up an environment for non-programmers that they can work
absolutely independently?


Cheers.
marianna

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


Re: [rules-users] Drools 5.2.0.Final released

2011-06-24 Thread itchupe
Wow, that is excellent. I will check it out asap :)
It is a shame though, the Guided Editor had to go from eclipse.

Will the strategy be, that the business users (non-programmers) will use
guvnor? Any special plans in this area?
Will the guided editor there have all the properties and things as I would
programm a rule in the normal text-ruleeditor?

How should I set up an environment for non-programmers that they can work
absolutely independently?


Cheers.
marianna

--
View this message in context: 
http://drools.46999.n3.nabble.com/rules-users-Drools-5-2-0-Final-released-tp3101038p3103413.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] ruleflow and bpmn files issues with drools and guvnor 5.2 final

2011-06-24 Thread style.x7
Hi all,

I've tried drools 5.2 final version with much excitement but the default
create new drools project is already giving problems:

Issue 1. Exceptions when running default created .rf and .bpmn files. 
When I ran ProcessTest.java with .rf file, I get:
java.lang.NullPointerException
at
org.drools.compiler.PackageBuilder.addProcessFromXml(PackageBuilder.java:516)
at
org.drools.compiler.PackageBuilder.addKnowledgeResource(PackageBuilder.java:556)
at
org.drools.builder.impl.KnowledgeBuilderImpl.add(KnowledgeBuilderImpl.java:28)
at com.sample.ProcessTest.readKnowledgeBase(ProcessTest.java:36)
at com.sample.ProcessTest.main(ProcessTest.java:23)

When I ran ProcessTest.java with .bpmn file, I get:
lang.IllegalArgumentException: Unable to instantiate service for Class
'org.drools.compiler.BPMN2ProcessProvider'
at org.drools.util.ServiceRegistryImpl.get(ServiceRegistryImpl.java:161)
at
org.drools.compiler.BPMN2ProcessFactory.loadProvider(BPMN2ProcessFactory.java:29)
at
org.drools.compiler.BPMN2ProcessFactory.getBPMN2ProcessProvider(BPMN2ProcessFactory.java:21)
at
org.drools.compiler.BPMN2ProcessFactory.configurePackageBuilder(BPMN2ProcessFactory.java:12)
at
org.drools.compiler.PackageBuilder.addKnowledgeResource(PackageBuilder.java:559)
at
org.drools.builder.impl.KnowledgeBuilderImpl.add(KnowledgeBuilderImpl.java:28)
at com.sample.ProcessTest.readKnowledgeBase(ProcessTest.java:33)
at com.sample.ProcessTest.main(ProcessTest.java:20)
Caused by: java.lang.IllegalArgumentException: Unable to instantiate
'org.jbpm.bpmn2.BPMN2ProcessProviderImpl'
at
org.drools.util.ServiceRegistryImpl$ReflectionInstantiator.newInstance(ServiceRegistryImpl.java:210)
at
org.drools.util.ServiceRegistryImpl$ReflectionInstantiator.call(ServiceRegistryImpl.java:202)
at org.drools.util.ServiceRegistryImpl.get(ServiceRegistryImpl.java:159)
... 7 more
Caused by: java.lang.ClassNotFoundException:
org.jbpm.bpmn2.BPMN2ProcessProviderImpl
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at
org.drools.util.ServiceRegistryImpl$ReflectionInstantiator.newInstance(ServiceRegistryImpl.java:207)
... 9 more

Issue 2: Guvnor 5.2 final unable to display .rf and .bpmn files

No error message was given when guvnor is unable to display .rf files. The
popup shows blank diagrams.

For .bpmn files, guvnor with designer-1.0.0.052-jboss.war shows the oryx
editor with blank diagrams, error message:

SEVERE [JbpmProfileImpl] Could not find BPMNDI information
java.lang.IllegalArgumentException: Could not find BPMNDI information
at
com.intalio.bpmn2.impl.Bpmn2JsonMarshaller.marshallProcess(Bpmn2JsonMarshaller.java:347)
at
com.intalio.bpmn2.impl.Bpmn2JsonMarshaller.marshallDefinitions(Bpmn2JsonMarshaller.java:255)
at
com.intalio.bpmn2.impl.Bpmn2JsonMarshaller.marshall(Bpmn2JsonMarshaller.java:138)
at
com.intalio.web.profile.impl.JbpmProfileImpl$2.parseModel(JbpmProfileImpl.java:197)
at
com.intalio.web.repository.impl.UUIDBasedJbpmRepository.load(UUIDBasedJbpmRepository.java:38)
at
com.intalio.web.server.UUIDBasedRepositoryServlet.doGet(UUIDBasedRepositoryServlet.java:123)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
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
com.intalio.web.filter.impl.PluggableFilter.doFilter(PluggableFilter.java:75)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
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:235)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
at

Re: [rules-users] Search function of Guvnor limited to filename search?

2011-06-24 Thread Michael Anstis
Hi,

The code is all open source, so you can customise whatever you like!

There isn't much (read as any) configurable customisation around function.

We're more than happy to point you in the right direction to help you
achieve what you need (even more so if you can then contribute your work
back to the project).

What did you have in mind?

With kind regards,

Mike

On 24 June 2011 09:01, style.x7 style...@gmail.com wrote:

 Thanks for the clarification, I'm evaluating using guvnor to store and
 search
 rules versus using svn etc. I was expecting more from guvnor search since
 underlying it's lucene. I do have use cases for full-text search etc.

 Other than creating a JIRA, any guide you can share on customizing guvnor
 functionalities?

 Thanks in advance.

 --
 View this message in context:
 http://drools.46999.n3.nabble.com/Search-function-of-Guvnor-limited-to-filename-search-tp3099182p3103233.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 guided editor problem - add more options

2011-06-24 Thread Michael Anstis
Hi Marros,

Please confirm the following and I will conduct an install here to check:-

   - JBoss AS 6.0.0
   - JDK 1.6.0_26
   - Guvnor 5.2

Thanks,

Mike

On 24 June 2011 08:39, marros martin.ros...@vships.com wrote:

 Hi Mike,

 Ok so now I have downloaded guvnor-distribution-5.2.0.final.zip

 Again I trashed everything I had set up and started again.

 I extracted the jboss-as-distribution-6.0.0.final.zip to a folder called
 c:\software\jboss on my pc.

 I have also created environment variables for JAVA_HOME and JBOSS_HOME and
 made sure they are included in the PATH statement (oout of interest I have
 installed the JDK1.6.0_26 release)

 I can then launch the AS from here (by running the run.bat file from the
 \bin folder) and I am able to open a browser to the home page on
 http://localhost:8080

 I then extracted the guvnor-distribution-5.2.0.final.zip to a seperate
 folder. Then went to the binaries folder and before copying I renamed
 guvnor-5.2.0.Final-jboss-as-6.0.war file to just guvnor.war (The Guvnor
 manual recommends this for a nicer URL) I then copied this file into
 c:\software\jboss\jboss-6.0.0.final\server\default\deploy folder

 Again I can see the AS trying to deploy the guvnor.war file. the first
 thing
 that happens is an error stating Failed to add deployment:
 vfs:///c:/software/jboss/jboss-6.0.0.fnal/server/default/deploy/guvnor.war:
 org.jboss.deployers.spi.DeploymentException: Failed to mount archive:
 /c/software/jboss/jboss-6.0.0.fnal/server/default/deploy/guvnor.war

 I then get lthe following:

 http://drools.46999.n3.nabble.com/file/n3103179/jbaserr.jpg

 I have followed the install instructions contained in the Guvnor Manual for
 users  administrators for 5.2.0.Final (which was downloaded with the
 distribution at the begginning of this message). I know am a complete
 newbie
 and I am not really a programmer, but I need to be looking at Drools and
 and
 am just trying to get it installed and running

 -
 --
 Best Regards

 Marros
 --
 View this message in context:
 http://drools.46999.n3.nabble.com/Guvnor-guided-editor-problem-add-more-options-tp3087495p3103179.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 guided editor problem - add more options

2011-06-24 Thread marros
Hi Mike,

Yes can confirm:

JBoss AS 6.0.0
JDK 1.6.0_26
Guvnor 5.2

Many Thanks

-
--
Best Regards

Marros
--
View this message in context: 
http://drools.46999.n3.nabble.com/Guvnor-guided-editor-problem-add-more-options-tp3087495p3103675.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Guvnor guided editor problem - add more options

2011-06-24 Thread itchupe
Hi

I would be very interested to get an answer on the pencil working in guvnor
5.2.0.final question aswell. I have the same problem with drools 5.1.
which jira tells me what will be going on with guided editor for the next
releases?


cheers.

--
View this message in context: 
http://drools.46999.n3.nabble.com/Guvnor-guided-editor-problem-add-more-options-tp3087495p3103699.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Guvnor guided editor problem - add more options

2011-06-24 Thread eamongolian
Hi 

I have managed to replicate what Marros has found on the 5.2 Final release.
Running through the console logs, it looks like it may be related to the
following issue:

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

which was fixed on 25th May for the 5.3 snapshot. I've downloaded the latest
5.3 snapshot as suggested in that post and it deploys correctly and runs in
the same JBoss installation that was failing before. 

I wonder if the change wasn't rolled back into the 5.2 release?

Cheers

Eamon Golian



--
View this message in context: 
http://drools.46999.n3.nabble.com/Guvnor-guided-editor-problem-add-more-options-tp3087495p3103726.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Building

2011-06-24 Thread Michael Anstis
1. Just use KnowledgeBuilder and add the individual DRLs one at a time.

2. KnowledgeBuilder's getKnowledgePackages returns a collection of
KnowledgePackage's that contain getRules.

2011/6/23 హరీష్ చౌదరి కూకట్ల harish.kuka...@gmail.com

 Hello EveryOne,
I am new to drools and I have couple of questions.

 1. How to build group of .drl files as a package and load it into the
 session.

 2. Is there a way to see what rules are loaded into the session
 programatically

 Thank you very much,
 Harish Kukatla.

 ___
 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] Reuse of rule

2011-06-24 Thread itchupe
is there a possibility to extend another rule with guided editor?
is there a possibility how the parent rule will be executed entirely?
conditions and actions?

kind regards.

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


Re: [rules-users] Guvnor guided editor problem - add more options

2011-06-24 Thread jarno niemelä
Hello.

I can account for me and Pekka (capeja).

We were trying to get Guvnor Standalone 5.1 in Windows 7 and Firefox 4.01

Results:

Jarno: Got the pen icon and was able to enter formula

Pekka: Did not get the pen icon even as we did everything the same way

We will try again with Guvnor 5.2 as it is not released.

Jarno

2011/6/22 Michael Anstis michael.ans...@gmail.com:
 I believe we have managed to account for the missing pencil icon.

 AFAIK, Marros is experiencing difficulties installing Guvnor 5.1 and Jarno
 reports being able to replicate the problem with Guvnor standalone 5.1
 (although states they get the pen icon so I'm not clear on the actual
 problem).

 One by one, please advise if you've been able to install Guvnor 5.1 and
 whether you get the pen icon and can select Formulae.

 Thanks,

 2011/6/22 jarno niemelä jar...@iki.fi

 I have managed to reproduce the problem with drools guvnor standalone 5.1.
 Or actually i get the pen icon on my laptop while Pekka does not.

 Same windows 7 same FireFox 4

 On Jun 21, 2011 6:14 PM, Michael Anstis michael.ans...@gmail.com
 wrote:
  lol - glad I could help ;)
 
  java.util.zip.Zipexception: invalid block type sounds like the WAR
  file is
  somehow corrupt.
 
  Where did you get it from (and can you re-try?). Send me the link (and
  what
  AS you're using) and I'll try here too
 
  Cheers,
 
  Mike
 
  On 21 June 2011 13:07, marros martin.ros...@vships.com wrote:
 
  Hi Mike,
 
  Thanks for your advice. I have downloaded drools-5.1.1-guvnor.war and
  then
  copied it to the Jboss Deploy directory
  On the JBoss server screen I saw it attempting to deploy but then it
  failed
  with
 
  Deplyment Exception: invalid block type; - nested throwable:
  (java.util.zip.Zipexception: invalid block type) at
  org.jboss.web.AbstractWebContainer.init(AbstractWebContainer.java:374)
 
 
  Now I cannot restart Drools
 
  -
  --
  Best Regards
 
  Marros
  --
  View this message in context:
 
  http://drools.46999.n3.nabble.com/Guvnor-guided-editor-problem-add-more-options-tp3087495p3090362.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


[rules-users] newbie question: forming event pairs

2011-06-24 Thread Wouter De Borger
Hi all,

I'm new to drools and I have the following problem:

A stream of Start and Stop events comes into the engine.
The start and stop events should be paired and transformed into ranged
events.
Each start event should be paired to the first next stop event that is not
part of a pair already, with precedence for the last start event that came
in.

The problem is comparable to what a parser would do to match nested braces.

A sequence of the form

1: Start
2: Start
3: Start
4: End
5: Start
6: End
7: End
8: End

should form the following pairs

3-4
5-6
2-7
1-8

I checked the documentation but I still have two problems:

   1. how can I find the next stop event (or previous start)
   2. how can I make sure the pairs are formed innermost first?


Thanks in advance,
Wouter
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] newbie question: forming event pairs

2011-06-24 Thread Wolfgang Laun
Assuming you want to keep Start end Stop events (you could retract them)
and also assuming that times aren't equal (or else you don't care which one
matches) you can do:

rule match
when
$start: Start( matched == false, $startTime: time )
$stop:  Stop( matched == false, $stopTime: time  $startTime )
not Stop( matched == false, time  $stopTime   $startTime )
not Start( matched == false, time  $startTime   $stopTime )
then
System.out.println( $start.getId() +  -  + $stop.getId() );
modify( $start ){ setMatched( true ) }
modify( $stop  ){ setMatched( true ) }
end

-W

2011/6/24 Wouter De Borger w.debor...@gmail.com:
 Hi all,

 I'm new to drools and I have the following problem:

 A stream of Start and Stop events comes into the engine.
 The start and stop events should be paired and transformed into ranged
 events.
 Each start event should be paired to the first next stop event that is not
 part of a pair already, with precedence for the last start event that came
 in.

 The problem is comparable to what a parser would do to match nested braces.

 A sequence of the form

 1: Start
 2: Start
 3: Start
 4: End
 5: Start
 6: End
 7: End
 8: End

 should form the following pairs

 3-4
 5-6
 2-7
 1-8

 I checked the documentation but I still have two problems:

 how can I find the next stop event (or previous start)
 how can I make sure the pairs are formed innermost first?

 Thanks in advance,
 Wouter

 ___
 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 guided editor problem - add more options

2011-06-24 Thread Michael Anstis
Can those affected please try guvnor-5.2 on tomcat?

As Eamon points out there appears to be a problem with guvnor-5.2 on JBoss
AS 6 due to https://issues.jboss.org/browse/GUVNOR-1341

I see a new JIRA https://issues.jboss.org/browse/GUVNOR-1497 has been
created for guvnor-5.2 on JBoss AS 6.

Thanks,

Mike

On 24 June 2011 14:48, jarno niemelä jar...@iki.fi wrote:

 Hello.

 I can account for me and Pekka (capeja).

 We were trying to get Guvnor Standalone 5.1 in Windows 7 and Firefox 4.01

 Results:

 Jarno: Got the pen icon and was able to enter formula

 Pekka: Did not get the pen icon even as we did everything the same way

 We will try again with Guvnor 5.2 as it is not released.

 Jarno

 2011/6/22 Michael Anstis michael.ans...@gmail.com:
  I believe we have managed to account for the missing pencil icon.
 
  AFAIK, Marros is experiencing difficulties installing Guvnor 5.1 and
 Jarno
  reports being able to replicate the problem with Guvnor standalone 5.1
  (although states they get the pen icon so I'm not clear on the actual
  problem).
 
  One by one, please advise if you've been able to install Guvnor 5.1 and
  whether you get the pen icon and can select Formulae.
 
  Thanks,
 
  2011/6/22 jarno niemelä jar...@iki.fi
 
  I have managed to reproduce the problem with drools guvnor standalone
 5.1.
  Or actually i get the pen icon on my laptop while Pekka does not.
 
  Same windows 7 same FireFox 4
 
  On Jun 21, 2011 6:14 PM, Michael Anstis michael.ans...@gmail.com
  wrote:
   lol - glad I could help ;)
  
   java.util.zip.Zipexception: invalid block type sounds like the WAR
   file is
   somehow corrupt.
  
   Where did you get it from (and can you re-try?). Send me the link (and
   what
   AS you're using) and I'll try here too
  
   Cheers,
  
   Mike
  
   On 21 June 2011 13:07, marros martin.ros...@vships.com wrote:
  
   Hi Mike,
  
   Thanks for your advice. I have downloaded drools-5.1.1-guvnor.war and
   then
   copied it to the Jboss Deploy directory
   On the JBoss server screen I saw it attempting to deploy but then it
   failed
   with
  
   Deplyment Exception: invalid block type; - nested throwable:
   (java.util.zip.Zipexception: invalid block type) at
  
 org.jboss.web.AbstractWebContainer.init(AbstractWebContainer.java:374)
  
  
   Now I cannot restart Drools
  
   -
   --
   Best Regards
  
   Marros
   --
   View this message in context:
  
  
 http://drools.46999.n3.nabble.com/Guvnor-guided-editor-problem-add-more-options-tp3087495p3090362.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

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


Re: [rules-users] Reuse of rule

2011-06-24 Thread Michael Anstis
On 24 June 2011 13:44, itchupe itch...@gmail.com wrote:

 is there a possibility to extend another rule with guided editor?


Click on a package in the Knowledge Bases part of the Explorer tree-view;
then the Edit tab and Category Rules (with a pen icon next to it).


 is there a possibility how the parent rule will be executed entirely?
 conditions and actions?

 kind regards.

 --
 View this message in context:
 http://drools.46999.n3.nabble.com/rules-users-Reuse-of-rule-tp3001698p3103966.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