Getting Error while using Drools 5.3.0
by mkhan_rt54fde
Hi,
My application works fine with Drools v 4.0.7. However, when I run my
application using Drools 5.3.0, I am getting the following error:
org.drools.rule.InvalidRulePackage: Evaluator '>' does not support type
'ValueType = 'String' : [Rule name='VIN required for newer vehicles']
at org.drools.rule.Package.checkValidity(Package.java:478)
at
org.drools.common.AbstractRuleBase.addPackages(AbstractRuleBase.java:481)
at org.drools.reteoo.ReteooRuleBase.addPackages(ReteooRuleBase.java:458)
at org.drools.reteoo.ReteooRuleBase.addPackage(ReteooRuleBase.java:465)
Here is the condition I am using in my .dsl file:
[condition][]request contains no VIN and the car was built after year
{value}=info: CarRulesInfo(quoteRequest.VIN == null, quoteRequest.modelyear
> 1982 )
Any suggestions on how to fix this problem.
Thanks in advance.
--
View this message in context: http://drools.46999.n3.nabble.com/Getting-Error-while-using-Drools-5-3-0-...
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years, 6 months
Even to check if all the rules have been fired
by sumatheja
Hi All,
I'm using a stateful knowledge session in my project, where *
ksession.fireUntilHalt()* will trigger the rules as and when the facts are
inserted. I,m developing a functionaly where I need to insert some new
facts and and retract them once the valid rules have been fired. I'm unable
to find the exact event listener to check if all the valid rules have been
fired. Do I need to handle this case(is it implicitly handled)?
*AfterActivationFiredEvent
*seems to be activated after successfully firing each rule, so I feel this
wont serve the purpose. Thanks in advance.
--
cheers
Sumatheja Dasararaju
12 years, 6 months
Advanced Enum options not working in Guvnor 5.4 Decision table
by worldofprasanna
Hi,
Am trying to use the Enums which are dependent on other enums (similar to
that of engineType and petrolType example given in the doc). But this
feature works well for Business rule not in case of Decision table. In
decision table, I got the engineType updated with the enum values while
petrolType is still displaying Textbox to enter the values.
code :
'Item.category':['Consumer','Electronics']
'Item.subcategory[category=Consumer]':['Television','Radio']
'Item.subcategory[category=Electronics]':['Apple','Sony']
Kindly let me know how can I use Advanced Enum option in Decision table.
Thanks,
Prasanna.
--
View this message in context: http://drools.46999.n3.nabble.com/Advanced-Enum-options-not-working-in-Gu...
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years, 6 months
Drools 5.3 Salience
by gboro54
I know using salience is not the best way to order rules but some of our
rules do have a higher priority then others. Since we are writing the rules
using a DSL I have created set set of Priority levels which set the
salience. One of these levels set salience to 0(default value). Is there any
harm in putting this on every rule with no priority for consistence when
reading the rules.
TIA
--
View this message in context: http://drools.46999.n3.nabble.com/Drools-5-3-Salience-tp3955545.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years, 6 months
Re: [rules-users] Does Drools have a Rules Authoring engine?
by gboro54
Rule authoring in Drools can be done in 2 ways: with the Eclipse or Guvnor. I
am not sure what you mean by a Rules Authoring Engine though. What
requirements to you have for rule authoring? Are business users or developer
authoring rules?
vsm wrote
>
> Drools is a Business Rules Management Engine. I wanted to know if Drools
> has any front-end application that does Rules Authoring?
>
> If yes, then let me know some additional details about it.
> If not, then any suggestions on which Rules Authoring engine would be a
> good alternative with Drools?
>
> Thanks in advance!
>
--
View this message in context: http://drools.46999.n3.nabble.com/Does-Drools-have-a-Rules-Authoring-engi...
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years, 6 months
Query for a fact, and concurrent rule execution
by stelomax
Hi,
Please bear with me, I am relatively new to the world of Drools and have a
question. I am hoping it will be a simple issue.
First let me frame my planned implementation at a high level. I am hoping
to use Drools as a real time service enabled quote validation tool.
Facts representing products and attributes will be loaded into a stateful
knowledge session upon boot (using a piece of Java that loads these as facts
from our product DB).
The front-end application will allow users to build up quotes consisting of
quote lines that make references to these products. Once the quote is built
they will press a "Validate" button. This will call a webservice that will:
1) Insert the quote details as facts into the knowledge session
2) Run a "rule flow" to validate the quote against the product facts
3) The rules will insert validation results as facts tagged against the
quote
4) QUERY for the validation results
5) Retract the facts for the quote (inc validation results)
6) Send the validation results back as a response to the webservice call
My first question is how to implement step 4 --> how to physically query for
the validation results pertaining to that specific quote. Any help here
would be greatly appreciated.
My second question relates to concurrency. As this is a quote validation
tool there will be multiple users validating quotes so we will get
concurrent validation requests.
What is the recommended manner of dealing with concurrent rule requests
within a stateful knowledge session. If 2 people attempt to validate a
different quote at the same time we will have two quotes within the
knowledge session together with all of the product facts. Is drools capable
of running two concurrent rule flows against the knowledge session, each
referencing a different quote or would we need to instantiate 2 knowledge
sessions, or even deal with the matter in a serial manner placing the 2nd
quote validation flow on hold until the first completes?
Any help/pointers would be great. I am hoping someone out there has
attempted to use Drools in a similar manner :)
Many Thanks
Ste
--
View this message in context: http://drools.46999.n3.nabble.com/Query-for-a-fact-and-concurrent-rule-ex...
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years, 6 months
Re: [rules-users] DRL to DT
by FrankVhh
The ignorant poster in the next post had an issue that has some remarkable
resemblances with your case:
http://drools.46999.n3.nabble.com/Decision-Table-td2150980.html
There is a sample xls attached somewhere that should help answering your
questions.
Regards,
Frank
drools_newbie wrote
>
> Hello All,
>
> I'm trying to write one simple rule
> (As I have in .drl file)
> dialect "mvel"
> rule "Forst"
> no-loop
> when
> $weather: Weather(temperature < -12.0)
> $assignment:Assignment()
> then
> modify($assignment){
> message="very cold !!!",
> level=Assignment.MAINROADSANDCITYCENTERS;
> }
> end
> in a Decision table. How do I declare *assignment* object type in decision
> table?
>
> Thanks,
> Anita
>
--
View this message in context: http://drools.46999.n3.nabble.com/DRL-to-DT-tp3953737p3954924.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years, 6 months
R: R: Using GUVNOR for FUSION RULES
by Carolina Pellecchia
Good morning Mike,
thanks for suggestion, but I'd not use drl to write my rules.
I have one other question,
Can I invoke a static method, with input parameters, without drl?
specifically, I'd like to do this
insert( SituationManager.createAccessControlEvent( $obs, "Access Control
Detection", Event.THREAT_NO, $location, $sensor));
Any help would be much appreciated.
With kind regards,
Carolina Pellecchia
________________________________________
Da: rules-users-bounces(a)lists.jboss.org [rules-users-bounces(a)lists.jboss.org]
per conto di Michael Anstis [michael.anstis(a)gmail.com]
Inviato: venerdì 27 aprile 2012 17.55
A: Rules Users List
Oggetto: Re: [rules-users] R: Using GUVNOR for FUSION RULES
Hi,
You'll have to use the "Add free-form DRL" action.
With kind regards,
Mike
On 27 April 2012 16:46, Pellecchia Carolina <
c.pellecchia(a)vitrociset.it<mailto:c.pellecchia@vitrociset.it>> wrote:
Hi Mike,
the issue has been solved by updating the version from 5.3.0 to 5.4.0.CR1.
I have one other question,
How can I create an instance of type without default constructor?
otherwise
how can I invoke a constructor with parameters?
specifically,
6. | then
7. | AccessControlEvent fact0 = new
AccessControlEvent(?$obsh?,? "Access Control Detection"?);
Thanks a lot in advance,
Carolina Pellecchia
________________________________________
Da:
rules-users-bounces(a)lists.jboss.org<mailto:rules-users-bounces@lists.jboss.org>
[rules-users-bounces(a)lists.jboss.org<
mailto:rules-users-bounces@lists.jboss.org<rules-users-bounces(a)lists.jboss.org>>]
per conto di Michael Anstis [michael.anstis(a)gmail.com<
mailto:michael.anstis@gmail.com <michael.anstis(a)gmail.com>>]
Inviato: venerdì 27 aprile 2012 13.25
A: Rules Users List
Oggetto: Re: [rules-users] Using GUVNOR for FUSION RULES
And the screenshot ;)
On 27 April 2012 12:24, Michael Anstis <
michael.anstis(a)gmail.com<mailto:michael.anstis@gmail.com><mailto:michael.anstis@gmail.com<mailto:michael.anstis@gmail.com>>>
wrote:
What version of Guvnor are you using?
I attach a screenshot produced using 5.4.0.CR1.
I also note your screenshot shows "All ACObeservation" where as mine "There
is a TelephoneCall"
Can you describe the steps you have taken, or supply a repository export?
On 27 April 2012 12:12, Pellecchia Carolina <
c.pellecchia(a)vitrociset.it<mailto:c.pellecchia@vitrociset.it><mailto:c.pellecchia@vitrociset.it<mailto:c.pellecchia@vitrociset.it>>>
wrote:
Hi Mike,
I couldn't bind a field because the click on the field doesn't work.
concretely, please see attached.
Thank you in advance,
Carolina Pellecchia
---------- Forwarded message ----------
From: Michael Anstis <
michael.anstis(a)gmail.com<mailto:michael.anstis@gmail.com><mailto:michael.anstis@gmail.com<mailto:michael.anstis@gmail.com>><mailto:michael.anstis@gmail.com<mailto:michael.anstis@gmail.com><mailto:michael.anstis@gmail.com<mailto:michael.anstis@gmail.com
>>>>
Date: Fri, Apr 27, 2012 at 11:26 AM
Subject: Re: [rules-users] Using GUVNOR for FUSION RULES
To: Rules Users List <
rules-users(a)lists.jboss.org<mailto:rules-users@lists.jboss.org><mailto:rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org>><mailto:rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org><mailto:rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org
>>>>
Glad to be of assistance.
To bind a field, once the field has been added to the Fact type simply
click on the field name.
With kind regards,
Mike
On 27 April 2012 08:31, Pellecchia Carolina <
c.pellecchia(a)vitrociset.it<mailto:c.pellecchia@vitrociset.it><mailto:c.pellecchia@vitrociset.it<mailto:c.pellecchia@vitrociset.it>><mailto:c.pellecchia@vitrociset.it<mailto:c.pellecchia@vitrociset.it><mailto:c.pellecchia@vitrociset.it<mailto:c.pellecchia@vitrociset.it>>>>
wrote:
Hi Mike,
I’m a colleague of Matteo Cusmai, we would like to thank you for your
suggestions. you have been very helpful.
Following your steps, I couldn't understand a point: how can I bind a
field(for ex. RadiationObservation.location) to a variable?
specifically,
$obs : RadiationObservation(?$obsLocation : location? ) over
window:length (1) from entry-point "lowLevelSensorStream"
Best regards,
Carolina Pellecchia
________________________________________
Da:
rules-users-bounces(a)lists.jboss.org<mailto:rules-users-bounces@lists.jboss.org><mailto:rules-users-bounces@lists.jboss.org<mailto:rules-users-bounces@lists.jboss.org>><mailto:rules-users-bounces@lists.jboss.org<mailto:rules-users-bounces@lists.jboss.org><mailto:rules-users-bounces@lists.jboss.org<mailto:rules-users-bounces@lists.jboss.org>>>
[rules-users-bounces(a)lists.jboss.org<
mailto:rules-users-bounces@lists.jboss.org><mailto:rules-users-bounces@lists.jboss.org<mailto:rules-users-bounces@lists.jboss.org>><mailto:rules-users-bounces@lists.jboss.org<mailto:rules-users-bounces@lists.jboss.org><mailto:rules-users-bounces@lists.jboss.org<mailto:rules-users-bounces@lists.jboss.org<rules-users-bounces(a)lists.jboss.org><mailto:rules-users-bounces@lists.jboss.org<mailto:rules-users-bounces@lists.jboss.org>><mailto:rules-users-bounces@lists.jboss.org<mailto:rules-users-bounces@lists.jboss.org><mailto:rules-users-bounces@lists.jboss.org<mailto:rules-users-bounces@lists.jboss.org>>>>]
per conto di
rules-users-request(a)lists.jboss.org<mailto:rules-users-request@lists.jboss.org><mailto:rules-users-request@lists.jboss.org<mailto:rules-users-request@lists.jboss.org>><mailto:rules-users-request@lists.jboss.org<mailto:rules-users-request@lists.jboss.org><mailto:rules-users-request@lists.jboss.org<mailto:rules-users-request@lists.jboss.org>>>
[rules-users-request(a)lists.jboss.org<
mailto:rules-users-request@lists.jboss.org><mailto:rules-users-request@lists.jboss.org<mailto:rules-users-request@lists.jboss.org>><mailto:rules-users-request@lists.jboss.org<mailto:rules-users-request@lists.jboss.org><mailto:rules-users-request@lists.jboss.org<mailto:rules-users-request@lists.jboss.org<rules-users-request(a)lists.jboss.org><mailto:rules-users-request@lists.jboss.org<mailto:rules-users-request@lists.jboss.org>><mailto:rules-users-request@lists.jboss.org<mailto:rules-users-request@lists.jboss.org><mailto:rules-users-request@lists.jboss.org<mailto:rules-users-request@lists.jboss.org>
>>>]
Inviato: giovedì 26 aprile 2012 19.07
A:
rules-users(a)lists.jboss.org<mailto:rules-users@lists.jboss.org><mailto:rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org>><mailto:rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org><mailto:rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org
>>>
Oggetto: rules-users Digest, Vol 65, Issue 93
Send rules-users mailing list submissions to
rules-users(a)lists.jboss.org<mailto:rules-users@lists.jboss.org><mailto:rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org>><mailto:rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org><mailto:rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org
>>>
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.jboss.org/mailman/listinfo/rules-users
or, via email, send a message with subject or body 'help' to
rules-users-request(a)lists.jboss.org<mailto:rules-users-request@lists.jboss.org><mailto:rules-users-request@lists.jboss.org<mailto:rules-users-request@lists.jboss.org>><mailto:rules-users-request@lists.jboss.org<mailto:rules-users-request@lists.jboss.org><mailto:rules-users-request@lists.jboss.org<mailto:rules-users-request@lists.jboss.org
>>>
You can reach the person managing the list at
rules-users-owner(a)lists.jboss.org<mailto:rules-users-owner@lists.jboss.org><mailto:rules-users-owner@lists.jboss.org<mailto:rules-users-owner@lists.jboss.org>><mailto:rules-users-owner@lists.jboss.org<mailto:rules-users-owner@lists.jboss.org><mailto:rules-users-owner@lists.jboss.org<mailto:rules-users-owner@lists.jboss.org
>>>
When replying, please edit your Subject line so it is more specific
than "Re: Contents of rules-users digest..."
Today's Topics:
1. Re: Setting variables in a stateless session (Welsh, Armand)
2. Re: Using GUVNOR for FUSION RULES (Michael Anstis)
3. Re: Guvnor guided editor and non argument constructor
(Michael Anstis)
4. looking for advice (Bobby Richards)
5. Re: Guvnor guided editor and non argument constructor
(Vincent LEGENDRE)
6. Re: Guvnor guided editor and non argument constructor (Sean Su)
----------------------------------------------------------------------
Message: 1
Date: Thu, 26 Apr 2012 15:57:11 +0000
From: "Welsh, Armand" <AWelsh(a)StateStreet.com>
Subject: Re: [rules-users] Setting variables in a stateless session
To: "
rules-users(a)lists.jboss.org<mailto:rules-users@lists.jboss.org><mailto:rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org>><mailto:rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org><mailto:rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org>>>"
<
rules-users(a)lists.jboss.org<mailto:rules-users@lists.jboss.org><mailto:rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org>><mailto:rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org><mailto:rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org
>>>>
Message-ID:
<
D52DE19B4C463C4BA21F81790B9F079543084863(a)GDCPW3376.corp.statestr.com<mailto:D52DE19B4C463C4BA21F81790B9F079543084863@GDCPW3376.corp.statestr.com><mailto:D52DE19B4C463C4BA21F81790B9F079543084863@GDCPW3376.corp.statestr.com<mailto:D52DE19B4C463C4BA21F81790B9F079543084863@GDCPW3376.corp.statestr.com>><mailto:D52DE19B4C463C4BA21F81790B9F079543084863@GDCPW3376.corp.statestr.com<mailto:D52DE19B4C463C4BA21F81790B9F079543084863@GDCPW3376.corp.statestr.com><mailto:D52DE19B4C463C4BA21F81790B9F079543084863@GDCPW3376.corp.statestr.com<mailto:D52DE19B4C463C4BA21F81790B9F079543084863@GDCPW3376.corp.statestr.com
>>>>
Content-Type: text/plain; charset="us-ascii"
Think of a stateless knowledge session as being a statefull knowledge
session, with the following adjustments:
A stateless knowledge session cannot be manipulated prior the start of the
session.
A stateless knowledge session cannot be manipulated or queried after the
end of the session.
A stateless session begins when you execute the fireallrules method.
A stateless session ends when the rule processing terminates. -- There is
no pause, there is no restarting. The instant the rules stop firing, and
return to your calling code, the knowledge session has been torn down.
-----Original Message-----
From:
rules-users-bounces(a)lists.jboss.org<mailto:rules-users-bounces@lists.jboss.org><mailto:rules-users-bounces@lists.jboss.org<mailto:rules-users-bounces@lists.jboss.org>><mailto:rules-users-bounces@lists.jboss.org<mailto:rules-users-bounces@lists.jboss.org><mailto:rules-users-bounces@lists.jboss.org<mailto:rules-users-bounces@lists.jboss.org>>>
[mailto:rules-users-bounces@lists.jboss.org<
mailto:rules-users-bounces@lists.jboss.org><mailto:rules-users-bounces@lists.jboss.org<mailto:rules-users-bounces@lists.jboss.org>><mailto:rules-users-bounces@lists.jboss.org<mailto:rules-users-bounces@lists.jboss.org><mailto:rules-users-bounces@lists.jboss.org<mailto:rules-users-bounces@lists.jboss.org<rules-users-bounces(a)lists.jboss.org><mailto:rules-users-bounces@lists.jboss.org<mailto:rules-users-bounces@lists.jboss.org>><mailto:rules-users-bounces@lists.jboss.org<mailto:rules-users-bounces@lists.jboss.org><mailto:rules-users-bounces@lists.jboss.org<mailto:rules-users-bounces@lists.jboss.org>>>>]
On Behalf Of bardelman
Sent: Thursday, April 26, 2012 2:06 AM
To:
rules-users(a)lists.jboss.org<mailto:rules-users@lists.jboss.org><mailto:rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org>><mailto:rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org><mailto:rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org
>>>
Subject: [rules-users] Setting variables in a stateless session
hi folks, this is a simple question ,
i just want to understand how is it possible that a stateless session have a
setGlobal() method as it does not maintain a state. What's the point ?!
i also have some confusion between a "request scope" and a "stateless
session scope" i think it s the same..
--
View this message in context:
http://drools.46999.n3.nabble.com/Setting-variables-in-a-stateless-sessio...
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org<mailto:rules-users@lists.jboss.org><mailto:rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org>><mailto:rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org><mailto:rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org
>>>
https://lists.jboss.org/mailman/listinfo/rules-users
------------------------------
Message: 2
Date: Thu, 26 Apr 2012 15:52:09 +0100
From: Michael Anstis <
michael.anstis(a)gmail.com<mailto:michael.anstis@gmail.com><mailto:michael.anstis@gmail.com<mailto:michael.anstis@gmail.com>><mailto:michael.anstis@gmail.com<mailto:michael.anstis@gmail.com><mailto:michael.anstis@gmail.com<mailto:michael.anstis@gmail.com
>>>>
Subject: Re: [rules-users] Using GUVNOR for FUSION RULES
To: Rules Users List <
rules-users(a)lists.jboss.org<mailto:rules-users@lists.jboss.org><mailto:rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org>><mailto:rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org><mailto:rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org
>>>>
Message-ID:
<
CAAG9P0tN=HqTJ9hkJHDiQGBk=_10o4f810-bQBhbTFwUtO-fEQ(a)mail.gmail.com<mailto:10o4f810-bQBhbTFwUtO-fEQ@mail.gmail.com><mailto:10o4f810-bQBhbTFwUtO-fEQ@mail.gmail.com<mailto:10o4f810-bQBhbTFwUtO-fEQ@mail.gmail.com>><mailto:10o4f810-bQBhbTFwUtO-fEQ@mail.gmail.com<mailto:10o4f810-bQBhbTFwUtO-fEQ@mail.gmail.com><mailto:10o4f810-bQBhbTFwUtO-fEQ@mail.gmail.com<mailto:10o4f810-bQBhbTFwUtO-fEQ@mail.gmail.com
>>>>
Content-Type: text/plain; charset="iso-8859-1"
Sure.
- Create "New Rule"
- Add a condition (green + near "WHEN")
- Select "From Entry Point"
- Type "lowLevelSensorStream" into TextBox
- Click on "click to add patterns..."
- Select your Fact Type (see * below)
- In "Over sliding window" ListBox select "Length"
- Type "1" into the TextBox next to "Length".
* OK, so this is possibly where you're having problems.
In order for a Fact Type to be used with CEP it needs to be annotated as an
Event. This is how this can be accomplished:-
*If you have a Declarative Model
*
- Open the Declarative Model
- Select the Fact Type that should be an Event
- Add an Annotation, name="role", key="value", value="event"
- Save
*If you have a POJO Model*
- Create a new Declarative Model
- Add a Fact Type that matches the name of that in your JAR
- Add an Annotation, name="role", key="value", value="event"
- Save
Annotating your POJO is covered in the Drools Expert User Guide. You are
just using Guvnor to achieve what is required.
With kind regards,
Mike
On 26 April 2012 15:22, Matteo Cusmai <
cusmaimatteo(a)gmail.com<mailto:cusmaimatteo@gmail.com><mailto:cusmaimatteo@gmail.com<mailto:cusmaimatteo@gmail.com>><mailto:cusmaimatteo@gmail.com<mailto:cusmaimatteo@gmail.com><mailto:cusmaimatteo@gmail.com<mailto:cusmaimatteo@gmail.com>>>>
wrote:
> Hi Mike,
> thanks for suggestion, but i have already read documentation.
>
> First of all, i cannot define "over window:length(1) from entry-point
> lowLevelSensorStream".
> Do you help me to do this?
>
> Best Regards,
> Matteo.
>
>
>
> On Thu, Apr 26, 2012 at 11:32 AM, Michael Anstis <
michael.anstis(a)gmail.com<mailto:michael.anstis@gmail.com><mailto:michael.anstis@gmail.com<mailto:michael.anstis@gmail.com>><mailto:michael.anstis@gmail.com<mailto:michael.anstis@gmail.com><mailto:michael.anstis@gmail.com<mailto:michael.anstis@gmail.com
>>>
> > wrote:
>
>> Yes this is possible with Guvnor 5.2 onwards.
>>
>> The user-guide explains how to use the Guided Rule Editor (but not
>> specifically CEP features).
>>
>> Read that and give it a try - it's reasonably intuitive (not an excuse
>> for poor documentation though) and come back here with questions.
>>
>> With kind regards,
>>
>> Mike
>>
>> On 26 April 2012 09:08, Matteo Cusmai <
cusmaimatteo(a)gmail.com<mailto:cusmaimatteo@gmail.com><mailto:cusmaimatteo@gmail.com<mailto:cusmaimatteo@gmail.com>><mailto:cusmaimatteo@gmail.com<mailto:cusmaimatteo@gmail.com><mailto:cusmaimatteo@gmail.com<mailto:cusmaimatteo@gmail.com>>>>
wrote:
>>
>>> Hi all,
>>> i am novice on GUVNOR, but i would like to define my fusion rules by
>>> graphical tool.
>>>
>>> An example of my rules is:
>>>
>>> rule "radiation-event"
>>> salience 10
>>> no-loop
>>> when
>>> $obs : RadiationObservation( $obsLocation : location, value >
>>> 10 ) over window:length(1) from entry-point lowLevelSensorStream
>>> not RadiationEvent( this meets[ 25s ] $obs, location
>>> geoIsWithinDistance[ 5m ] $obsLocation )
>>> then
>>> insert(new RadiationEvent( $obs, "Radiation over 10",
>>> Event.THREAT_HIGH, $obsLocation, $obs.getSensor() ));
>>> end
>>>
>>> rule "radiation-update"
>>> salience 5
>>> no-loop
>>> when
>>> $obs : RadiationObservation( $obsLocation : location, value >
>>> 10 ) over window:length(1) from entry-point lowLevelSensorStream
>>> $event : RadiationEvent( this meets[ 25s ] $obs, location
>>> geoIsWithinDistance[ 5m ] $obsLocation )
>>> then
>>> Event e = Event.clone($event);
>>> e.addObservation($obs);
>>> insert( e );
>>> retract($event);
>>> retract($obs);
>>> end
>>>
>>> Is it possibile to define rules such the above using GUVNOR?
>>> Are there some documentation or tutorial?
>>>
>>> Thanks a lot in advance,
>>> Matteo Cusmai.
>>>
>>> _______________________________________________
>>> rules-users mailing list
>>>
rules-users(a)lists.jboss.org<mailto:rules-users@lists.jboss.org><mailto:rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org>><mailto:rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org><mailto:rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org
>>>
>>> https://lists.jboss.org/mailman/listinfo/rules-users
>>>
>>>
>>
>> _______________________________________________
>> rules-users mailing list
>>
rules-users(a)lists.jboss.org<mailto:rules-users@lists.jboss.org><mailto:rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org>><mailto:rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org><mailto:rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org
>>>
>> https://lists.jboss.org/mailman/listinfo/rules-users
>>
>>
>
> _______________________________________________
> rules-users mailing list
>
rules-users(a)lists.jboss.org<mailto:rules-users@lists.jboss.org><mailto:rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org>><mailto:rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org><mailto:rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org
>>>
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.jboss.org/pipermail/rules-users/attachments/20120426/31ab515...
------------------------------
Message: 3
Date: Thu, 26 Apr 2012 14:40:27 +0100
From: Michael Anstis <
michael.anstis(a)gmail.com<mailto:michael.anstis@gmail.com><mailto:michael.anstis@gmail.com<mailto:michael.anstis@gmail.com>><mailto:michael.anstis@gmail.com<mailto:michael.anstis@gmail.com><mailto:michael.anstis@gmail.com<mailto:michael.anstis@gmail.com
>>>>
Subject: Re: [rules-users] Guvnor guided editor and non argument
constructor
To: Rules Users List <
rules-users(a)lists.jboss.org<mailto:rules-users@lists.jboss.org><mailto:rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org>><mailto:rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org><mailto:rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org
>>>>
Message-ID:
<
CAAG9P0tnkU2nLzXduz03si26uL-wFtRAA=0ogGAF05OJEZ4dGw(a)mail.gmail.com<mailto:0ogGAF05OJEZ4dGw@mail.gmail.com><mailto:0ogGAF05OJEZ4dGw@mail.gmail.com<mailto:0ogGAF05OJEZ4dGw@mail.gmail.com>><mailto:0ogGAF05OJEZ4dGw@mail.gmail.com<mailto:0ogGAF05OJEZ4dGw@mail.gmail.com><mailto:0ogGAF05OJEZ4dGw@mail.gmail.com<mailto:0ogGAF05OJEZ4dGw@mail.gmail.com
>>>>
Content-Type: text/plain; charset="iso-8859-1"
Seems reasonable enough.
On 26 April 2012 14:36, Sean Su <
sean.x.su(a)gmail.com<mailto:sean.x.su@gmail.com><mailto:sean.x.su@gmail.com<mailto:sean.x.su@gmail.com>><mailto:sean.x.su@gmail.com<mailto:sean.x.su@gmail.com><mailto:sean.x.su@gmail.com<mailto:sean.x.su@gmail.com>>>>
wrote:
> It seems that the new fact created by the guided editor must be from
> the java class that has the default non argument constructor in
> Guvnor. There seems no way we can customize it to pass arguments in.
> This would force us to provide setters to the object.
>
> Is this a true statement?
>
> Thanks
>
> Sean
>
> Sent from my iPad
> _______________________________________________
> rules-users mailing list
>
rules-users(a)lists.jboss.org<mailto:rules-users@lists.jboss.org><mailto:rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org>><mailto:rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org><mailto:rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org
>>>
> https://lists.jboss.org/mailman/listinfo/rules-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.jboss.org/pipermail/rules-users/attachments/20120426/75a0a7a...
------------------------------
Message: 4
Date: Thu, 26 Apr 2012 11:42:41 -0500
From: Bobby Richards <
bobby.richards(a)gmail.com<mailto:bobby.richards@gmail.com><mailto:bobby.richards@gmail.com<mailto:bobby.richards@gmail.com>><mailto:bobby.richards@gmail.com<mailto:bobby.richards@gmail.com><mailto:bobby.richards@gmail.com<mailto:bobby.richards@gmail.com
>>>>
Subject: [rules-users] looking for advice
To:
rules-users(a)lists.jboss.org<mailto:rules-users@lists.jboss.org><mailto:rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org>><mailto:rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org><mailto:rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org
>>>
Message-ID:
<
CAAqkdrv7Nv1WMByZsd+XM=OZvetnEOFk03x7QaTGyNc6wAbccQ(a)mail.gmail.com<mailto:OZvetnEOFk03x7QaTGyNc6wAbccQ@mail.gmail.com><mailto:OZvetnEOFk03x7QaTGyNc6wAbccQ@mail.gmail.com<mailto:OZvetnEOFk03x7QaTGyNc6wAbccQ@mail.gmail.com>><mailto:OZvetnEOFk03x7QaTGyNc6wAbccQ@mail.gmail.com<mailto:OZvetnEOFk03x7QaTGyNc6wAbccQ@mail.gmail.com><mailto:OZvetnEOFk03x7QaTGyNc6wAbccQ@mail.gmail.com<mailto:OZvetnEOFk03x7QaTGyNc6wAbccQ@mail.gmail.com
>>>>
Content-Type: text/plain; charset="iso-8859-1"
I have not yet determined how I want to implement my problem and was hoping
to get some feedback.
I am using drools to migrate the logic from my automated currency trading
infrastructure. Each currency pair, i.e. eurusd has around
200 attributes associated with it.
This includes range values (high, low, average) for multiple time periods,
volatility information, bid/ask updates etc.
Currently I have classes associated for each, so say for range:
class Range {
double high;
double low;
double avg;
}
Range europe = new Range(); //european trading hours
Range us = new Range(); //us trading hours
Questions:
1. I am wondering if I should not just create a map that lists every
attribute per pair as a key ("eurusd:range:europe:high")? So essentially
my drools session will have one fact, not counting the incoming quotes. I
see on the list that this was a problem before the mvel updates but that
was a while ago.
2. When an incoming quote might modify a value, what is the performance
difference between using a rule to change the value or making the changes
outside of the ksession and referencing the facthandler to modify? Is one
method considered 'cleaner'?
Thanks,
Bobby
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.jboss.org/pipermail/rules-users/attachments/20120426/2b86c5f...
------------------------------
Message: 5
Date: Thu, 26 Apr 2012 18:48:37 +0200 (CEST)
From: Vincent LEGENDRE <
vincent.legendre(a)eurodecision.com<mailto:vincent.legendre@eurodecision.com><mailto:vincent.legendre@eurodecision.com<mailto:vincent.legendre@eurodecision.com>><mailto:vincent.legendre@eurodecision.com<mailto:vincent.legendre@eurodecision.com><mailto:vincent.legendre@eurodecision.com<mailto:vincent.legendre@eurodecision.com
>>>>
Subject: Re: [rules-users] Guvnor guided editor and non argument
constructor
To: Rules Users List <
rules-users(a)lists.jboss.org<mailto:rules-users@lists.jboss.org><mailto:rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org>><mailto:rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org><mailto:rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org
>>>>
Message-ID:
<
1c470056-3677-4bd2-a1eb-368610b51999(a)confiance.eurodecision.fr<mailto:1c470056-3677-4bd2-a1eb-368610b51999@confiance.eurodecision.fr><mailto:1c470056-3677-4bd2-a1eb-368610b51999@confiance.eurodecision.fr<mailto:1c470056-3677-4bd2-a1eb-368610b51999@confiance.eurodecision.fr>><mailto:1c470056-3677-4bd2-a1eb-368610b51999@confiance.eurodecision.fr<mailto:1c470056-3677-4bd2-a1eb-368610b51999@confiance.eurodecision.fr><mailto:1c470056-3677-4bd2-a1eb-368610b51999@confiance.eurodecision.fr<mailto:1c470056-3677-4bd2-a1eb-368610b51999@confiance.eurodecision.fr
>>>>
Content-Type: text/plain; charset="utf-8"
JavaBeans convention : all default constructible and plenty of setters (for
writeable properties) and getters (for readeable properties)
----- Mail original -----
De: "Michael Anstis" <
michael.anstis(a)gmail.com<mailto:michael.anstis@gmail.com><mailto:michael.anstis@gmail.com<mailto:michael.anstis@gmail.com>><mailto:michael.anstis@gmail.com<mailto:michael.anstis@gmail.com><mailto:michael.anstis@gmail.com<mailto:michael.anstis@gmail.com
>>>>
?: "Rules Users List" <
rules-users(a)lists.jboss.org<mailto:rules-users@lists.jboss.org><mailto:rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org>><mailto:rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org><mailto:rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org
>>>>
Envoy?: Jeudi 26 Avril 2012 15:40:27
Objet: Re: [rules-users] Guvnor guided editor and non argument constructor
Seems reasonable enough.
On 26 April 2012 14:36, Sean Su <
sean.x.su(a)gmail.com<mailto:sean.x.su@gmail.com><mailto:sean.x.su@gmail.com<mailto:sean.x.su@gmail.com>><mailto:sean.x.su@gmail.com<mailto:sean.x.su@gmail.com><mailto:sean.x.su@gmail.com<mailto:sean.x.su@gmail.com>>>
> wrote:
It seems that the new fact created by the guided editor must be from
the java class that has the default non argument constructor in
Guvnor. There seems no way we can customize it to pass arguments in.
This would force us to provide setters to the object.
Is this a true statement?
Thanks
Sean
Sent from my iPad
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org<mailto:rules-users@lists.jboss.org><mailto:rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org>><mailto:rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org><mailto:rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org
>>>
https://lists.jboss.org/mailman/listinfo/rules-users
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org<mailto:rules-users@lists.jboss.org><mailto:rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org>><mailto:rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org><mailto:rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org
>>>
https://lists.jboss.org/mailman/listinfo/rules-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.jboss.org/pipermail/rules-users/attachments/20120426/29fa984...
------------------------------
Message: 6
Date: Thu, 26 Apr 2012 13:06:57 -0400
From: Sean Su <
sean.x.su(a)gmail.com<mailto:sean.x.su@gmail.com><mailto:sean.x.su@gmail.com<mailto:sean.x.su@gmail.com>><mailto:sean.x.su@gmail.com<mailto:sean.x.su@gmail.com><mailto:sean.x.su@gmail.com<mailto:sean.x.su@gmail.com
>>>>
Subject: Re: [rules-users] Guvnor guided editor and non argument
constructor
To: Rules Users List <
rules-users(a)lists.jboss.org<mailto:rules-users@lists.jboss.org><mailto:rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org>><mailto:rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org><mailto:rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org
>>>>
Message-ID: <-6645870489207221519@unknownmsgid>
Content-Type: text/plain; charset="iso-8859-1"
What I am prototyping is part of the event processing (with or without
fusion). I want to use the rules created by the Guvnor to create the new
events. However, as you would understand, once the event has been created,
it should not be modified as it happened in the past.
So I am trying to avoid setters if possible.
Sean
Sent from my iPad
On Apr 26, 2012, at 12:49 PM, Vincent LEGENDRE <
vincent.legendre(a)eurodecision.com<mailto:vincent.legendre@eurodecision.com><mailto:vincent.legendre@eurodecision.com<mailto:vincent.legendre@eurodecision.com>><mailto:vincent.legendre@eurodecision.com<mailto:vincent.legendre@eurodecision.com><mailto:vincent.legendre@eurodecision.com<mailto:vincent.legendre@eurodecision.com>>>>
wrote:
JavaBeans convention : all default constructible and plenty of setters (for
writeable properties) and getters (for readeable properties)
------------------------------
*De: *"Michael Anstis" <
michael.anstis(a)gmail.com<mailto:michael.anstis@gmail.com><mailto:michael.anstis@gmail.com<mailto:michael.anstis@gmail.com>><mailto:michael.anstis@gmail.com<mailto:michael.anstis@gmail.com><mailto:michael.anstis@gmail.com<mailto:michael.anstis@gmail.com
>>>>
*?: *"Rules Users List" <
rules-users(a)lists.jboss.org<mailto:rules-users@lists.jboss.org><mailto:rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org>><mailto:rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org><mailto:rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org
>>>>
*Envoy?: *Jeudi 26 Avril 2012 15:40:27
*Objet: *Re: [rules-users] Guvnor guided editor and non argument constructor
Seems reasonable enough.
On 26 April 2012 14:36, Sean Su <
sean.x.su(a)gmail.com<mailto:sean.x.su@gmail.com><mailto:sean.x.su@gmail.com<mailto:sean.x.su@gmail.com>><mailto:sean.x.su@gmail.com<mailto:sean.x.su@gmail.com><mailto:sean.x.su@gmail.com<mailto:sean.x.su@gmail.com>>>>
wrote:
> It seems that the new fact created by the guided editor must be from
> the java class that has the default non argument constructor in
> Guvnor. There seems no way we can customize it to pass arguments in.
> This would force us to provide setters to the object.
>
> Is this a true statement?
>
> Thanks
>
> Sean
>
> Sent from my iPad
> _______________________________________________
> rules-users mailing list
>
rules-users(a)lists.jboss.org<mailto:rules-users@lists.jboss.org><mailto:rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org>><mailto:rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org><mailto:rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org
>>>
> https://lists.jboss.org/mailman/listinfo/rules-users
>
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org<mailto:rules-users@lists.jboss.org><mailto:rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org>><mailto:rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org><mailto:rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org
>>>
https://lists.jboss.org/mailman/listinfo/rules-users
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org<mailto:rules-users@lists.jboss.org><mailto:rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org>><mailto:rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org><mailto:rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org
>>>
https://lists.jboss.org/mailman/listinfo/rules-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.jboss.org/pipermail/rules-users/attachments/20120426/26a2bda...
------------------------------
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org<mailto:rules-users@lists.jboss.org><mailto:rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org>><mailto:rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org><mailto:rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org
>>>
https://lists.jboss.org/mailman/listinfo/rules-users
End of rules-users Digest, Vol 65, Issue 93
*******************************************
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org<mailto:rules-users@lists.jboss.org><mailto:rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org>><mailto:rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org><mailto:rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org
>>>
https://lists.jboss.org/mailman/listinfo/rules-users
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org<mailto:rules-users@lists.jboss.org><mailto:rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org>><mailto:rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org><mailto:rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org
>>>
https://lists.jboss.org/mailman/listinfo/rules-users
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org<mailto:rules-users@lists.jboss.org><mailto:rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org
>>
https://lists.jboss.org/mailman/listinfo/rules-users
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org<mailto:rules-users@lists.jboss.org>
https://lists.jboss.org/mailman/listinfo/rules-users
12 years, 6 months