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

2014-05-29 Thread Neb
Hi ge0ffrey

In the optoplanner example of the vehicle routing is there a way to change
the scale of the map?

as it is set to world and if locations are added within the same town or
city they are too close on the map.

also how would this example be altered to show the travel time around the
route?

Regards, Neb



--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-Planner-Vehicle-routing-problems-tp3772797p4029766.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] Compilation errors in Drools examples

2014-05-29 Thread rjh
Hi Mario,

Thank you so much for taking care of this problem. I was pretty frustrated
by this problem and I got no  answer after asking around. I thought it could
relate to another problem you solved earlier
(http://drools.46999.n3.nabble.com/rules-users-Drool-6-0-0-Final-2-question-re-kie-maven-plugin-please-td4027117.html).
So I sent an email to the email address you are using for this mailing list.
I am sorry to bother you with this. 

Thanks.

Jinghai



--
View this message in context: 
http://drools.46999.n3.nabble.com/Compilation-errors-in-Drools-examples-tp4027650p4029765.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] Not and forall operator behaviour

2014-05-29 Thread rogerL
Davide,

Thank you for the clarification. My error was to interpret the "not"
operator as an existential function (ie: "there is no such object that
exists") and viewing the object as a unit, rather than, as you pointed out,
logically manipulable.
In light of that, the logical OR in place of the comma makes sense.

Roger 



--
View this message in context: 
http://drools.46999.n3.nabble.com/Not-and-forall-operator-behaviour-tp4029761p4029764.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] Compilation errors in Drools examples

2014-05-29 Thread Mario Fusco
Hi,

I didn't receive any personal email on this issue or at least I cannot find
it at the moment. Anyway sending personal emails complaining for a certain
defect or missing feature isn't of course a good idea.

I'll try to fix this issue asap. 

Thanks for having reported it,
Mario



--
View this message in context: 
http://drools.46999.n3.nabble.com/Compilation-errors-in-Drools-examples-tp4027650p4029763.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] Not and forall operator behaviour

2014-05-29 Thread Davide Sottara
Both should fire when there is no message.

This said, the two are not equivalent.
The negation of
Message( sent == true, status != INITIALIZED )
is:
Message( sent == false *||* status == INITIALIZED )
That is, by deMorgan's laws, you need to negate
the operators AND flip the and/or connectives.

In case something still seems weird, could you
please specify the drools version you're using,
as well as which facts you are inserting exactly?

Thanks
Davide


On 05/29/2014 09:33 PM, rogerL wrote:
> Are the two following statements not equivalent?
>
> forall($msg:Message()
> Message(this==$msg, sent==true, status!=State._INITIALIZED)
> )
>
>
> not( Message(sent==false, status==State._INITIALIZED) )
>
> My understanding is that they both ensure that there are no Message objects
> in WM with property 'sent' set to false and property 'status' set to
> State._INITIALIZED.
>
> In my situation, the 'forall' approach is working as expected, the 'not'
> approach fires once (when there are no Message objects in WM) and never
> again.
>
> Appreciate if anyone could shed light on this.
>
>
>
> --
> View this message in context: 
> http://drools.46999.n3.nabble.com/Not-and-forall-operator-behaviour-tp4029761.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] Not and forall operator behaviour

2014-05-29 Thread rogerL
Are the two following statements not equivalent?

forall($msg:Message()
Message(this==$msg, sent==true, status!=State._INITIALIZED)
)


not( Message(sent==false, status==State._INITIALIZED) )

My understanding is that they both ensure that there are no Message objects
in WM with property 'sent' set to false and property 'status' set to
State._INITIALIZED.

In my situation, the 'forall' approach is working as expected, the 'not'
approach fires once (when there are no Message objects in WM) and never
again.

Appreciate if anyone could shed light on this.



--
View this message in context: 
http://drools.46999.n3.nabble.com/Not-and-forall-operator-behaviour-tp4029761.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] Compilation errors in Drools examples

2014-05-29 Thread rjh
I have the same problem. It seems like the drool eclipse plugin can't
recognize third party classes (any jar files besides those within JRE
runtime and Drools runtime). Despite of the error messages, you can execute
the java application correctly.

However, I have asked around in this forum, in jira, and writing personal
email to Kris Verlaenen and Mario Fusco, but no response at all!!

Below are my posts regarding this problem:

http://drools.46999.n3.nabble.com/rules-users-Drools-eclipse-plugin-problem-td4029476.html

https://issues.jboss.org/browse/DROOLS-472





--
View this message in context: 
http://drools.46999.n3.nabble.com/Compilation-errors-in-Drools-examples-tp4027650p4029760.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] Workbench: Error after cloning repository

2014-05-29 Thread Steinmetz, Jean-Philippe
I'm wondering if this error is a red herring. In the Jboss log I am getting
the following errors on startup when it scans my project.

[Error: unable to resolve method using strict-mode:
org.drools.core.spi.KnowledgeHelper.MyClassUtils()]
[Near : {... MyClass obj = MyClassUtils.getObject("com.u }]

This is referring to a static method of a utility class I have that is
imported at the top of the DRL file. The same project compiles and runs
just fine via maven and a standalone application running Drools sessions so
I am not sure what makes the workbench different.

I have found several references to this error where it is suggested to
disable strict-mode for MVEL. How would I go about disabling this in the
workbench to test it?


On Thu, May 29, 2014 at 9:50 AM, Steinmetz, Jean-Philippe <
jpsteinm...@theworkshop.us.com> wrote:

> It looks like the class belongs to an ooxml-schemas jar. My project pom
> does not specify any such dependency. However, I do see poi-ooxml-schemas
> as an inherited dependency from drools-decisiontables which is currently
> marked with a compile scope which should be properly including it at
> runtime if it's necessary. Perhaps it is conflicting with the workbench?
>
> The error is a popup. I have seen this error before when I was installing
> the workbench. I was using a clean install of Jboss AS 7 and I dropped the
> war into the deployments folder instead of going through the admin console.
> When I did that I got the same error popup (and a host of others) when I
> would try to access any of the demo files.
>
>
> On Thu, May 29, 2014 at 12:22 AM, Michael Anstis  > wrote:
>
>> Sounds like the pom for the project in the repository you have cloned has
>> a "provided" scope dependency on an open office JAR?
>>
>> Is the CNFE in the server log or does it interfer with runtime operation
>> of the workbench? (I.e do you get an error pop up)
>>
>> Sent on the move
>> On 28 May 2014 21:51, "Steinmetz, Jean-Philippe" <
>> jpsteinm...@theworkshop.us.com> wrote:
>>
>>> Hello,
>>>
>>> I have successfully cloned an existing repository containing a maven
>>> kmodule project. Unfortunately when I attempt to open any of the DRL files
>>> in the workbench (6.0.1.Final) I get the following error:
>>>
>>> Unable to complete your request. The following exception occurred:
>>> java.lang.ClassNotFoundException:org.openxmlformats.schemas.officeDocument.x2006.docPropsVTypes.CTArray
>>> from [Module "deployment.kie-drools-wb.war:main" from Service Module
>>> Loader].
>>>
>>> This error does not happen if I load any of the files in the demo
>>> project. The DRL files range from complex to very simple. They all use the
>>> mvel dialect and import the following globals.
>>>
>>>
>>> /** The Camel context used when handling input/output. */
>>> global CamelContext camelContext;
>>> /** The application configuration. */
>>> global Config config;
>>> /** A reference to the current knowledge base. */
>>> global KieBase kBase;
>>> /** A reference to the current session. */
>>> global KieSession kSession;
>>> /** The common logging utility. */
>>> global org.slf4j.Logger logger;
>>>
>>> Outside of this there is nothing special to them. Has anyone seen this?
>>>
>>> Thanks,
>>>
>>> Jean-Philippe
>>>
>>> ___
>>> 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] Using git-p4 with workbench

2014-05-29 Thread Steinmetz, Jean-Philippe
I think some of my questions are still relevant here. For example, normally
if I need to get the latest changes from a master I would do 'git pull'.
However, the workbench doesn't seem to have any UI for that. For
repositories that are cloned from a remote repo, is the workbench
performing an automatic pull? If not, how do I invoke it? Or is it that the
workbench is always considered master and I should be instead pushing to it?


On Tue, May 27, 2014 at 5:20 PM, Mark Proctor  wrote:

> You can bi-drection sync git, if you know what you are doing. But these
> are more GIT Qs, and better asked on the GIT mailing list. Lot’s of stack
> exchange entries too for two way git sync
>
> http://stackoverflow.com/questions/15056327/how-do-i-synchronise-two-remote-git-repositories
>
> Mark
>
>
>
> On 28 May 2014, at 01:11, Steinmetz, Jean-Philippe <
> jpsteinm...@theworkshop.us.com> wrote:
>
> Hrm okay. Pushing from the git-p4 clone to the workbench doesn't really
> help either though. The bridge needs to be bi-directional. Meaning, the
> latest changes in perforce should be sync'd into the workbench regularly
> and any commits to the workbench need to be pushed back to perforce.
> Perhaps instead I need to set up the git-p4 clone as git server itself that
> the workbench can clone. If I do that will it push back to that server? or
> does the workbench not play nice that way? Also, does the workbench perform
> regular fetches on a cloned repo?
>
>
> On Tue, May 27, 2014 at 3:27 PM, Mark Proctor wrote:
>
>> don’t touch the .niogit folder. You have your git-p4 repo, that you
>> cloned. Now push it to the ssh connection of the Guvnor server.
>> Mark
>>
>> On 27 May 2014, at 22:29, Steinmetz, Jean-Philippe <
>> jpsteinm...@theworkshop.us.com> wrote:
>>
>> Hi Mark,
>>
>> Thanks for the reply. I have tried creating a new repo in the workbench
>> and then using git-p4 on the command line sync'd perforce to it in the
>> appropriate .niogit directory (per the git-p4 docs this use case is how you
>> add p4 to an existing git repo). However, I am not seeing the working files
>> anywhere. Where does the workbench store the work tree?
>>
>> Jean-Philippe
>>
>>
>> On Thu, May 22, 2014 at 3:45 PM, Mark Proctor wrote:
>>
>>> We use JGit and I don’t believe (but could be wrong) it has direct p4
>>> support, like this git extension offers.
>>> http://git-scm.com/docs/git-p4
>>>
>>> However Git is distributed, so just clone and sync a p4 repo with this
>>> Git command line tool and use it as an intermediary. Then merge/mirror this
>>> intermediary with our JGit repo.
>>>
>>> Mark
>>>
>>> On 22 May 2014, at 22:28, Steinmetz, Jean-Philippe <
>>> jpsteinm...@theworkshop.us.com> wrote:
>>>
>>> > Hi,
>>> >
>>> > Has anyone tried using a VCS bridge for git with the Drools 6
>>> workbench? Specifically I am interested in git-p4 so that I can access an
>>> existing maven project that is currently stored in Perforce. Is this use
>>> case supported?
>>> >
>>> > Thanks in advance,
>>> >
>>> > Jean-Philippe
>>> > ___
>>> > 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
>
>
>
> ___
> 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] @Modifies Inheritance

2014-05-29 Thread gboro54
Curiosity question: Why does the @Modifies not have the @Inherited
annotation, allowing subclasses to inherit a method which may modify
something in the parent? Perhaps I have a misunderstanding of annotations 
in this case but still am just wondering. 



--
View this message in context: 
http://drools.46999.n3.nabble.com/Modifies-Inheritance-tp4029757.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] Workbench: Error after cloning repository

2014-05-29 Thread Steinmetz, Jean-Philippe
It looks like the class belongs to an ooxml-schemas jar. My project pom
does not specify any such dependency. However, I do see poi-ooxml-schemas
as an inherited dependency from drools-decisiontables which is currently
marked with a compile scope which should be properly including it at
runtime if it's necessary. Perhaps it is conflicting with the workbench?

The error is a popup. I have seen this error before when I was installing
the workbench. I was using a clean install of Jboss AS 7 and I dropped the
war into the deployments folder instead of going through the admin console.
When I did that I got the same error popup (and a host of others) when I
would try to access any of the demo files.


On Thu, May 29, 2014 at 12:22 AM, Michael Anstis
wrote:

> Sounds like the pom for the project in the repository you have cloned has
> a "provided" scope dependency on an open office JAR?
>
> Is the CNFE in the server log or does it interfer with runtime operation
> of the workbench? (I.e do you get an error pop up)
>
> Sent on the move
> On 28 May 2014 21:51, "Steinmetz, Jean-Philippe" <
> jpsteinm...@theworkshop.us.com> wrote:
>
>> Hello,
>>
>> I have successfully cloned an existing repository containing a maven
>> kmodule project. Unfortunately when I attempt to open any of the DRL files
>> in the workbench (6.0.1.Final) I get the following error:
>>
>> Unable to complete your request. The following exception occurred:
>> java.lang.ClassNotFoundException:org.openxmlformats.schemas.officeDocument.x2006.docPropsVTypes.CTArray
>> from [Module "deployment.kie-drools-wb.war:main" from Service Module
>> Loader].
>>
>> This error does not happen if I load any of the files in the demo
>> project. The DRL files range from complex to very simple. They all use the
>> mvel dialect and import the following globals.
>>
>>
>> /** The Camel context used when handling input/output. */
>> global CamelContext camelContext;
>> /** The application configuration. */
>> global Config config;
>> /** A reference to the current knowledge base. */
>> global KieBase kBase;
>> /** A reference to the current session. */
>> global KieSession kSession;
>> /** The common logging utility. */
>> global org.slf4j.Logger logger;
>>
>> Outside of this there is nothing special to them. Has anyone seen this?
>>
>> Thanks,
>>
>> Jean-Philippe
>>
>> ___
>> 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] Compilation errors in Drools examples

2014-05-29 Thread J Rose
Any solution to this item?  I am having the same errors.



--
View this message in context: 
http://drools.46999.n3.nabble.com/Compilation-errors-in-Drools-examples-tp4027650p4029754.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] Workbench: Error after cloning repository

2014-05-29 Thread Michael Anstis
Sounds like the pom for the project in the repository you have cloned has a
"provided" scope dependency on an open office JAR?

Is the CNFE in the server log or does it interfer with runtime operation of
the workbench? (I.e do you get an error pop up)

Sent on the move
On 28 May 2014 21:51, "Steinmetz, Jean-Philippe" <
jpsteinm...@theworkshop.us.com> wrote:

> Hello,
>
> I have successfully cloned an existing repository containing a maven
> kmodule project. Unfortunately when I attempt to open any of the DRL files
> in the workbench (6.0.1.Final) I get the following error:
>
> Unable to complete your request. The following exception occurred:
> java.lang.ClassNotFoundException:org.openxmlformats.schemas.officeDocument.x2006.docPropsVTypes.CTArray
> from [Module "deployment.kie-drools-wb.war:main" from Service Module
> Loader].
>
> This error does not happen if I load any of the files in the demo project.
> The DRL files range from complex to very simple. They all use the mvel
> dialect and import the following globals.
>
>
> /** The Camel context used when handling input/output. */
> global CamelContext camelContext;
> /** The application configuration. */
> global Config config;
> /** A reference to the current knowledge base. */
> global KieBase kBase;
> /** A reference to the current session. */
> global KieSession kSession;
> /** The common logging utility. */
> global org.slf4j.Logger logger;
>
> Outside of this there is nothing special to them. Has anyone seen this?
>
> Thanks,
>
> Jean-Philippe
>
> ___
> 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