Re: [rules-users] Drools Planner: Vehicle routing problems

2014-06-11 Thread Neb
Thanks Geoffrey

I have managed to get it working by manually changing some values in the
latitude and longitude elements in the xml file. 

What I am struggling with is generating an xml file with my own data in each
element.

do you have any tips on how to create this xml to drive the vehicle routing
solution. I have tried in c# but I cant get the nodes and attributes in the
right order.

Many thanks



--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-Planner-Vehicle-routing-problems-tp3772797p4029962.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] Error while importing repository from Guvnor 5.1.1 to 5.3.3.Final

2014-06-11 Thread LaKhI ReDdY!!!!!!!!!!!
Hi,

I am trying to import the whole repository from 5.1.1 to 5.3.3.Final
version.I am getting the below attached error while importing.Please find
the attached file for error details.

We have added new functionality(Rule request) in 5.1.1 and using it for
quite some. Now we want to migrate to 5.3.3.Final and we want to drop the
additional functionality(Rule Request) which we have added earlier in 5.1.1
version.

The repository which we have currently contains the Rule request details
also, does this causes problem in importing to Guvnor 5.3.3.Final?


Regards,
Lakshmi Reddy
Clearing rules repository
ERROR 11-06 12:09:39,412 
(RulesRepository.java:importRulesRepositoryFromStream:1323) no matching 
property definition found for {http://www.jboss.o
rg/drools-repository/1.0}description
javax.jcr.nodetype.ConstraintViolationException: no matching property 
definition found for {http://www.jboss.org/drools-repository/1.0}description
at 
org.apache.jackrabbit.core.nodetype.EffectiveNodeType.getApplicablePropertyDef(EffectiveNodeType.java:822)
at 
org.apache.jackrabbit.core.xml.PropInfo.getApplicablePropertyDef(PropInfo.java:127)
at 
org.apache.jackrabbit.core.xml.WorkspaceImporter.processProperty(WorkspaceImporter.java:415)
at 
org.apache.jackrabbit.core.xml.WorkspaceImporter.startNode(WorkspaceImporter.java:629)
at 
org.apache.jackrabbit.core.xml.SysViewImportHandler.processNode(SysViewImportHandler.java:94)
at 
org.apache.jackrabbit.core.xml.SysViewImportHandler.startElement(SysViewImportHandler.java:134)
at 
org.apache.jackrabbit.core.xml.ImportHandler.startElement(ImportHandler.java:169)
at 
org.apache.jackrabbit.commons.xml.DefaultContentHandler.startElement(DefaultContentHandler.java:161)
at 
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:501)
at 
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:400)
at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2756)

at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
at 
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)
at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511)
at 
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808)
at 
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
at 
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)
at 
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
at 
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
at weblogic.xml.jaxp.WebLogicXMLReader.parse(WebLogicXMLReader.java:133)
at weblogic.xml.jaxp.RegistryXMLReader.parse(RegistryXMLReader.java:173)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
at 
org.apache.jackrabbit.commons.xml.ParsingContentHandler.parse(ParsingContentHandler.java:62)
at 
org.apache.jackrabbit.commons.AbstractWorkspace.importXML(AbstractWorkspace.java:54)
at 
org.drools.repository.RulesRepository.importRulesRepositoryFromStream(RulesRepository.java:1309)
at 
org.drools.guvnor.server.files.FileManagerUtils.importRulesRepository(FileManagerUtils.java:260)
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 

Re: [rules-users] Error while importing repository from Guvnor 5.1.1 to 5.3.3.Final

2014-06-11 Thread Michael Anstis
You're probably going to struggle finding support for migrating Guvnor 5.1
to 5.3 in the community.

If you have a support subscription with Red Hat you can probably request
assistance through your customer support network.

See http://blog.athico.com/2011/04/drools-jbpm-community-versus-product.html


On 11 June 2014 08:56, LaKhI ReDdY!!! reddy.laks...@gmail.com
wrote:

 Hi,

 I am trying to import the whole repository from 5.1.1 to 5.3.3.Final
 version.I am getting the below attached error while importing.Please find
 the attached file for error details.

 We have added new functionality(Rule request) in 5.1.1 and using it for
 quite some. Now we want to migrate to 5.3.3.Final and we want to drop the
 additional functionality(Rule Request) which we have added earlier in 5.1.1
 version.

 The repository which we have currently contains the Rule request details
 also, does this causes problem in importing to Guvnor 5.3.3.Final?


 Regards,
 Lakshmi Reddy


 ___
 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 can we make the ‘over window:time’ parameter being configurable?

2014-06-11 Thread Matteo Mortari
Hi,
I'm quite intrigued by this question also myself, I would like to know more
about what you mean by configurable ?

For instance you can have the window 'declared'

declare window SensorReading30s
SensorReading() over window:time(30s) from entry-point DEFAULT
end

and also use this custom window name in the accumulate rule.

Do you mean by configurable , known at runtime and varying?

A solution I can think of in that case, a specific rule with the
housekeeping style; but I'm quite worried about performance issues may
arise.

Just my 2c, hope maybe helps?


On Tue, Jun 10, 2014 at 4:18 AM, moonbeam jplabe...@magenta.ca wrote:

 How can we make the ‘over window:time’ parameter being configurable?

 Something similar to the following rule (that does not compile at all).
  See
 the $windowTime variable.


 declare TemperatureThreshold
 windowTime : String = 30s
 max : long = 70
 end

 declare SensorReading
 @role( event )
 temperature : String = 40
 end

 rule Sound the alarm in case temperature rises above threshold
 when
TemperatureThreshold( $max : max, $windowTime : windowTime )
Number( doubleValue  $max ) from accumulate(
SensorReading( $temp : temperature ) over window:time( $windowTime ),
average( $temp ) )
 then
// sound the alarm
 end





 --
 View this message in context:
 http://drools.46999.n3.nabble.com/How-can-we-make-the-over-window-time-parameter-being-configurable-tp4029932.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] Adding eval on rule cause it to run in infinite loop

2014-06-11 Thread brachi
for this Drools Fact Type:

/*
declare DvFacts0
@propertyReactive
IsNUMERIC: Double
condIsNUMERIC: Double
end*/

I have this rule:

/*rule 1
salience -1
agenda-group agenda1
when
$condIsNUMERIC: DvFacts0(eval(condIsNUMERIC == null ) ) 
$conclusion: DvFacts0( )
then
modify($conclusion){setIsNUMERIC(1.0)};
end*/

the rule hit just one time without the eval clause, adding the eval cause
this rule to run in infinite loop.
have an idea?
put attention that I add  @propertyReactive on the DVFacts0 to avoid this.



--
View this message in context: 
http://drools.46999.n3.nabble.com/Adding-eval-on-rule-cause-it-to-run-in-infinite-loop-tp4029966.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] Memory leak when deploying to Maven repository?

2014-06-11 Thread Sandjaja, Dominik
Hello,

our scenario is like this:
From our customer, we get an Excel file which contains something rule-like 
which we convert into actual Drools rule strings. Those, we want to deploy in 
our local Maven repository (the one being used by Drools/KIE/Maven) as an 
actual artifact. This allows us later, to create new rules with KIE-WB, which 
are then deployed into the same repository, but with a higher artifact version. 
The actual application can then initially, when it doesn't have a connection to 
KIE-WB, use the rules created from the Excel sheet. In a second step, it can 
later get a more current rule artifact from the KIE-WB repository.

This is why we create an actual artifact out of the Excel sheet. That process 
takes a while, so we do it in the startup listener.

As far as I understand it and as far as I could see it on the filesystem, when 
I build a KieModule programmatically, it is not persisted anywhere and it is 
lost on restart of the system. That is why I wanted to explicitly persist it 
with the Aether facilities, as depicted in my previous post. If I do not do 
that and if I then check at startup if the artifact version does exist, I get 
back a false and it is created again - which takes quite some time. This is 
the reason why I want to store my created artifact in the local, persistent 
repository.

Am I getting something wrong? Is the artifact already stored somewhere?

I hope my intentions are a bit clearer now ...

Thanks in advance!
Dominik

-Ursprüngliche Nachricht-
Von: rules-users-boun...@lists.jboss.org 
[mailto:rules-users-boun...@lists.jboss.org] Im Auftrag von Mario Fusco
Gesendet: Dienstag, 10. Juni 2014 17:06
An: rules-users@lists.jboss.org
Betreff: Re: [rules-users] Memory leak when deploying to Maven repository?

Hi Dominik,

I'm honestly not understanding why you're creating a kieModule and most 
important why you're deploying it on maven in a ServletContextListener, but I 
am guessing you're doing this only to demonstrate the problem. Also be aware 
that for doing so you're using some drools internal API and these API aren't 
guaranteed to be stable.

However every time you build a kieModule or you load it from a maven repo, it 
is stored in the KieRepository. If you need to remove it from there you can do 
this explicitly by using the KieRepository.removeKieModule(ReleaseId)
method.

I hope this helps,
Mario



--
View this message in context: 
http://drools.46999.n3.nabble.com/rules-users-Memory-leak-when-deploying-to-Maven-repository-tp4029950p4029955.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

…
mit freundlichen Grüßen / kind regards
Dominik Sandjaja
Fon: +49 (0) 203 60878 183
Fax: +49 (0) 203 60878 222
e-mail: dominik.sandj...@it-motive.de

it-motive AG
Zum Walkmüller 6
47269 Duisburg
i...@it-motive.de
http://www.it-motive.de
……
Vorsitzender des Aufsichtsrats: Dr.-Ing. Jürgen Sturm
Vorstand: Horst-Dieter Deelmann (Vors.),  Matthias Heming, Christoph Tim Klose
HRB 9207, Amtsgericht Duisburg

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

Re: [rules-users] Adding eval on rule cause it to run in infinite loop

2014-06-11 Thread Chidambaran Subramanian
Add

  no-loop true

on the line after the rule directive.



rule 1
no-loop true


Regards
Chiddu




On Wed, Jun 11, 2014 at 2:05 PM, brachi brach...@sapiens.com wrote:

 for this Drools Fact Type:

 /*
 declare DvFacts0
 @propertyReactive
 IsNUMERIC: Double
 condIsNUMERIC: Double
 end*/

 I have this rule:

 /*rule 1



 salience -1
 agenda-group agenda1
 when
 $condIsNUMERIC: DvFacts0(eval(condIsNUMERIC == null ) )
 $conclusion: DvFacts0( )
 then
 modify($conclusion){setIsNUMERIC(1.0)};
 end*/

 the rule hit just one time without the eval clause, adding the eval cause
 this rule to run in infinite loop.
 have an idea?
 put attention that I add  @propertyReactive on the DVFacts0 to avoid this.



 --
 View this message in context:
 http://drools.46999.n3.nabble.com/Adding-eval-on-rule-cause-it-to-run-in-infinite-loop-tp4029966.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] How can we make the 'over window:time' parameter being configurable?

2014-06-11 Thread Wolfgang Laun
It requires a little work (and the timestamp should be an event attribute) to
write rules to select facts being in a dynamic window, but it can be done.

-W


On 11/06/2014, Matteo Mortari matteo.mort...@gmail.com wrote:
 Hi,
 I'm quite intrigued by this question also myself, I would like to know more
 about what you mean by configurable ?

 For instance you can have the window 'declared'

 declare window SensorReading30s
 SensorReading() over window:time(30s) from entry-point DEFAULT
 end

 and also use this custom window name in the accumulate rule.

 Do you mean by configurable , known at runtime and varying?

 A solution I can think of in that case, a specific rule with the
 housekeeping style; but I'm quite worried about performance issues may
 arise.

 Just my 2c, hope maybe helps?


 On Tue, Jun 10, 2014 at 4:18 AM, moonbeam jplabe...@magenta.ca wrote:

 How can we make the 'over window:time' parameter being configurable?

 Something similar to the following rule (that does not compile at all).
  See
 the $windowTime variable.


 declare TemperatureThreshold
 windowTime : String = 30s
 max : long = 70
 end

 declare SensorReading
 @role( event )
 temperature : String = 40
 end

 rule Sound the alarm in case temperature rises above threshold
 when
TemperatureThreshold( $max : max, $windowTime : windowTime )
Number( doubleValue  $max ) from accumulate(
SensorReading( $temp : temperature ) over window:time( $windowTime ),
average( $temp ) )
 then
// sound the alarm
 end





 --
 View this message in context:
 http://drools.46999.n3.nabble.com/How-can-we-make-the-over-window-time-parameter-being-configurable-tp4029932.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] Adding eval on rule cause it to run in infinite loop

2014-06-11 Thread Wolfgang Laun
Wrapping a constraint into eval (for which there's absolutely no need)
hides the visibility of the attribute condIsNUMERIC to the observer that
would avoid the reactivation.

-W

On 11/06/2014, brachi brach...@sapiens.com wrote:
 for this Drools Fact Type:

 /*
 declare DvFacts0
 @propertyReactive
 IsNUMERIC: Double
 condIsNUMERIC: Double
 end*/

 I have this rule:

 /*rule 1
 salience -1
 agenda-group agenda1
 when
   $condIsNUMERIC: DvFacts0(eval(condIsNUMERIC == null ) )
   $conclusion: DvFacts0( )
 then
   modify($conclusion){setIsNUMERIC(1.0)};
 end*/

 the rule hit just one time without the eval clause, adding the eval cause
 this rule to run in infinite loop.
 have an idea?
 put attention that I add  @propertyReactive on the DVFacts0 to avoid this.



 --
 View this message in context:
 http://drools.46999.n3.nabble.com/Adding-eval-on-rule-cause-it-to-run-in-infinite-loop-tp4029966.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] Adding eval on rule cause it to run in infinite loop

2014-06-11 Thread brachi
so, will no-loop help?
is eval also override this attribute?




--
View this message in context: 
http://drools.46999.n3.nabble.com/Adding-eval-on-rule-cause-it-to-run-in-infinite-loop-tp4029966p4029971.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-PermissionDeniedException

2014-06-11 Thread sravan k
Guys , please respond to my query !!

---Regards,Sravan.


From: sravan...@outlook.com
To: rules-users@lists.jboss.org
Subject: Drools-PermissionDeniedException
Date: Wed, 11 Jun 2014 00:28:06 +0530




Hi All ,
Does any one have idea on this below error ?
org.drools.task.service.PermissionDeniedException: User '[User:'XYZ']' was 
unable to execution operation 'Complete' on task id 3394226 due to no 'current 
status' matchines
we are facing this un-known exception and it is impacting our work very badly 
:( . Please give me some idea to resolve this error .

---Regards,Sravan.

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

[rules-users] Drools6 VFS Clustering what to mention in VFS-REPO

2014-06-11 Thread Zahid Ahmed
Hi,

I need to know, what the vfs-repo in below command refers to ? Is it referring 
to .niogit

helix-admin.bat --zkSvr localhost:2199 --addResource kie-cluster vfs-repo 1 
LeaderStandby AUTO_REBALANCE


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

Re: [rules-users] Drools Workbench - VFS Repository Clustering - Workbench Assets Not synched

2014-06-11 Thread Zahid Ahmed
Hi,

Getting following error in console of server B when making any change in 
Workbench server A

14:44:19,780 ERROR [org.apache.helix.messaging.handling.HelixTask] 
(pool-18-thread-21) Exception while executing a message. 
java.lang.NullPointerException msgId: 939154ed-eedb-493f-a803-83883764276a 
type: USER_DEFINE_MSG: java.lang.NullPointerException
at 
org.uberfire.metadata.io.IOServiceIndexedImpl.setupWatchService(IOServiceIndexedImpl.java:168)
 [uberfire-metadata-commons-io-0.3.1.Final.jar:0.3.1.Final]
at 
org.uberfire.metadata.io.IOServiceIndexedImpl.getFileSystem(IOServiceIndexedImpl.java:126)
 [uberfire-metadata-commons-io-0.3.1.Final.jar:0.3.1.Final]
at 
org.uberfire.io.impl.cluster.IOServiceClusterImpl$SyncFileSystemMessageHandler.handleMessage(IOServiceClusterImpl.java:919)
 [uberfire-io-0.3.1.Final.jar:0.3.1.Final]
at 
org.uberfire.io.impl.cluster.helix.ClusterServiceHelix$MessageHandlerResolverWrapper$1$1.handleMessage(ClusterServiceHelix.java:289)
 [uberfire-io-0.3.1.Final.jar:0.3.1.Final]
at 
org.apache.helix.messaging.handling.HelixTask.call(HelixTask.java:93) 
[helix-core-0.6.2-incubating.jar:0.6.2-incubating]
at 
org.apache.helix.messaging.handling.HelixTask.call(HelixTask.java:50) 
[helix-core-0.6.2-incubating.jar:0.6.2-incubating]
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) 
[rt.jar:1.7.0_25]
at java.util.concurrent.FutureTask.run(FutureTask.java:166) 
[rt.jar:1.7.0_25]
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) 
[rt.jar:1.7.0_25]
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) 
[rt.jar:1.7.0_25]
at java.lang.Thread.run(Thread.java:724) [rt.jar:1.7.0_25]

14:44:20,506 ERROR [org.apache.helix.messaging.handling.HelixTask] 
(pool-18-thread-21) Message execution failed. msgId: 
939154ed-eedb-493f-a803-83883764276a, errorMsg: null
14:44:20,985 INFO  [org.apache.helix.messaging.handling.HelixTaskExecutor] 
(pool-18-thread-21) message finished: 939154ed-eedb-493f-a803-83883764276a, 
took 1260
14:44:20,995 INFO  [org.apache.helix.manager.zk.CallbackHandler] 
(ZkClient-EventThread-117-localhost:2199) 117 START:INVOKE 
/brms-cluster/INSTANCES/nodeTwo_22/MESSAGES 
listener:org.apache.helix.messaging.handling.HelixTaskExecutor

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

Re: [rules-users] Workbench and GIT Repo High Availability

2014-06-11 Thread Zahid Ahmed
Hi Alexandre,

Thanks for your response. I am facing an issue in clustering, following the 
Drools guide. That I have posted in the following thread. Kindly have a look at 
it and let me know if I am doing/missing something.

http://drools.46999.n3.nabble.com/rules-users-Drools-Workbench-VFS-Repository-Clustering-Workbench-Assets-Not-synched-td4029960.html
 

Regards, 
Zahid Ahmed

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


Re: [rules-users] Adding eval on rule cause it to run in infinite loop

2014-06-11 Thread Davide Sottara
The whole point of @propertyReactive is to avoid no-loop where possible.
What Wolfgang was trying to say is that there is no need to use the eval:
just write
DvFacts0( condIsNUMERIC == null )
and the @propertyReactivity will work
Davide

On 06/11/2014 10:40 AM, brachi wrote:
 so, will no-loop help?
 is eval also override this attribute?




 --
 View this message in context: 
 http://drools.46999.n3.nabble.com/Adding-eval-on-rule-cause-it-to-run-in-infinite-loop-tp4029966p4029971.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] NullPointerException at org.drools.compiler.kie.builder.impl.KieContainerImpl.updateToVersion

2014-06-11 Thread tia
I tried with your code, there is no error but my new rule is not taken in
account 
I surely missed something and I'm looking at it.
Thanks for your reply.



--
View this message in context: 
http://drools.46999.n3.nabble.com/NullPointerException-at-org-drools-compiler-kie-builder-impl-KieContainerImpl-updateToVersion-tp4029894p4029978.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] Adding eval on rule cause it to run in infinite loop

2014-06-11 Thread brachi
I need the eval. 
I have some rules that doesn't hit correctly, just if I put eval around the
condition.
but eval makes the rules to run in an infinite loop.




--
View this message in context: 
http://drools.46999.n3.nabble.com/Adding-eval-on-rule-cause-it-to-run-in-infinite-loop-tp4029966p4029979.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] Adding eval on rule cause it to run in infinite loop

2014-06-11 Thread Davide Sottara
Could you please show the conditions for which you need the eval?
And which version are you using? As far as I know, eval is rewritten and
removed internally in latest versions, so there shouldn't be a difference.


On 06/11/2014 12:34 PM, brachi wrote:
 I need the eval. 
 I have some rules that doesn't hit correctly, just if I put eval around the
 condition.
 but eval makes the rules to run in an infinite loop.




 --
 View this message in context: 
 http://drools.46999.n3.nabble.com/Adding-eval-on-rule-cause-it-to-run-in-infinite-loop-tp4029966p4029979.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] Adding eval on rule cause it to run in infinite loop

2014-06-11 Thread Chidambaran Subramanian
What is the issue in using the no-loop directive?

Regards
Chiddu


On Wed, Jun 11, 2014 at 5:09 PM, Davide Sottara dso...@gmail.com wrote:

 Could you please show the conditions for which you need the eval?
 And which version are you using? As far as I know, eval is rewritten and
 removed internally in latest versions, so there shouldn't be a difference.


 On 06/11/2014 12:34 PM, brachi wrote:
  I need the eval.
  I have some rules that doesn't hit correctly, just if I put eval around
 the
  condition.
  but eval makes the rules to run in an infinite loop.
 
 
 
 
  --
  View this message in context:
 http://drools.46999.n3.nabble.com/Adding-eval-on-rule-cause-it-to-run-in-infinite-loop-tp4029966p4029979.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] How can we make the ‘over window:time’ parameter being configurable?

2014-06-11 Thread moonbeam
By 'configurable', I mean 'user defined' instead of 'programmer defined'.  I
know, I can write (and it will work):

rule Sound the alarm in case temperature rises above threshold 
when 
   TemperatureThreshold( $max : max ) 
   Number( doubleValue  $max ) from accumulate( 
   SensorReading( $temp : temperature ) over window:time( 30s ), 
   average( $temp ) ) 
then 
   // sound the alarm 
End

In this manner, the threshold ($max) is ‘user defined’.  Just need to inject
a TemperatureThreshold fact with user’s preferred 'max' value.
But the 'window:time' is hardcoded forever.

I would prefer injecting TemperatureThreshold fact containing a second
parameter (windowTime) that could be decide at 'inject time'.  That gives a
rule similar to the one I had posted originally.
But, unfortunately this way, the rule does not compile at all. Passing a
variable (like $windowTime) to 'window:time' does not seems to be syntax
acceptable.




--
View this message in context: 
http://drools.46999.n3.nabble.com/How-can-we-make-the-over-window-time-parameter-being-configurable-tp4029932p4029982.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] Adding eval on rule cause it to run in infinite loop

2014-06-11 Thread Wolfgang Laun
On 11/06/2014, Chidambaran Subramanian chi...@gmail.com wrote:
 What is the issue in using the no-loop directive?

Expert manual, Subsection Fine grained property change listeners

-W


 Regards
 Chiddu


 On Wed, Jun 11, 2014 at 5:09 PM, Davide Sottara dso...@gmail.com wrote:

 Could you please show the conditions for which you need the eval?
 And which version are you using? As far as I know, eval is rewritten and
 removed internally in latest versions, so there shouldn't be a
 difference.


 On 06/11/2014 12:34 PM, brachi wrote:
  I need the eval.
  I have some rules that doesn't hit correctly, just if I put eval around
 the
  condition.
  but eval makes the rules to run in an infinite loop.
 
 
 
 
  --
  View this message in context:
 http://drools.46999.n3.nabble.com/Adding-eval-on-rule-cause-it-to-run-in-infinite-loop-tp4029966p4029979.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] Adding eval on rule cause it to run in infinite loop

2014-06-11 Thread brachi
example of rule that doesn't work without eval:

/*rule 1
salience -1
agenda-group agenda1
when
$conclusion: supportFT()
then
if($conclusion.getValue()==null){
modify($conclusion) { setValue(new ArrayList())};
}
$conclusion.getValue().add(supportedValue);
modify($conclusion) { setValue($conclusion.getValue()) };
 end


rule 2
salience -2
agenda-group agenda2
when
supportFT(Operators.containsAny(value,new
String[]{supportedValue,otherValue}))  
$conclusion: ConclusionFt()
then
modify($conclusion){setValue(success)};
end*/

rule 2 doesn't hit, works only with eval in rule 2.
in this example I can add eval, because the Fact Types model is different,
so the rule doesn't reevaluated.
because I had this case, I decided to add eval for all constraints, but
unfortunately I had an infinite loop. 




--
View this message in context: 
http://drools.46999.n3.nabble.com/Adding-eval-on-rule-cause-it-to-run-in-infinite-loop-tp4029966p4029984.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] Adding eval on rule cause it to run in infinite loop

2014-06-11 Thread brachi
example of rule that doesn't work without eval: 

/*rule 1 
salience -1 
agenda-group agenda1 
when 
$conclusion: supportFT() 
then 
if($conclusion.getValue()==null){ 
modify($conclusion) { setValue(new ArrayList())}; 
} 
$conclusion.getValue().add(supportedValue); 
modify($conclusion) { setValue($conclusion.getValue()) }; 
 end 


rule 2 
salience -2 
agenda-group agenda2 
when 
supportFT(Operators.containsAny(value,new
String[]{supportedValue,otherValue}))   
$conclusion: ConclusionFt() 
then 
modify($conclusion){setValue(success)}; 
end*/

rule 2 doesn't hit, works only with eval in rule 2. 
in this example I can add eval, because the Fact Types model is different,
so the rule doesn't reevaluated. 
because I had this case, I decided to add eval for all constraints, but
unfortunately I had an infinite loop. 



--
View this message in context: 
http://drools.46999.n3.nabble.com/Adding-eval-on-rule-cause-it-to-run-in-infinite-loop-tp4029966p4029985.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] Adding eval on rule cause it to run in infinite loop

2014-06-11 Thread Wolfgang Laun
On 11/06/2014, brachi brach...@sapiens.com wrote:
 example of rule that doesn't work without eval:

 /*rule 1
 salience -1
 agenda-group agenda1
 when
 $conclusion: supportFT()

Where's the eval?


 then
   if($conclusion.getValue()==null){
   modify($conclusion) { setValue(new ArrayList())};
   }
   $conclusion.getValue().add(supportedValue);
 modify($conclusion) { setValue($conclusion.getValue()) };

You might use a simple update() here.

  end


 rule 2
 salience -2
 agenda-group agenda2
 when
 supportFT(Operators.containsAny(value,new
 String[]{supportedValue,otherValue}))

This can be written using the clearer and cleaner syntax

  supportFT( value in (supportedValue,otherValue) )

   $conclusion: ConclusionFt()

Moreover, this should contain the constraint

   $conclusion: ConclusionFt( value != success )

 then
   modify($conclusion){setValue(success)};

Here, ConclusionFt's attribute value is a simple String, but in that
other rule it is set to an ArrayList.

-W

 end*/

 rule 2 doesn't hit, works only with eval in rule 2.
 in this example I can add eval, because the Fact Types model is different,
 so the rule doesn't reevaluated.
 because I had this case, I decided to add eval for all constraints, but
 unfortunately I had an infinite loop.




 --
 View this message in context:
 http://drools.46999.n3.nabble.com/Adding-eval-on-rule-cause-it-to-run-in-infinite-loop-tp4029966p4029984.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] Adding eval on rule cause it to run in infinite loop

2014-06-11 Thread brachi
This example describes a case using function in the constraint
(Operators.containsAny) and pass a Fact Type that was changed in a previous
rule.

you are right that I can use the drools operator IN (...), but I wanted to
use function in the example, because that is the case that rules don't hit.
I have a lot of functions in my rules, also for custom operators and also
for complex formulas, and I need to cause this rules to hit, just eval
helped: 
/*supportFT( eval(Operators.containsAny(value,new
String[]{supportedValue,otherValue})))*/

adding / *$conclusion: ConclusionFt( value != success ) */ to the rule can
avoid the infinite loop... 
but this solution won't work for all my rules.
 for example: rule that count something:
/* modify($conclusion) { setValue($conclusion.getValue()+1)}*/.

to summarize, I have 2 problems:
1. rule doesn't hit.
2. eval solve problem 1, but cause infinite loop.



--
View this message in context: 
http://drools.46999.n3.nabble.com/Adding-eval-on-rule-cause-it-to-run-in-infinite-loop-tp4029966p4029987.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] Analysing OutOfMemory, too many RightTuple

2014-06-11 Thread bvoisin
Hi all,

With my set of rules and data, I get OutOfMemory issues. It works fine with
smaller sets of Data.

Looking with a HeapDump analyzer, I found that there was thousands of
RightTuples. In a previous run, before some rules fixes, I also add tons of
JoinNodeLeftTuple's.
They seem to come from poorly written rules; unfortunately, I find it quite
difficult to find and correct the conditions/rules causing these tons of
RightTuple. 

Is there any analysis option/tool that can give information on the Left Hand
Side (tuples and sinks), or is there any BestPractices on how to correct the
rules to limit this behavior?

I use Drools 6.1.0.Beta4, with Phreak enabled, but had similary issues with
6.0.0 or 6.0.1

Regards,
Benoît



--
View this message in context: 
http://drools.46999.n3.nabble.com/Analysing-OutOfMemory-too-many-RightTuple-tp4029988.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] Analysing OutOfMemory, too many RightTuple

2014-06-11 Thread Wolfgang Laun
Most of the time, a look on a (representative) sample of the rules is
enough for some watchers of this list to drop a few pointers.

There are some Best Practices, but people tend to come up with new
counter-examples ;-)

-W


On 11/06/2014, bvoisin benoit.voi...@igc-erp.com wrote:
 Hi all,

 With my set of rules and data, I get OutOfMemory issues. It works fine with
 smaller sets of Data.

 Looking with a HeapDump analyzer, I found that there was thousands of
 RightTuples. In a previous run, before some rules fixes, I also add tons of
 JoinNodeLeftTuple's.
 They seem to come from poorly written rules; unfortunately, I find it quite
 difficult to find and correct the conditions/rules causing these tons of
 RightTuple.

 Is there any analysis option/tool that can give information on the Left Hand
 Side (tuples and sinks), or is there any BestPractices on how to correct the
 rules to limit this behavior?

 I use Drools 6.1.0.Beta4, with Phreak enabled, but had similary issues with
 6.0.0 or 6.0.1

 Regards,
 Benoît



 --
 View this message in context:
 http://drools.46999.n3.nabble.com/Analysing-OutOfMemory-too-many-RightTuple-tp4029988.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] Analysing OutOfMemory, too many RightTuple

2014-06-11 Thread bvoisin
Most of the RightTuple's sinks are AccumulatorNodes. Here is one of the 80
rules that I believe cause my problem. The other 80 rules are similar, but
will change in the places I formatted in /italic/.

Some information on this rule:
* The EvemetierData is the business class. They are 10-100k instances in the
VM.
* It has a accompaning object EvemetierCalculDHF that store some temporary
rules data. In particular, the calculationMode to use for a given
field=attribute
* The AttributEvemetierDHF is a Meta information class with a dozen
instances (one per field to calculate in EvemetierData) in WM.
* The UNWRAP_NULL it there to enable Null values to passe the accumulator
(an Option would have been clearer)


rule valo_2a_applyCalcMode_evemetiers_som_nivinf_1
salience -1110
when
$attDHF:AttributEvemetierDHF()

$evCalcDHF:EvemetierCalculDHF(calcModes.get($attDHF.calculationModeKey)==/som_nivinf_1/)
$obj:EvemetierData() from $evCalcDHF.evemetier
accumulate (
  $src: EvemetierData (
/pere==$obj.niveau,
affperiode==$obj.affperiode,
typeeve_id==$obj.typeeve_id,
dteve==$obj.dteve,
suffixe==$obj.suffixe,/
  true);
   $acc1 :
sumWithNulls(/DIVIDE($src.getAttributeValue($attDHF.safeGetAttName(valo_2a_applyCalcMode_evemetiers_som_nivinf_1)),
$src.getAttributeValue($attDHF.safeGetCoefinterniv(valo_2a_applyCalcMode_evemetiers_som_nivinf_1)))/
)
);

$targetValue:Object(EQUALS(UNWRAP_NULL(this),$obj.getAttributeValue($attDHF.attName))==false)
from WRAP_NULL($acc1)
then
$obj.setAttributeValue($attDHF.getAttName(), 
UNWRAP_NULL($targetValue));
end



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


[rules-users] drools-examples.zip location?

2014-06-11 Thread McArthur, Kenneth
Hi,

Reading excellent very helpful document at
http://docs.jboss.org/drools/release/6.0.1.Final/drools-docs/html_single

A drools-examples zip is mentioned.

Anyone know where it might be?

Thanks,
Ken

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

Re: [rules-users] Adding eval on rule cause it to run in infinite loop

2014-06-11 Thread Davide Sottara
I think I know what is happening here.
I assume your supportFT class is @propertyReactive.
(btw, you should follow bean conventions and capitalize class names)
Looking at Rule 1, you don't set the value directly, but you do it through
a modify. Your rule 2, which checks for the value, uses the function
containsAny
rather than the field direclty as in value IN (..).
At the moment, the engine has no way to realize that the function
involves the field value - I'm not even sure it is possible in general -
Property reactivity will ignore the update since, from its perspective, none
of the fields relevant to the rule has been affected, hence rule 2 will
not hit.
If you use eval in the constraint, property reactivity is disabled, so
the rule
WILL fire the first time, but now you are vulnerable to infinite loops,
as if
you did not have propertyreactive.
You may have to use the @watch() annotation explicitly to control which
modifies will cause reevaluations and which ones won't (see the manual
for this)
Adding eval everywhere is not a good idea.
Best,
Davide
 




On 06/11/2014 01:53 PM, brachi wrote:
 example of rule that doesn't work without eval:

 /*rule 1
 salience -1
 agenda-group agenda1
 when
 $conclusion: supportFT()
 then
   if($conclusion.getValue()==null){
   modify($conclusion) { setValue(new ArrayList())};
   }
   $conclusion.getValue().add(supportedValue);
 modify($conclusion) { setValue($conclusion.getValue()) };
  end


 rule 2
 salience -2
 agenda-group agenda2
 when
 supportFT(Operators.containsAny(value,new
 String[]{supportedValue,otherValue}))  
   $conclusion: ConclusionFt()
 then
   modify($conclusion){setValue(success)};
 end*/

 rule 2 doesn't hit, works only with eval in rule 2.
 in this example I can add eval, because the Fact Types model is different,
 so the rule doesn't reevaluated.
 because I had this case, I decided to add eval for all constraints, but
 unfortunately I had an infinite loop. 




 --
 View this message in context: 
 http://drools.46999.n3.nabble.com/Adding-eval-on-rule-cause-it-to-run-in-infinite-loop-tp4029966p4029984.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] Decision Tables and modify

2014-06-11 Thread Michael Anstis
At the momemt 6.x only supports update columns (select an action and
ensure the update engine checkbox is ticked).

You can work around this, to get modify( x ) {...}, by using a BRL Fragment
Action column and use a Free Form DRL Fragment entering the modify syntax.

I am modifying Guided Rules, Guided Templates and Guided Decision Tables to
generate modify syntax instead of update at the moment.

It will be in 6.1.Final for sure.

Did you mean this or the XLS variety? (I'd assume modify to already be
supported as ACTIONs are free format DRL IIRC).

Sent on the move
On 11 Jun 2014 18:56, gboro54 gbor...@gmail.com wrote:

 What is the proper way to do modify in a decision table?  I know this is a
 very generic question but was wondering if anyone has experience with this
 and could offer insight(I have a couple ways I think will work but they
 feel
 a bit hackey)



 --
 View this message in context:
 http://drools.46999.n3.nabble.com/Decision-Tables-and-modify-tp4029995.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] Decision Tables and modify

2014-06-11 Thread gboro54
Thanks and your assumption is correct 


manstis wrote
 At the momemt 6.x only supports update columns (select an action and
 ensure the update engine checkbox is ticked).
 
 You can work around this, to get modify( x ) {...}, by using a BRL
 Fragment
 Action column and use a Free Form DRL Fragment entering the modify syntax.
 
 I am modifying Guided Rules, Guided Templates and Guided Decision Tables
 to
 generate modify syntax instead of update at the moment.
 
 It will be in 6.1.Final for sure.
 
 Did you mean this or the XLS variety? (I'd assume modify to already be
 supported as ACTIONs are free format DRL IIRC).
 
 Sent on the move
 On 11 Jun 2014 18:56, gboro54 lt;

 gboro54@

 gt; wrote:
 
 What is the proper way to do modify in a decision table?  I know this is
 a
 very generic question but was wondering if anyone has experience with
 this
 and could offer insight(I have a couple ways I think will work but they
 feel
 a bit hackey)



 --
 View this message in context:
 http://drools.46999.n3.nabble.com/Decision-Tables-and-modify-tp4029995.html
 Sent from the Drools: User forum mailing list archive at Nabble.com.
 ___
 rules-users mailing list
 

 rules-users@.jboss

 https://lists.jboss.org/mailman/listinfo/rules-users

 
 ___
 rules-users mailing list

 rules-users@.jboss

 https://lists.jboss.org/mailman/listinfo/rules-users





--
View this message in context: 
http://drools.46999.n3.nabble.com/Decision-Tables-and-modify-tp4029995p4029997.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] Can't clone repository NoSuchElementException

2014-06-11 Thread Michael Anstis
Have you tried a non-bare repo? (I don't know if this will solve the issue
but IIRC we normally use non-bare when testing).

Sent on the move
On 11 Jun 2014 03:46, Parham, Clinton cpar...@biosignia.com wrote:

  Hello,



 I have Drools 6.0.1 installed on RedHat Linux 5 and running under JBoss
 EAP 6.1.1.



 I would like to clone from a local git server running on the same server.
 But when I do so, I get a “Can't clone repository.
 java.util.NoSuchElementException” message in the browser. There are no
 errors in the server.log



 Why doesn’t this work?



 Here’s how I’m running the git daemon:

 $ git daemon --verbose --export-all --port=9419 --base-path=/home/brms/git/



 URL I enter into the Clone Repository dialog:

 git://localhost:9419/test.git



 This is how I setup my repo:



 $ cd /home/brms/git/

 $ mkdir test.git

 $ cd test.git/

 $ git init --bare

 Initialized empty Git repository in /home/brms/git/test.git/



 Thanks,

 Clint




  --

 The contents contained herein may contain confidential information. If you
 are not the intended recipient, you are hereby notified that any
 disclosure, copying, distribution, printing or action taken on the contents
 is strictly prohibited. If you have received this email in error, please
 notify the sender immediately and delete this message.

 ___
 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] Can't clone repository NoSuchElementException

2014-06-11 Thread Parham, Clinton
Hi Michael,

Ok, some progress.

Here’s what I’ve found:

If I first try cloning a bare repo (say I call it “test”), it fails with “Can't 
clone repository. java.util.NoSuchElementException”. So I assume nothing 
happened… but at the file system level I see the “test” repo in the drools/brms 
git folder. It doesn’t show in the BusinessCentral/Guvnor repo list.

If I then try again to clone, using “test” (because I don’t know of the 
conflict) but pull from a populated repo, it still fails with “Can't clone 
repository. java.util.NoSuchElementException”. But this is because “test” 
actually exists at the file system level. If I change my Repo Name to something 
that doesn’t exist in the git folder, it clones just fine.

Sounds like a bug that should be reported, yes?

Thanks.

From: rules-users-boun...@lists.jboss.org 
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Michael Anstis
Sent: Wednesday, June 11, 2014 2:07 PM
To: Rules Users List
Subject: Re: [rules-users] Can't clone repository NoSuchElementException


Have you tried a non-bare repo? (I don't know if this will solve the issue but 
IIRC we normally use non-bare when testing).

Sent on the move
On 11 Jun 2014 03:46, Parham, Clinton 
cpar...@biosignia.commailto:cpar...@biosignia.com wrote:
Hello,

I have Drools 6.0.1 installed on RedHat Linux 5 and running under JBoss EAP 
6.1.1.

I would like to clone from a local git server running on the same server. But 
when I do so, I get a “Can't clone repository. 
java.util.NoSuchElementException” message in the browser. There are no errors 
in the server.log

Why doesn’t this work?

Here’s how I’m running the git daemon:
$ git daemon --verbose --export-all --port=9419 --base-path=/home/brms/git/

URL I enter into the Clone Repository dialog:
git://localhost:9419/test.git

This is how I setup my repo:

$ cd /home/brms/git/
$ mkdir test.git
$ cd test.git/
$ git init --bare
Initialized empty Git repository in /home/brms/git/test.git/

Thanks,
Clint




The contents contained herein may contain confidential information. If you are 
not the intended recipient, you are hereby notified that any disclosure, 
copying, distribution, printing or action taken on the contents is strictly 
prohibited. If you have received this email in error, please notify the sender 
immediately and delete this message.


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


The contents contained herein may contain confidential information. If you are 
not the intended recipient, you are hereby notified that any disclosure, 
copying, distribution, printing or action taken on the contents is strictly 
prohibited. If you have received this email in error, please notify the sender 
immediately and delete this message.

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

Re: [rules-users] Can't clone repository NoSuchElementException

2014-06-11 Thread Michael Anstis
If I read your email correctly you're saying cloning a non-bare repository
works ok provided it has a unique name?

However we should better (a) document a repository cannot be bare if it is
to be cloned into the workbench and (b) validate names of new or cloned
repositories.

If I understand correctly then yes please raise a JIRA for Guvnor.

Thanks,

Mike

Sent on the move
On 11 Jun 2014 21:28, Parham, Clinton cpar...@biosignia.com wrote:

  Hi Michael,



 Ok, some progress.



 Here’s what I’ve found:



 If I first try cloning a bare repo (say I call it “test”), it fails with
 “Can't clone repository. java.util.NoSuchElementException”. So I assume
 nothing happened… but at the file system level I see the “test” repo in the
 drools/brms git folder. It doesn’t show in the BusinessCentral/Guvnor repo
 list.



 If I then try again to clone, using “test” (because I don’t know of the
 conflict) but pull from a populated repo, it still fails with “Can't clone
 repository. java.util.NoSuchElementException”. But this is because “test”
 actually exists at the file system level. If I change my Repo Name to
 something that doesn’t exist in the git folder, it clones just fine.



 Sounds like a bug that should be reported, yes?



 Thanks.



 *From:* rules-users-boun...@lists.jboss.org [mailto:
 rules-users-boun...@lists.jboss.org] *On Behalf Of *Michael Anstis
 *Sent:* Wednesday, June 11, 2014 2:07 PM
 *To:* Rules Users List
 *Subject:* Re: [rules-users] Can't clone repository NoSuchElementException



 Have you tried a non-bare repo? (I don't know if this will solve the issue
 but IIRC we normally use non-bare when testing).

 Sent on the move

 On 11 Jun 2014 03:46, Parham, Clinton cpar...@biosignia.com wrote:

 Hello,



 I have Drools 6.0.1 installed on RedHat Linux 5 and running under JBoss
 EAP 6.1.1.



 I would like to clone from a local git server running on the same server.
 But when I do so, I get a “Can't clone repository.
 java.util.NoSuchElementException” message in the browser. There are no
 errors in the server.log



 Why doesn’t this work?



 Here’s how I’m running the git daemon:

 $ git daemon --verbose --export-all --port=9419 --base-path=/home/brms/git/



 URL I enter into the Clone Repository dialog:

 git://localhost:9419/test.git



 This is how I setup my repo:



 $ cd /home/brms/git/

 $ mkdir test.git

 $ cd test.git/

 $ git init --bare

 Initialized empty Git repository in /home/brms/git/test.git/



 Thanks,

 Clint




  --

 The contents contained herein may contain confidential information. If you
 are not the intended recipient, you are hereby notified that any
 disclosure, copying, distribution, printing or action taken on the contents
 is strictly prohibited. If you have received this email in error, please
 notify the sender immediately and delete this message.


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

 The contents contained herein may contain confidential information. If you
 are not the intended recipient, you are hereby notified that any
 disclosure, copying, distribution, printing or action taken on the contents
 is strictly prohibited. If you have received this email in error, please
 notify the sender immediately and delete this message.

 ___
 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-examples.zip location?

2014-06-11 Thread moonbeam
https://github.com/droolsjbpm/drools

Press the Download zip button on right side



--
View this message in context: 
http://drools.46999.n3.nabble.com/rules-users-drools-examples-zip-location-tp4029992p4030001.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