Re: [rules-users] Using Drools with JSP application.

2011-11-11 Thread Michael Anstis
Yes you are correct.

On 11 November 2011 07:51, sachintaware sachitawar...@gmail.com wrote:

 Thank you for the prompt response Mike :)

 What I get by you say is that I should create a Web-Application project in
 eclipse and not a Drools project(What traditionally examples show in the
 documentation) and import the necessary JAR'S from the Drools
 directory(Drools expert directory downloaded).br/

 This should allow me to create the .DRL files writing rules and creating
 knowledge sessions using the jsp files that are created the projects.br/

 What I tried was creating a drools project and replacing the .java files
 with .jsp which certainly wont work!! :(

 *My Use Case:* br/

 Creating a UI with a Select box which will have States of a country.
 When a user selects a state a rule from should display the candidates/users
 belonging to that state on the UI.



 --
 View this message in context:
 http://drools.46999.n3.nabble.com/Using-Drools-with-JSP-application-tp3498955p3499025.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] When I insert fact to working memery in the rule file, others rule some time can't fired.

2011-11-11 Thread luke
when I call rule engine in java and loop 100,then has 1-3 times the second
rule and third rule can't be fired.

--
View this message in context: 
http://drools.46999.n3.nabble.com/When-I-insert-fact-to-working-memery-in-the-rule-file-others-rule-some-time-can-t-fired-tp3498942p3499070.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] When I insert fact to working memery in the rule file, others rule some time can't be fired.

2011-11-11 Thread luke
Hi, 

When I insert fact to working memery in the rule file, others rule some time
can't be fired. 

I use the drools rule version is 5.3.0.Final 

call rule engine in java and loop 100,then has 1-3 times the second rule
and third rule can't be fired. 

rule file: 
package com.sample 

import com.sample.pojo.Order 
import com.sample.pojo.User 
import com.sample.pojo.Item 

declare ActivityType 
orderId : String 
name : String 
type : String 
end 


rule first 
no-loop true 
salience 100 
when 
$user:User() 
$order:Order(userId ==
$user.id,server==server,operator==operator,gameName==gameName,createdDt
 2011-11-01,createdDt  2011-11-30,points = 240) 
not Order(userId == $user.id,id != $order.id) 
then 
drools.insert(new ActivityType($order.getId(),first,S)); 
System.out.println(inserted activity type,+
orderId=+$order.getId()); 
end 

rule second 
salience 2 
when 
$activityType : ActivityType(name == first,type == S) 
$order:Order(id == $activityType.orderId,points == 240,amount = 10) 
$user:User(id == $order.userId) 
then 
$user.setItem(new Item(aaa,1)); 
end 

rule third 
salience 1 
when 
$activityType : ActivityType(name == first, type == S) 
$order:Order(points == 240, id == $activityType.orderId) 
$user:User(id == $order.userId) 
then 
$user.setItem(new Item(aaa,1*$order.getQuality())); 
end

--
View this message in context: 
http://drools.46999.n3.nabble.com/When-I-insert-fact-to-working-memery-in-the-rule-file-others-rule-some-time-can-t-be-fired-tp3499083p3499083.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] When I insert fact to working memery in the rule file, others rule some time can't be fired.

2011-11-11 Thread Michael Anstis
Do you insert a User Fact too?

Perhaps seeing the Java side of your code will help.

On 11 November 2011 08:18, luke lzz...@sina.com wrote:

 Hi,

 When I insert fact to working memery in the rule file, others rule some
 time
 can't be fired.

 I use the drools rule version is 5.3.0.Final

 call rule engine in java and loop 100,then has 1-3 times the second rule
 and third rule can't be fired.

 rule file:
 package com.sample

 import com.sample.pojo.Order
 import com.sample.pojo.User
 import com.sample.pojo.Item

 declare ActivityType
orderId : String
name : String
type : String
 end


 rule first
no-loop true
salience 100
when
$user:User()
$order:Order(userId ==
 $user.id
 ,server==server,operator==operator,gameName==gameName,createdDt
  2011-11-01,createdDt  2011-11-30,points = 240)
not Order(userId == $user.id,id != $order.id)
then
drools.insert(new ActivityType($order.getId(),first,S));
System.out.println(inserted activity type,+
 orderId=+$order.getId());
 end

 rule second
salience 2
when
$activityType : ActivityType(name == first,type == S)
$order:Order(id == $activityType.orderId,points == 240,amount = 10)
$user:User(id == $order.userId)
then
$user.setItem(new Item(aaa,1));
 end

 rule third
salience 1
when
$activityType : ActivityType(name == first, type == S)
$order:Order(points == 240, id == $activityType.orderId)
$user:User(id == $order.userId)
then
$user.setItem(new Item(aaa,1*$order.getQuality()));
 end

 --
 View this message in context:
 http://drools.46999.n3.nabble.com/When-I-insert-fact-to-working-memery-in-the-rule-file-others-rule-some-time-can-t-be-fired-tp3499083p3499083.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] When I insert fact to working memery in the rule file, others rule some time can't fired.

2011-11-11 Thread Wolfgang Laun
You have not provided enough information, not even for a remote guess.
-W

On 11 November 2011 09:11, luke lzz...@sina.com wrote:

 when I call rule engine in java and loop 100,then has 1-3 times the
 second
 rule and third rule can't be fired.

 --
 View this message in context:
 http://drools.46999.n3.nabble.com/When-I-insert-fact-to-working-memery-in-the-rule-file-others-rule-some-time-can-t-fired-tp3498942p3499070.html
 Sent from the Drools: User forum mailing list archive at Nabble.com.
 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users

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


Re: [rules-users] Using Drools with JSP application.

2011-11-11 Thread sachintaware
Thanks a lot for your help Mike!!! :)
Hopefully  I will get it working this way!!!

Regards
Sachin

--
View this message in context: 
http://drools.46999.n3.nabble.com/Using-Drools-with-JSP-application-tp3498955p3499132.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] When I insert fact to working memery in the rule file, others rule some time can't be fired.

2011-11-11 Thread luke
thanks, i resolved the problem, it is my mistake

--
View this message in context: 
http://drools.46999.n3.nabble.com/When-I-insert-fact-to-working-memery-in-the-rule-file-others-rule-some-time-can-t-be-fired-tp3499083p3499169.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] jbpm 3.2.x verssion .....

2011-11-11 Thread Sumeet Karawal

Hi,

Can any body let me know whether jbpm v 3.2.8 is compatible with sun
solaris. If not then which of the versions among v3.2.x is compatible with
it. As I have to install it in both Windows and Sun Solaris.


Thanks in advance,
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


Re: [rules-users] ClassLoader parameter and Init function of RuleBaseConfiguration

2011-11-11 Thread Swindells, Thomas
No such method errors and the like when playing around with classloaders 
normally means that somewhere you have the same jar in the classpath with 
different versions, you may well then be loading the classes from different 
jars depending on which classloader you are using. Make sure that you 
definitely don't have any of the old 5.1 jars anywhere that could be being 
loaded by mistake.

Thomas

 -Original Message-
 From: rules-users-boun...@lists.jboss.org [mailto:rules-users-
 boun...@lists.jboss.org] On Behalf Of ssprick
 Sent: 11 November 2011 07:45
 To: rules-users@lists.jboss.org
 Subject: Re: [rules-users] ClassLoader parameter and Init function of
 RuleBaseConfiguration

 *push*

 --
 View this message in context:
 http://drools.46999.n3.nabble.com/ClassLoader-parameter-and-Init-
 function-of-RuleBaseConfiguration-tp3489741p3499019.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


**
This message is confidential and intended only for the addressee. If you have 
received this message in error, please immediately notify the 
postmas...@nds.com and delete it from your system as well as any copies. The 
content of e-mails as well as traffic data may be monitored by NDS for 
employment and security purposes. To protect the environment please do not 
print this e-mail unless necessary.

NDS Limited. Registered Office: One London Road, Staines, Middlesex, TW18 4EX, 
United Kingdom. A company registered in England and Wales. Registered no. 
3080780. VAT no. GB 603 8808 40-00
**

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


Re: [rules-users] jbpm 3.2.x verssion .....

2011-11-11 Thread Swindells, Thomas
It's java. As long as you have a compatible JVM then it should run.
Have you encountered any problems using it?

Thomas

 -Original Message-
 From: rules-users-boun...@lists.jboss.org [mailto:rules-users-
 boun...@lists.jboss.org] On Behalf Of Sumeet Karawal
 Sent: 11 November 2011 09:12
 To: rules-users@lists.jboss.org
 Subject: [rules-users] jbpm 3.2.x verssion .


 Hi,

 Can any body let me know whether jbpm v 3.2.8 is compatible with sun
 solaris. If not then which of the versions among v3.2.x is compatible with it.
 As I have to install it in both Windows and Sun Solaris.


 Thanks in advance,
 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


**
This message is confidential and intended only for the addressee. If you have 
received this message in error, please immediately notify the 
postmas...@nds.com and delete it from your system as well as any copies. The 
content of e-mails as well as traffic data may be monitored by NDS for 
employment and security purposes. To protect the environment please do not 
print this e-mail unless necessary.

NDS Limited. Registered Office: One London Road, Staines, Middlesex, TW18 4EX, 
United Kingdom. A company registered in England and Wales. Registered no. 
3080780. VAT no. GB 603 8808 40-00
**

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


Re: [rules-users] jbpm 3.2.x verssion .....

2011-11-11 Thread Sumeet Karawal
Thanks Thomas

No, I am a little confused which version to use. I visited the site
http://sourceforge.net/projects/jbpm/files/jBPM%203/. Here the maximum
downloads are for v 3.2.2  and the latest among these is v3.2.8. It would
be very helpful if you could suggest me which one to use among the versions
3.2.x. As my requirement is to use jbpm v3.2.x with Drools and Jboss AS,
and later on Mule ESB v3.1 will also be used. So I am thinking of
installing jbpm among v3.2.x with Drools v5.3 Final and JBoss AS v 5.1.
Will these components work together?

Also, jbpm Enterprise Supports v3. So is there much difference between the
enterprise version of jbpm v3 and the community versions of v3.2.x

Thanks  Regards,
Sumeet Karawal
Mailto: sumeet.kara...@tcs.com



  
  From:   Swindells, Thomas tswinde...@nds.com  
  

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

  
  Date:   11/11/2011 02:56 PM   
  

  
  Subject:Re: [rules-users] jbpm 3.2.x verssion .   
  

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

  





It's java. As long as you have a compatible JVM then it should run.
Have you encountered any problems using it?

Thomas

 -Original Message-
 From: rules-users-boun...@lists.jboss.org [mailto:rules-users-
 boun...@lists.jboss.org] On Behalf Of Sumeet Karawal
 Sent: 11 November 2011 09:12
 To: rules-users@lists.jboss.org
 Subject: [rules-users] jbpm 3.2.x verssion .


 Hi,

 Can any body let me know whether jbpm v 3.2.8 is compatible with sun
 solaris. If not then which of the versions among v3.2.x is compatible
with it.
 As I have to install it in both Windows and Sun Solaris.


 Thanks in advance,
 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


**

This message is confidential and intended only for the addressee. If you
have received this message in error, please immediately notify the
postmas...@nds.com and delete it from your system as well as any copies.
The content of e-mails as well as traffic data may be monitored by NDS for
employment and security purposes. To protect the environment please do not
print this e-mail unless necessary.

NDS Limited. Registered Office: One London Road, Staines, Middlesex, TW18
4EX, United Kingdom. A company registered in England and Wales. Registered
no. 3080780. VAT no. GB 603 8808 40-00
**


___
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] Functions not generated from decision tables with Drools 5.2

2011-11-11 Thread hdrews
I have a decision table with functions but they are not contained in the
generated DRL.

What have I to do to fix this?

-- Heinz  

--
View this message in context: 
http://drools.46999.n3.nabble.com/Functions-not-generated-from-decision-tables-with-Drools-5-2-tp3499285p3499285.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] Showstopper issues for Drools Adoption in our organization

2011-11-11 Thread kapokfly
Not sure if these are also your questions you might have with the rule engine
adoption, but we have seen 2 showstopper issues for drools adoption in our
organization, or it is just because we are lack of some necessary knowledge. 

Issue 1) : pattern match for large data 

There are cases in a rule we need find matched records against a large
population of data and perform some actions.

Example:
From 2 millions employee directory, find those belongs to Depart1 and
with salary increased by 10% last year. 

Inserting all these employee's data into WorkingMemory is HUGE and
mission impossible, we can't simply load the entire db into the working
memory, do we have any other approach to accomplish or this is just not a
use case can be resolved by a rule engine?


Issue 2): Map business object to real engineering implementation

What we are trying to do is to build a rule UI which a business user without
engineering background of our codebase can work with; the business object we
show on the UI might be different with the real engineering objects already
in system, for example, on the UI a user might be able to able to see
something like person.address.addressLine1 but the actually implementation
might not be an object traverse implementation. 

Example, the model could be Long Person.addressId ; then referring to his
address we need another lookup and we want to hide such complexity to the
end user. 

The approach we took is to design a translation layer to translate the user
input to drools rule string, is this the right approach?

If not, any suggestions? I know Drools is mainly designed for developers but
just trying to see if there is any way we can work it around. 

Thanks and looking forward to your recommendations. 

Ivan








-
Ivan, your Panda, forever
--
View this message in context: 
http://drools.46999.n3.nabble.com/Showstopper-issues-for-Drools-Adoption-in-our-organization-tp3499367p3499367.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] Functions not generated from decision tables with Drools 5.2

2011-11-11 Thread Michael Anstis
Something must be wrong.

Providing your spreadsheet would be helpful.

On 11 November 2011 10:11, hdrews heinz.dr...@gmail.com wrote:

 I have a decision table with functions but they are not contained in the
 generated DRL.

 What have I to do to fix this?

 -- Heinz

 --
 View this message in context:
 http://drools.46999.n3.nabble.com/Functions-not-generated-from-decision-tables-with-Drools-5-2-tp3499285p3499285.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] Specifiying dialect MVEL for rules generate from decision tables

2011-11-11 Thread Michael Anstis
Have you read the user guide?

There is a attribute for dialect.

On 11 November 2011 10:13, hdrews heinz.dr...@gmail.com wrote:

 How can I select the dialect for generated rules?

 -- Heinz

 --
 View this message in context:
 http://drools.46999.n3.nabble.com/Specifiying-dialect-MVEL-for-rules-generate-from-decision-tables-tp3499287p3499287.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] Functions not generated from decision tables with Drools 5.2

2011-11-11 Thread Heinz Drews
I have reduced the original XLS, but the problem still exists.


2011/11/11 Michael Anstis michael.ans...@gmail.com:
 Something must be wrong.

 Providing your spreadsheet would be helpful.

 On 11 November 2011 10:11, hdrews heinz.dr...@gmail.com wrote:

 I have a decision table with functions but they are not contained in the
 generated DRL.

 What have I to do to fix this?

 -- Heinz

 --
 View this message in context:
 http://drools.46999.n3.nabble.com/Functions-not-generated-from-decision-tables-with-Drools-5-2-tp3499285p3499285.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




TestFunction.xls
Description: MS-Excel spreadsheet
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Specifiying dialect MVEL for rules generate from decision tables

2011-11-11 Thread Heinz Drews
I have used chapter 6 of the Drools Expert 5.2 final as reference
(http://docs.jboss.org/drools/release/5.2.0.Final/drools-expert-docs/html/ch06.html).

Because I could not found a reference I have searched for dialect
and could not get a hit.

Have I read the wrong user guide?

2011/11/11 Michael Anstis michael.ans...@gmail.com:
 Have you read the user guide?

 There is a attribute for dialect.

 On 11 November 2011 10:13, hdrews heinz.dr...@gmail.com wrote:

 How can I select the dialect for generated rules?

 -- Heinz

 --
 View this message in context:
 http://drools.46999.n3.nabble.com/Specifiying-dialect-MVEL-for-rules-generate-from-decision-tables-tp3499287p3499287.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] Specifiying dialect MVEL for rules generate from decision tables

2011-11-11 Thread Wolfgang Laun
You can sneak in any rule attribute by using Queries or Functions as the
keyword and by providing the full text of the rule attribute in the next
cell.

This would then apply to all rules derived from all following Rule Tables,
or until changed by another entry.

I don't think adding dialect as another keyword for RuleTables makes any
sense: notice that code snippets are provided in the header, and changing
or setting the dialect for each rule individually isn't going to work.

It would make sense to add a RuleSet keyword Attributes so that there is
no need to abuse Functions or Queries.

-W



2011/11/11 Michael Anstis michael.ans...@gmail.com

 Apologies Heinz,

 I'd assumed the XLS decision table supported dialect too (the web-based
 decision table in Guvnor does).

 If you raise a JIRA I'll add dialect to the decision table parser.


 On 11 November 2011 11:45, Heinz Drews heinz.dr...@gmail.com wrote:

 I have used chapter 6 of the Drools Expert 5.2 final as reference
 (
 http://docs.jboss.org/drools/release/5.2.0.Final/drools-expert-docs/html/ch06.html
 ).

 Because I could not found a reference I have searched for dialect
 and could not get a hit.

 Have I read the wrong user guide?

 2011/11/11 Michael Anstis michael.ans...@gmail.com:
  Have you read the user guide?
 
  There is a attribute for dialect.
 
  On 11 November 2011 10:13, hdrews heinz.dr...@gmail.com wrote:
 
  How can I select the dialect for generated rules?
 
  -- Heinz
 
  --
  View this message in context:
 
 http://drools.46999.n3.nabble.com/Specifiying-dialect-MVEL-for-rules-generate-from-decision-tables-tp3499287p3499287.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] Functions not generated from decision tables with Drools 5.2

2011-11-11 Thread Michael Anstis
You have a space after the keyword Functions .

Removing this solves the problem.

2011/11/11 Heinz Drews heinz.dr...@gmail.com

 I have reduced the original XLS, but the problem still exists.


 2011/11/11 Michael Anstis michael.ans...@gmail.com:
  Something must be wrong.
 
  Providing your spreadsheet would be helpful.
 
  On 11 November 2011 10:11, hdrews heinz.dr...@gmail.com wrote:
 
  I have a decision table with functions but they are not contained in the
  generated DRL.
 
  What have I to do to fix this?
 
  -- Heinz
 
  --
  View this message in context:
 
 http://drools.46999.n3.nabble.com/Functions-not-generated-from-decision-tables-with-Drools-5-2-tp3499285p3499285.html
  Sent from the Drools: User forum mailing list archive at Nabble.com.
  ___
  rules-users mailing list
  rules-users@lists.jboss.org
  https://lists.jboss.org/mailman/listinfo/rules-users
 
 
  ___
  rules-users mailing list
  rules-users@lists.jboss.org
  https://lists.jboss.org/mailman/listinfo/rules-users
 
 

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


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


Re: [rules-users] Guvnor (5.3.0 Final)- Rule using accumulate with windows:length delivers an unexpected result

2011-11-11 Thread axel
*** Update ***

Meanwhile, I've checked the same rule and test case standalone as Mike
suggested. I used an Eclipse Drools Project (including 5.2.0 Final runtime).
But the same rule works fine there, as I originally expected. 

It seems to me a problem with Guvnor 5.3.0 Final and underlaying toolchain.
But, to get it running within Eclipse Drools Project I had to do slight
modifications because importing the files from the Guvnor repository did not
work (Files (model.drl, and rule.brl) were included in the project but did
not compile within my Eclipse environment).
1) I changed the model using Java classes in Eclipse. In Guvnor I did it
within the Model Editor getting a DRL type file for it.
2) In Guvnor I had a BRL type file for the rule itself and I took the source
code from the view in a new DRL-File within Eclipse.

Any suggestions, how I get it run in Guvnor? Thanks.

Best regards,

Axel  



--
View this message in context: 
http://drools.46999.n3.nabble.com/rules-users-Guvnor-5-3-0-Final-Rule-using-accumulate-with-windows-length-delivers-an-unexpected-resut-tp3489548p3499624.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] ClassLoader parameter and Init function of RuleBaseConfiguration

2011-11-11 Thread ssprick
Thank you so much Thomas! There indeed was an old 5.1 jar in another
subproject left on the classpath. 

--
View this message in context: 
http://drools.46999.n3.nabble.com/ClassLoader-parameter-and-Init-function-of-RuleBaseConfiguration-tp3489741p3499642.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] Functions not generated from decision tables with Drools 5.2

2011-11-11 Thread Heinz Drews
Many thanks.

I will check the SpreadsheetCompiler to add a trim before checking.

Should I open a jira?


2011/11/11 Michael Anstis michael.ans...@gmail.com:
 You have a space after the keyword Functions .

 Removing this solves the problem.

 2011/11/11 Heinz Drews heinz.dr...@gmail.com

 I have reduced the original XLS, but the problem still exists.


 2011/11/11 Michael Anstis michael.ans...@gmail.com:
  Something must be wrong.
 
  Providing your spreadsheet would be helpful.
 
  On 11 November 2011 10:11, hdrews heinz.dr...@gmail.com wrote:
 
  I have a decision table with functions but they are not contained in
  the
  generated DRL.
 
  What have I to do to fix this?
 
  -- Heinz
 
  --
  View this message in context:
 
  http://drools.46999.n3.nabble.com/Functions-not-generated-from-decision-tables-with-Drools-5-2-tp3499285p3499285.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


[rules-users] Fw: jbpm 3.2.x verssion .....

2011-11-11 Thread Sumeet Karawal

Hi,

I have to meet an urgent requirement and not getting any information
regarding which of these version is stable. Could any body please help me
on this.

Is it better to use jbpm v 3.2.2 or jbpm v 3.2.8 with Drools v5.3 and JBoss
AS v5.1.
or any other version of jbpm among v3.2.x

Thanks  Regards,
Sumeet Karawal
Mailto: sumeet.kara...@tcs.com

- Forwarded by Sumeet Karawal/MUM/TCS on 11/11/2011 11:16 PM -

  
  From:   Sumeet Karawal sumeet.kara...@tcs.com   
  

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

  
  Date:   11/11/2011 03:11 PM   
  

  
  Subject:Re: [rules-users] jbpm 3.2.x verssion .   
  

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

  





Thanks Thomas

No, I am a little confused which version to use. I visited the site
http://sourceforge.net/projects/jbpm/files/jBPM%203/. Here the maximum
downloads are for v 3.2.2  and the latest among these is v3.2.8. It would
be very helpful if you could suggest me which one to use among the versions
3.2.x. As my requirement is to use jbpm v3.2.x with Drools and Jboss AS,
and later on Mule ESB v3.1 will also be used. So I am thinking of
installing jbpm among v3.2.x with Drools v5.3 Final and JBoss AS v 5.1.
Will these components work together?

Also, jbpm Enterprise Supports v3. So is there much difference between the
enterprise version of jbpm v3 and the community versions of v3.2.x

Thanks  Regards,
Sumeet Karawal
Mailto: sumeet.kara...@tcs.com



  From:   Swindells, Thomas tswinde...@nds.com


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


  Date:   11/11/2011 02:56 PM


  Subject:Re: [rules-users] jbpm 3.2.x verssion .


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







It's java. As long as you have a compatible JVM then it should run.
Have you encountered any problems using it?

Thomas

 -Original Message-
 From: rules-users-boun...@lists.jboss.org [mailto:rules-users-
 boun...@lists.jboss.org] On Behalf Of Sumeet Karawal
 Sent: 11 November 2011 09:12
 To: rules-users@lists.jboss.org
 Subject: [rules-users] jbpm 3.2.x verssion .


 Hi,

 Can any body let me know whether jbpm v 3.2.8 is compatible with sun
 solaris. If not then which of the versions among v3.2.x is compatible
with it.
 As I have to install it in both Windows and Sun Solaris.


 Thanks in advance,
 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


**


This message is confidential and intended only for the addressee. If you
have received this message in error, please immediately notify the
postmas...@nds.com and delete it from your system as well as any copies.
The content of e-mails as well as traffic data may be monitored by NDS for
employment and security purposes. To protect the environment please do not
print this e-mail unless necessary.

NDS Limited. Registered Office: One London Road, Staines, Middlesex, TW18
4EX, United Kingdom. A company registered in England and Wales. Registered
no. 3080780. VAT no. GB 603 8808 40-00

Re: [rules-users] Showstopper issues for Drools Adoption in our organization

2011-11-11 Thread Edson Tirelli
   Ivan,

   The more complex your problem gets, more technologies you will need to
employ to solve it properly. Indeed Drools does not work directly with
persistent storages, because its focus is on the efficient processing of
business rules, processes and events, delegating the management of
persistent and historical data to specialized tools (all kinds of
databases, caches, etc). But Drools integrates with them by several
different means, including pulling data from them on demand.

   I suggest you watch the presentation Drools and Large Data Sets by
Alexandre Porcelli, at the bootcamp in Argentina back in June:
http://blog.athico.com/2011/08/drools-jbpm5-sessions-argentina-june.html .
The solution is obviously tailored to the problem in question (constantly
dealing with 30 million rows of historical data with high performance if I
remember correctly), as any solutions for any major problems are. In other
words, using each tool for what they do best and build the puzzle from
there.

   Regarding your second point, my understanding is that it has nothing to
do with Drools per se. Does not matter if you implement your rules in
Drools, in Java, or any other technology/language, you will have the same
mapping problem. Solutions for that include a translator for the rules as
you mentioned, or a translator for the data (smooks is a good open source
one), or even use an adapter fact model that allows rules to work under the
user friendly model, but execute actions on the engineering model.

   Hope it helps,

   Edson

On Fri, Nov 11, 2011 at 5:53 AM, kapokfly ivan.jiang...@foxmail.com wrote:

 Not sure if these are also your questions you might have with the rule
 engine
 adoption, but we have seen 2 showstopper issues for drools adoption in our
 organization, or it is just because we are lack of some necessary
 knowledge.

 Issue 1) : pattern match for large data

 There are cases in a rule we need find matched records against a large
 population of data and perform some actions.

 Example:
From 2 millions employee directory, find those belongs to Depart1 and
 with salary increased by 10% last year.

Inserting all these employee's data into WorkingMemory is HUGE and
 mission impossible, we can't simply load the entire db into the working
 memory, do we have any other approach to accomplish or this is just not a
 use case can be resolved by a rule engine?


 Issue 2): Map business object to real engineering implementation

 What we are trying to do is to build a rule UI which a business user
 without
 engineering background of our codebase can work with; the business object
 we
 show on the UI might be different with the real engineering objects already
 in system, for example, on the UI a user might be able to able to see
 something like person.address.addressLine1 but the actually implementation
 might not be an object traverse implementation.

 Example, the model could be Long Person.addressId ; then referring to his
 address we need another lookup and we want to hide such complexity to the
 end user.

 The approach we took is to design a translation layer to translate the user
 input to drools rule string, is this the right approach?

 If not, any suggestions? I know Drools is mainly designed for developers
 but
 just trying to see if there is any way we can work it around.

 Thanks and looking forward to your recommendations.

 Ivan








 -
 Ivan, your Panda, forever
 --
 View this message in context:
 http://drools.46999.n3.nabble.com/Showstopper-issues-for-Drools-Adoption-in-our-organization-tp3499367p3499367.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




-- 
  Edson Tirelli
  JBoss Drools Core Development
  JBoss by Red Hat @ www.jboss.com
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Functions not generated from decision tables with Drools 5.2

2011-11-11 Thread Michael Anstis
It would be best to create a JIRA to record and track the issue.

Are you planning on providing a git pull request for the fix?

On 11 November 2011 13:12, Heinz Drews heinz.dr...@gmail.com wrote:

 Many thanks.

 I will check the SpreadsheetCompiler to add a trim before checking.

 Should I open a jira?


 2011/11/11 Michael Anstis michael.ans...@gmail.com:
  You have a space after the keyword Functions .
 
  Removing this solves the problem.
 
  2011/11/11 Heinz Drews heinz.dr...@gmail.com
 
  I have reduced the original XLS, but the problem still exists.
 
 
  2011/11/11 Michael Anstis michael.ans...@gmail.com:
   Something must be wrong.
  
   Providing your spreadsheet would be helpful.
  
   On 11 November 2011 10:11, hdrews heinz.dr...@gmail.com wrote:
  
   I have a decision table with functions but they are not contained in
   the
   generated DRL.
  
   What have I to do to fix this?
  
   -- Heinz
  
   --
   View this message in context:
  
  
 http://drools.46999.n3.nabble.com/Functions-not-generated-from-decision-tables-with-Drools-5-2-tp3499285p3499285.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

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


Re: [rules-users] Guvnor (5.3.0 Final)- Rule using accumulate with windows:length delivers an unexpected result

2011-11-11 Thread Michael Anstis
Are you able to test standalone with Drools 5.3.0.Final, as this is what
Guvnor 5.3.0.Final uses.

Also, is the standalone DRL identical to that you use in Guvnor?

On 11 November 2011 12:56, axel axel.poeschm...@solutions.endress.comwrote:

 *** Update ***

 Meanwhile, I've checked the same rule and test case standalone as Mike
 suggested. I used an Eclipse Drools Project (including 5.2.0 Final
 runtime).
 But the same rule works fine there, as I originally expected.

 It seems to me a problem with Guvnor 5.3.0 Final and underlaying toolchain.
 But, to get it running within Eclipse Drools Project I had to do slight
 modifications because importing the files from the Guvnor repository did
 not
 work (Files (model.drl, and rule.brl) were included in the project but did
 not compile within my Eclipse environment).
 1) I changed the model using Java classes in Eclipse. In Guvnor I did it
 within the Model Editor getting a DRL type file for it.
 2) In Guvnor I had a BRL type file for the rule itself and I took the
 source
 code from the view in a new DRL-File within Eclipse.

 Any suggestions, how I get it run in Guvnor? Thanks.

 Best regards,

 Axel



 --
 View this message in context:
 http://drools.46999.n3.nabble.com/rules-users-Guvnor-5-3-0-Final-Rule-using-accumulate-with-windows-length-delivers-an-unexpected-resut-tp3489548p3499624.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] Showstopper issues for Drools Adoption in our organization

2011-11-11 Thread kapokfly
Hi Edson, 

Thanks for the informative reply. Will take a look and see how we can
proceed and share our thought with you. 

Best wishes...

Ivan

-
Ivan, your Panda, forever
--
View this message in context: 
http://drools.46999.n3.nabble.com/Showstopper-issues-for-Drools-Adoption-in-our-organization-tp3499367p3499901.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] Fw: jbpm 3.2.x verssion .....

2011-11-11 Thread Mauricio Salatino
You are asking in a Drools mailing list about jBPM 3.2.x.
Both, drools and jbpm 3.2 are java frameworks that you can use.
It really depends on what do you want to do and how do you want to do it.
For jbpm 3.x version the greater the version the better and stable is.

Cheers

On Fri, Nov 11, 2011 at 10:30 AM, Sumeet Karawal sumeet.kara...@tcs.comwrote:


 Hi,

 I have to meet an urgent requirement and not getting any information
 regarding which of these version is stable. Could any body please help me
 on this.

 Is it better to use jbpm v 3.2.2 or jbpm v 3.2.8 with Drools v5.3 and JBoss
 AS v5.1.
 or any other version of jbpm among v3.2.x

 Thanks  Regards,
 Sumeet Karawal
 Mailto: sumeet.kara...@tcs.com

 - Forwarded by Sumeet Karawal/MUM/TCS on 11/11/2011 11:16 PM -

  From:   Sumeet Karawal sumeet.kara...@tcs.com

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

   Date:   11/11/2011 03:11 PM

  Subject:Re: [rules-users] jbpm 3.2.x verssion .

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






 Thanks Thomas

 No, I am a little confused which version to use. I visited the site
 http://sourceforge.net/projects/jbpm/files/jBPM%203/. Here the maximum
 downloads are for v 3.2.2  and the latest among these is v3.2.8. It would
 be very helpful if you could suggest me which one to use among the versions
 3.2.x. As my requirement is to use jbpm v3.2.x with Drools and Jboss AS,
 and later on Mule ESB v3.1 will also be used. So I am thinking of
 installing jbpm among v3.2.x with Drools v5.3 Final and JBoss AS v 5.1.
 Will these components work together?

 Also, jbpm Enterprise Supports v3. So is there much difference between the
 enterprise version of jbpm v3 and the community versions of v3.2.x

 Thanks  Regards,
 Sumeet Karawal
 Mailto: sumeet.kara...@tcs.com



  From:   Swindells, Thomas tswinde...@nds.com


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


  Date:   11/11/2011 02:56 PM


  Subject:Re: [rules-users] jbpm 3.2.x verssion .


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







 It's java. As long as you have a compatible JVM then it should run.
 Have you encountered any problems using it?

 Thomas

  -Original Message-
  From: rules-users-boun...@lists.jboss.org [mailto:rules-users-
  boun...@lists.jboss.org] On Behalf Of Sumeet Karawal
  Sent: 11 November 2011 09:12
  To: rules-users@lists.jboss.org
  Subject: [rules-users] jbpm 3.2.x verssion .
 
 
  Hi,
 
  Can any body let me know whether jbpm v 3.2.8 is compatible with sun
  solaris. If not then which of the versions among v3.2.x is compatible
 with it.
  As I have to install it in both Windows and Sun Solaris.
 
 
  Thanks in advance,
  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



 **


 This message is confidential and intended only for the addressee. If you
 have received this message in error, please immediately notify the
 postmas...@nds.com and delete it from your system as well as any copies.
 The content of e-mails as well as traffic data may be monitored by NDS for
 employment and security purposes. To protect the environment please do not
 print this e-mail unless necessary.

 NDS Limited. Registered Office: One London Road, Staines, Middlesex, TW18
 4EX, United Kingdom. A company registered in England and Wales. Registered
 no. 3080780. VAT no. GB 603 8808 40-00

 **



 ___
 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




-- 
 - CTO @ http://www.plugtree.com
 - MyJourney @ http://salaboy.wordpress.com
 - Co-Founder @ http://www.jugargentina.org
 - Co-Founder @ http://www.jbug.com.ar

 - Salatino Salaboy Mauricio -

[rules-users] Human Task - ERROR : JPAKnowledgeService.newStatefulKnowledgeSession ... + persistence.xml

2011-11-11 Thread S.M.H.Jamali
i share persistence.xmlhere
yes i configure the persistence with JTA but i dont sure about correctness of 
it !

 
i have some other files beside persistence.xml that maybe can help : 
ormTask.xml
JBPMorm.xml
jboss-web.xml

Thanks 

S.M.H.Jamali



From: Mauricio Salatino sala...@gmail.com
To: S.M.H.Jamali cpp...@yahoo.com; Rules Users List 
rules-users@lists.jboss.org
Sent: Wednesday, November 9, 2011 8:22 PM
Subject: Re: [rules-users] Human Task - ERROR : 
JPAKnowledgeService.newStatefulKnowledgeSession ...


You will need to solve that problem. looks like a configuration problem, can 
you share the persistence.xml file? did you configure persistence with JTA?
Cheers


2011/11/9 S.M.H.Jamali cpp...@yahoo.com

Hello all,


I get an exception while last line of below method executed : 



    public StatefulKnowledgeSession createSession() throws Exception {
        
        /*
         * Create the knowledgebase using the required bpmn and drl files
         */
        KnowledgeBase kbase = readKnowledgeBase(HumanTask.bpmn);
        EntityManagerFactory emf = Persistence.createEntityManagerFactory( 
org.jbpm.persistence.jpa );
        Environment env =
 KnowledgeBaseFactory.newEnvironment();
        env.set( EnvironmentName.ENTITY_MANAGER_FACTORY, emf );
        env.set( EnvironmentName.TRANSACTION_MANAGER, 
TransactionManagerServices.getTransactionManager() );
        env.set( EnvironmentName.GLOBALS, new MapGlobalResolver() );
        
        Properties properties = new Properties();
        properties.put(drools.processInstanceManagerFactory, 
org.jbpm.persistence.processinstance.JPAProcessInstanceManagerFactory);
        properties.put(drools.processSignalManagerFactory, 
org.jbpm.persistence.processinstance.JPASignalManagerFactory);
        KnowledgeSessionConfiguration config =
 KnowledgeBaseFactory.newKnowledgeSessionConfiguration(properties);
    
        return JPAKnowledgeService.newStatefulKnowledgeSession(kbase, config, 
env);
            
    }

 
its stack-trace is : 

14:26:13,111 WARN  [JtaTransactionManager] Participating in existing JTA 
transaction, but no JTA TransactionManager or 
TransactionSychronizationRegistry available: 
java.lang.NullPointerException
    at 
org.drools.persistence.jta.JtaTransactionManager.registerTransactionSynchronization(JtaTransactionManager.java:221)
    at 
org.drools.persistence.SingleSessionCommandService.registerRollbackSync(SingleSessionCommandService.java:333)
    at 
org.drools.persistence.SingleSessionCommandService.init(SingleSessionCommandService.java:123)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)...

Can anyone help me to solve this problem ?
Thanks in advance
S.M.H.Jamali
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users




-- 
 - CTO @ http://www.plugtree.com  
 - MyJourney @ http://salaboy.wordpress.com
 - Co-Founder @ http://www.jugargentina.org
 - Co-Founder @ http://www.jbug.com.ar
 
 - Salatino Salaboy Mauricio -



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


[rules-users] Drools Builder does not close xls-files after compiling to rules. Was: Issues with Eclipse Excel Plugin for Drools Decision Tables

2011-11-11 Thread Andreas Schlüter
Hi all

Thanks again. Based on the feedback from this list and own investigation I
tracked down my issues with using Excel Decision Tables Via Eclipse.

It seems to be in fact a Drools tooling issue, namely related to the Drools
Builder Component

This tool is on the one hand very convenient to do interactive debugging of
a decision table (initial development, before end users fill it the single
lines of the sheet), since you get direct feedback on errors in the Project
Build and even can jump into the excel sheet at the right place. 

On the other hand, it has the bug I mentioned: It opens the file but does
not close it, so that a subsequent edit of the file in Excel only gets a
read-only copy. 
If I turn it off, the error disappears (but no compilation happens), if I
turn it on it is there back again. 

It seems to be a bug in the drools builder, but I do not know whether I can
create an issue there.

Regards,

Andreas

--
View this message in context: 
http://drools.46999.n3.nabble.com/Issues-with-Eclipse-Excel-Plugin-for-Drools-Decision-Tables-tp3491115p3500105.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] Date comparison

2011-11-11 Thread Deshpande, Prasad
Hi,
As per documentation, I'm trying to use a simple rule for date comparison,

rule EFP_14
when
v:ResourceValue(QName == A.datetime, value  01-nov-2011)
then
System.out.println(-- Rule executed);
end

but I get following error while executing rule.

Not possible to compare a class java.util.Date with a class java.lang.String

It's actually default date format so should work, why is it complaining for 
class casting? Am I doing something wrong here?



BancTec Limited.
Registered Office: Jarman House, Mathisen Way, Poyle Road, Colnbrook, Berkshire 
SL3 0HF. Incorporated in England  Wales : 1283512. VAT : GB 228 4783 38.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Date comparison

2011-11-11 Thread prasad.deshpande
Sorry forgot to mention, I'm using 5.2 released version

--
View this message in context: 
http://drools.46999.n3.nabble.com/Date-comparison-tp3500194p3500227.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] Functions not generated from decision tables with Drools 5.2

2011-11-11 Thread Michael Anstis
BTW, if you need a hand setting up your environment just ask.

It should be quite straight forward and there is a helpful README.md file
that explains the necessary steps.

On 11 November 2011 17:10, Michael Anstis michael.ans...@gmail.com wrote:

 Hi Heinz,

 I've stayed purposefully quiet on the dialect attribute, but you force my
 hand ;)

 I agree with Wolfgang that users are *likely* to set the attribute for the
 whole Ruleset however it is a rule-level attribute at the DRL level and
 hence should be supported as the same in other authoring metaphors; besides
 you can guarantee if we implement it at the decision table level they'll be
 users asking for it to be made available at the rule level to mirror DRL's
 capabilities.

 Furthermore, I am starting some new features that will allow DRL
 snippets to be used in the web-based decision table that'll bring us
 closed to being able to provide round-tripping between Excel and Guvnor for
 authoring decision tables (i.e. import from Excel into the web-based one
 and export from there to Excel). The web-based decision table has provided
 a row-level dialect attribute since (AFAIK) it's inception and Excel based
 decision tables must therefore support the same if we are to convert
 between the two.

 Therefore, if you do add the dialect attribute could you do so at the
 row level to ensure compatibility with the web-based equivalent.

 With kind regards,

 Mike


 On 11 November 2011 16:57, Heinz Drews heinz.dr...@gmail.com wrote:

 I currently only use the sources which are part of the distribution
 but I will pull them from git.
 Just looking for the information how to setup a development environment.

 Because I can get also only one row with Functions working I will dig
 deeper,
 Also looking into the inclusion of dialect



 2011/11/11 Michael Anstis michael.ans...@gmail.com:
  It would be best to create a JIRA to record and track the issue.
 
  Are you planning on providing a git pull request for the fix?
 
  On 11 November 2011 13:12, Heinz Drews heinz.dr...@gmail.com wrote:
 
  Many thanks.
 
  I will check the SpreadsheetCompiler to add a trim before checking.
 
  Should I open a jira?
 
 
  2011/11/11 Michael Anstis michael.ans...@gmail.com:
   You have a space after the keyword Functions .
  
   Removing this solves the problem.
  
   2011/11/11 Heinz Drews heinz.dr...@gmail.com
  
   I have reduced the original XLS, but the problem still exists.
  
  
   2011/11/11 Michael Anstis michael.ans...@gmail.com:
Something must be wrong.
   
Providing your spreadsheet would be helpful.
   
On 11 November 2011 10:11, hdrews heinz.dr...@gmail.com wrote:
   
I have a decision table with functions but they are not
 contained in
the
generated DRL.
   
What have I to do to fix this?
   
-- Heinz
   
--
View this message in context:
   
   
   
 http://drools.46999.n3.nabble.com/Functions-not-generated-from-decision-tables-with-Drools-5-2-tp3499285p3499285.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
 
 
  ___
  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] Spring, KnowledgeAgent, and Guvnor

2011-11-11 Thread paulB
I'm having a problem connecting my KnowledgeAgent to a package in Guvnor. 
I'm using Spring to instantiate the KnowledgeAgent.  The agent initializes
perfectly well when I point to a local change-set that in-turn points to a
local rule.  However, even though I have the same rule in a package in
Guvnor, the KnowledgeAgent fails with the following exception when I point
to the package's change-set in Guvnor:




The code at KnowledgeBaseImpl.java:148 is (using 5.3.0.Final):




Here is the simple rule in the Guvnor as returned by the URL for the package
source URL:




Here is the local change-set definition.  The line that is commented is the
failing resource, whereas the local file resource works fine:




Guvnor is residing on a Tomcat server.

I could not find anything related to this on the forum.  Thank you for any
hints.

-Paul

--
View this message in context: 
http://drools.46999.n3.nabble.com/Spring-KnowledgeAgent-and-Guvnor-tp3500761p3500761.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] Using Drools with JSP application.

2011-11-11 Thread sachintaware
Hello
 I have created a project as per the instructions Mike but,I am not sure
how to move fwd in writing rules in the jsp and the location of the drl
files as I am constantly getting errors.

I am attaching a image of my eclipse project structure if you can just point
at the folders where I can add the drl's.Also,how can I create a session in
the jsp(a small piece for a hello world program,so that I can move along the
same lines) .
http://drools.46999.n3.nabble.com/file/n3501858/eclipse.bmp 

Thanks and Regards
Sachin 

--
View this message in context: 
http://drools.46999.n3.nabble.com/Using-Drools-with-JSP-application-tp3498955p3501858.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