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
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
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
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
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
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
Maybe this should be reported as a new bug to Drools team?
--
View this message in context:
http://drools.46999.n3.nabble.com/Functions-with-array-parameters-double-cease-to-compile-in-5-2-0-tp3251260p3260980.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
I don't think it is new - it's a form of what I reported in
JBRULES-3117https://issues.jboss.org/browse/JBRULES-3117
-W
On 17 August 2011 10:32, ru soro...@oogis.ru wrote:
Maybe this should be reported as a new bug to Drools team?
--
View this message in context:
Thank you very much for the help.
Sincerely,
Ru
--
View this message in context:
http://drools.46999.n3.nabble.com/Functions-with-array-parameters-double-cease-to-compile-in-5-2-0-tp3251260p3261553.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
Situation definitely treaky - I am working as author on DroolsTab plugin to
Protege (http://protegewiki.stanford.edu/wiki/DroolsTab). In this project
drl file is generated programmatically and sent through pipe to
PackageBuilder. I did some experiments as you suggested. Results:
1. Only one
Indeed. It seems that, from 5.2.0 on, when there is a DRL file containing a
function with a signature that contains a parameter that is an array of some
simple type foo (int, double,...) and a scalar parameter of the same type
and another function with a similar signature, an inappropriate syntax
I just found that this is apparently a variant of
JBRULES-3117https://issues.jboss.org/browse/JBRULES-3117
-W
On 16 August 2011 20:49, Wolfgang Laun wolfgang.l...@gmail.com wrote:
Indeed. It seems that, from 5.2.0 on, when there is a DRL file containing a
function with a signature that
function ArrayList nextPoint( int N, int t1, int sec, double[] a, double v )
{ int Nxt = N+1;
int Nxt2 = Nxt * 2;
if(Nxt2 = a.length-1)
return null;
int N2 = N * 2;
double p1 = a[N2];
double l1 = a[N2+1];
double p2 = a[Nxt2];
double l2 = a[Nxt2+1];
double D = GreatCircle.sphericalDistance(p1,
Alas, I have the same problem with this code:
function ArrayList nextPoint( int N, int t1, int sec, double[] a, double v )
{ int Nxt = N+1;
int Nxt2 = Nxt * 2;
if(Nxt2 = a.length-1)
return null;
int N2 = N * 2;
double p1 = a[N2];
double l1 = a[N2+1];
double p2 = a[Nxt2];
double l2 =
I thought you might have - it's bound to be some freaky situation you must
have run into. I suggest that you experiment a little.
Does this error happen when you have nothing but a function with this
signature on a .drl file?
Does it also occur with some other simple type, or with a class?
Do
How about giving a complete example?
-W
On 13 August 2011 12:11, ru soro...@oogis.ru wrote:
Hello drools users and team,
My functions with array parameters (double[]) cease to compile in 5.2.0.
Error message is:
In package ActionExecutor error: [ prevPoint : unable to resolve type while
I thought about adding that, but I feel like we would just be
reimplementing java, in this case. So, if you need anything else other than
simple java beans, you should implement it as a java class.
Regarding the constructor, I might still add a constructor that receives
all fields as
+1 on the full constructor.
GreG
On Aug 9, 2010, at 3:58 PM, Edson Tirelli tire...@post.com wrote:
I thought about adding that, but I feel like we would just be
reimplementing java, in this case. So, if you need anything else other than
simple java beans, you should implement it as a java
Hehe, ok, you convinced me Greg! ;)
https://jira.jboss.org/browse/JBRULES-2652
Edson
2010/8/9 Greg Barton greg_bar...@yahoo.com
+1 on the full constructor.
GreG
On Aug 9, 2010, at 3:58 PM, Edson Tirelli tire...@post.com wrote:
I thought about adding that, but I feel like we
Chris,
If you are creating a function library, why don't you create it as static
methods in a java class? easier to develop, to unit test and you can use
import function in the DRL to import all of them.
[]s
Edson
2009/6/18 Chris Richmond crichm...@referentia.com
Ok…I am trying
...@lists.jboss.org] On Behalf Of Edson Tirelli
Sent: Thursday, June 18, 2009 1:15 PM
To: Rules Users List
Subject: Re: [rules-users] functions
Chris,
If you are creating a function library, why don't you create it as static
methods in a java class? easier to develop, to unit test and you can
:* Thursday, June 18, 2009 1:15 PM
*To:* Rules Users List
*Subject:* Re: [rules-users] functions
Chris,
If you are creating a function library, why don't you create it as
static methods in a java class? easier to develop, to unit test and you can
use import function in the DRL to import all
:* rules-users-boun...@lists.jboss.org [mailto:
rules-users-boun...@lists.jboss.org] *On Behalf Of *Edson Tirelli
*Sent:* Thursday, June 18, 2009 1:15 PM
*To:* Rules Users List
*Subject:* Re: [rules-users] functions
Chris,
If you are creating a function library, why don't you create
Of *Edson Tirelli
*Sent:* Thursday, June 18, 2009 2:25 PM
*To:* Rules Users List
*Subject:* Re: [rules-users] functions
Chris,
I understand. Although functions in DRL files where conceived to be very
simple things to reside with the rules. So, although you can have a DRL file
Place it inside an eval(). Use the regular $ syntax for paramenters.
[]s
Edson
2008/9/19 javier [EMAIL PROTECTED]
Hello,
It is posible to write a function over the rule template of a CONDITION in
a Decision Table?
I mean instead of write the rule template:
James Carman wrote:
Can I use a function to calculate my dynamic salience
(http://blog.athico.com/2007/05/dynamic-salience-expressions.html)?
you should be able to, give it a try and log a JIRA if it can't.
26 matches
Mail list logo