A lot to think about, it will take a little time to dissect this.
Thank you!
--
View this message in context:
http://drools.46999.n3.nabble.com/Evaluate-rules-for-multiple-facts-of-the-same-type-within-a-StateuflSession-tp4022157p4022476.html
Sent from the Drools: User forum mailing list archi
Hi,
The drools project contains Grid, GridNode interfaces + implementation into
2 different maven modules
- drools-grid-impl &
- drools-spring
but interface definitions are different
Questions:
1) Is it planned to remove interfaces from drools-spring maven module ?
2) Do we need same interfaces
I was looking at the code for StatelessKnowledgeSessionImpl and
both execute methods dispose of the wrapped StatefulKnowledgeSession. The
calls to dispose however are not in finally blocks. Should they be? If
so, I have a local update for which I can issue a pull request.
Thanks,
Julian
___
Thanks, Mark. I am avoiding inference by storing the results of rules
execution in memory and then firing the rules against those at a later
point in the program execution. This workaround enables me to more
directly control data flow and use a Stateless Session.
In regards to my original post,
On 19 Feb 2013, at 15:57, Julian Klein wrote:
> Ok, so I reviewed my code again and found a spot where I am queuing up tasks
> to process data that hadn't been loaded. My application shouldn't spawn a
> rule sessions in the case. I have also moved to a sever with less RAM and
> will begin p
I would consider using comparable lists, where
workorderSkill.compareTo(employeeSkills) can be true for the same skill.
When
$workorder : WorkOrder( $requiredSkills : skills)
$workorderSkill : Skill ( ) from $requiredSkills
$employee : Employee( ski
I assume Engineer().skillEngineerList() is a Collection of SkillEngineer facts
for the selected engineer. So there is no need to bind SkillEngineer facts that
you extract from the engineer to the engineer, the binding is implicit in the
POJO relationship.
But more importantly, why are you bindi
Yes.. Its working now. I placed my ChangeSet.xml file in the bin folder and
it did the trick.
However, it takes too long for the app to display any results
--
View this message in context:
http://drools.46999.n3.nabble.com/Unable-to-find-rules-package-tp4022466p4022469.html
Sent from the Drool
If you paste the URL into a browser do you get the Pkg file to download?
sent on the move
On 19 Feb 2013 19:45, "IPatel" wrote:
> Hi
>
> I have following code to load the package into knowledgebase. However i am
> getting FileNotFound error.
>
> KnowledgeBuilder kbuilder = KnowledgeBuilderFact
Inside my planning a priority would be considered a soft constraing right?
I created a Enum class with 6 priority going from P1 to P6. How can I add
it to my SimpleScoreCalculator? (the lower the number is, the higher is
the priority)
For example, i have 7 workorders, each one have a requiredWork
Hi
I have following code to load the package into knowledgebase. However i am
getting FileNotFound error.
KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
kbuilder.add(ResourceFactory.newUrlResource("http://localhost:8080/guvnor-5.5.0.Final-jboss-as-
ismaximum wrote
> Just to let you know that I've raised an issue:
> https://issues.jboss.org/browse/DROOLS-44
I just fixed this issue.
Thanks for having reported it,
Mario
--
View this message in context:
http://drools.46999.n3.nabble.com/ClassCastException-after-migrating-from-Drools-4-x-to
I forgot to post the code:
public HardAndSoftScore calculateScore(Distributor distributor) {
int hardScore = 0;
int softScore = 0;
for (Engineer e : distributor.getEngineerList()){
long skill = e.getSkillEngineerList().get(0).getSkill().getId();
int requiredWorktime = 0;
List requiredSkillList =
I managed solving that problem even when there's more than one skill
involved, but now my hard constraint of worktime breaks if I add more
worktime than the sum of engineers worktime.
(8) is the worktime, my workorders all have a worktime of 4 hours, so, I
got 32 available hours and 32 hours of wo
Try adding namespace prefix to element jaasConfigName.
You can try security: or s:
I remember seeing some post that indicated that prefix was omitted in error.
--
View this message in context:
http://drools.46999.n3.nabble.com/Drools-Guvnor-User-authentication-tp4022448p4022462.html
Sent from t
Thanks, that is what I need.
>but that's for you to resolve.
I will :-)
-
http://www.codessentials.com - Your essential software, for free!
Follow us at http://twitter.com/#!/Codessentials
From: Wolfgang Laun
To: Michiel Vermandel ; Rules U
Assuming you want to deal with one PeopleMatch at a time:
when
$match : PeopleMatch( $people: people )
$match: Number( intValue < 0 )
from accumulate( $task : Task(handler memberOf $people), ...
I have some misgivings due to "intValue<0" and Matcher not being
assignment-
Just one correction, it is sorting correctly when there's one workorder
with a skill, if there's another workorder with same skill, it doesn't sort
that workorder to that skill.
This is what is happening:
Workorder skill ABC1 Engineer skill ABC1
Workorder skill ABC2 ---
Hi,
I am kind of stuck in writing a rule :
I have PeopleMatch facts in working memory.
Each PeopleMatch has a number of persons: PeopleMatch().getPeople =
List
I have planning-entities (Tasks) which have a planning-variable Person.
Now I would like to create a rule to loop over the PeopleMa
Ok, so I reviewed my code again and found a spot where I am queuing up
tasks to process data that hadn't been loaded. My application shouldn't
spawn a rule sessions in the case. I have also moved to a sever with less
RAM and will begin profiling as soon as possible. Here is where I stand
as of
Hello, since i'm not moving a step from where I am at dsl rule, I'm trying
to do it with SimpleScoreCalculator, but the same is happening.
public HardAndSoftScore calculateScore(Distributor distributor) {
int hardScore = 0;
int softScore = 0;
for (Engineer e : distributor.getEngineer
If I declare an event like:
declare Signature
@role ( event )
@timestamp(timestamp)
end
where timestamp is a long value set to the System.currentTimestamp()
and if I have a rule that has in it
$s : Signature(name=="")
not(Signature(name=="XXX", this after [0s,50h] $s))
If i insert a Sig
Based in Copenhagen, Denmark. But we are willing to work remotely.
-Br
Anton
On Tue, Feb 19, 2013 at 4:05 PM, cusmaimatteo [via Drools] <
ml-node+s46999n4022453...@n3.nabble.com> wrote:
> Hi Anton,
> where is this job?
>
>
>
>
> On Tue, Feb 19, 2013 at 3:51 PM, kurrent93 <[hidden
> email]
Hi Anton,
where is this job?
On Tue, Feb 19, 2013 at 3:51 PM, kurrent93 wrote:
> Hi all
>
> I represent a small startup. Our core technology is based on Jboss Drools
> and jBPM.
>
> We are seeking dedicated help from an expert or two.
>
> I would greatly appreciate any leads or interest.
>
>
In case anyone else has this problem, I've managed to do it using System
properties:
System.setProperty("drools.removeIdentities", "true");
But ideally I'd still like to be able to do it via the Kagent if possible..
--
View this message in context:
http://drools.46999.n3.nabble.com/RemoveIde
Hi all
I represent a small startup. Our core technology is based on Jboss Drools
and jBPM.
We are seeking dedicated help from an expert or two.
I would greatly appreciate any leads or interest.
FYI. I have already tried contacting Redhat and Plugtree.
Kind regards
Anton
--
View this messag
Why's my rule not working properly? I'm pointing my engineer and workorder
filling with my list of skills, even so, it is not correctly giving the
workorder to engineer.
There is an available engineer with a skill
and there is an unassigned workorder with skill
and workorder skill is equals to eng
Yes, I was just wondering if I could use a pattern binding variable
instead of a pattern. I guess I cannot. David
David R Robison
Open Roads Consulting, Inc.
103 Watson Road, Chesapeake, VA 23320
phone: (757) 546-3401
e-mail: drrobi...@openroadsconsulting.com
web: http://openroadsconsulting.com
b
You need to add authentication in the ChangeSet.xml. Unfortunately the one
that Guvnor creates for you doesn't include it. So you need to download the
ChangeSet.xml into your project and load it using .newClassPathResource or
.newFileResource instead.
You also need to add authentication to the Ch
There's a minor problem with the syntax
On 19/02/2013, Stephen Masters wrote:
> Assuming that you don't have an infinite variety of accumulations you're
> trying to use, something I have done previously is to create DRL technical
> rule to generate accumulated values, which the DSL then uses as
>
Hi,
I'm using a KnowledgeAgent to create a KnowledgeBase. However, I need to
turn off Identities. In previous projects (not using knowledgeAgent) I've
done:
RuleBaseConfiguration conf = new RuleBaseConfiguration();
conf.setRemoveIdentities( true );
KnowledgeBase kbase = KnowledgeBaseFactory.newK
See a few comments at the end.
rule "assign discount"
when
$c: Cart( discount == null, $on: online, $citems: items, $age:
age, $shipping: shipping )
$p: Param( online == $on, $pdisc: discount, $pitems: items,
minage <= $age,
shipping == Param.NA_SHIPPING || ==
Assuming that you don't have an infinite variety of accumulations you're trying
to use, something I have done previously is to create DRL technical rule to
generate accumulated values, which the DSL then uses as constraints.
i.e.
rule "Generate sensor counts"
when
$sensor : Sensor()
laune wrote
> I'm confident that there's a clean and manageable way of preparing
> this data to work in combination with a small and constant set of
> rules. I refrain from elaborating this in all details without knowing
> all of the requirements.
I'll try to summarize them as properly as I can..
Check if your agent xml file is correct. I am using this one and it work
fine so far:
String xml = "";
xml += "http://drools.org/drools-5.0/change-set\"";;
xml += "
xmlns:xs=\"http://www.w3.org/2001/XMLSchema-instance\"";;
xml += "
xs:schemaLocation=\"http://d
On 19/02/2013, pdario wrote:
> laune wrote
>>> I have a first level discount if you pay online and a second level
>>> discount
>>> if you pay online AND buy a special product.
>>> So, the second is true only if the first is.
>>
>> Not *quite* correct: you have 1st level discount if you pay online
laune wrote
>> I have a first level discount if you pay online and a second level
>> discount
>> if you pay online AND buy a special product.
>> So, the second is true only if the first is.
>
> Not *quite* correct: you have 1st level discount if you pay online and
> DO NOT buy a special product.
37 matches
Mail list logo