Nested access to process variables
by marton.bokor
Hi,
I have some process variabless passed via map in startProcess. AFAIU these
represent the current state of my process instance so what I would like to
do is compare these in a condition of a wait state node against an inserted
fact, which would be the dynamic (changing) part (Because I imagined that
this is what wait nodes are mostly good for, hope I'm right...). AFAIK this
node accepts only rule syntax (no mvel or java) so ATM I managed to do it
with eval, see code below, but it is ugly:
transaction : TransactionDAO( ) #this is the changing part
processInstance : WorkflowProcessInstance() #this is the process level
eval(
((APSSender)((BaseForm)processInstance.getVariable("form")).getDao()).getTransactionId().equals(transaction.getTransactionId())
)
As you can see the left side in eval is a nested object. In java it would
look like simply form.getDao().getTransactionId(). My question is how can I
do it with rule syntax without eval? Is it possible? I was experimenting
like a whole day with no success. Please help!
Thanks
Marton
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Nested-access-to-proc...
Sent from the Drools - User mailing list archive at Nabble.com.
14 years, 2 months
error while running a dsl
by Kripa Nathwani
Hello,
I have written the following simple DSL in Drools:
[when]employee belongs to a particular state{state}=$employee:employee (statename=="{state}");
[then]Greet Employee=System.out.println("Hello");
I have also created the corresponding model with a field named "state".
When I try to create business rule for the same and when I validate the rule I get the following error:
Unable to create Field Extractor for 'statename' of '[ClassObjectType class=dslDemoPackage.employee]' in rule 'testdsl'
Let me know how I can resolve.
Best Regards,
Kripa
________________________________
This Email may contain confidential or privileged information for the intended recipient (s) If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system.
______________________________________________________________________
14 years, 2 months
Drools 5.1 framework codebase
by Swapnil Sawant
Hi,
I have my application built on some framework. I am using drools 5.1 in my
app as a rule engine
and would be using drools for implementing workflow too.
I am thinking of integrating my app's framework with framework for drools
Drools is an open-source package. Hence, I would want to get the drools 5.1
framework codebase which can be setup,studied,customized and run when
needed. Also, if there is any documentation related to framework , please
share that too.
Thanks,
Swapnil Sawant
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Drools-5-1-framework-...
Sent from the Drools - User mailing list archive at Nabble.com.
14 years, 2 months
How to modify changeset.xml in guvnor
by rtowler1
I apologize now if this is the wrong forum, I'm a Drools noobie.
I'm trying to get the mortgage example working using jboss 5.0.1GA server
running drools 5.1.1 guvnor.
I get the 401 unauthorized http response, which is due to the 5.1 using
authentication.
I've read the posts about modifying the changeset.xml to include
authentication.
But I cannot see how to change the changeset.xml file from within Guvnor and
although the URL is given to the ChangeSet.xml file, I believe that it's
probably generated on the fly as I cannot find it in the server's
directories.
If someone could point me in the right direction for this I'd appreciate it.
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/How-to-modify-changes...
Sent from the Drools - User mailing list archive at Nabble.com.
14 years, 2 months
drools-5.1.1-examples.zip out of date?
by rtowler1
Is the drools-5.1.1-examples.zip from the 5.1 downloads page to be out of
date?
I've tried importing the drools-examples into eclipse but I get the
following error
If anyone knows how to fix this it would be really appreciated.
Project build error: Non-resolvable parent POM org.drools:drools:5.1.1 for
org.drools:drools-examples-fusion:5.1.1: Failed to resolve POM for
org.drools:drools:5.1.1 due to Missing:
----------
1) org.drools:drools:pom:5.1.1
----------
1 required artifact is missing.
for artifact:
org.drools:drools:pom:5.1.1
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/drools-5-1-1-examples...
Sent from the Drools - User mailing list archive at Nabble.com.
14 years, 2 months
Adding packages to a KnowledgeBase being watched by KnowledgeAgent?
by ljnelson
Suppose I have a KnowledgeBase that I've built with the usual factory method.
I've added nothing to it yet.
I park a KnowledgeAgent on top of it, using the
KnowledgeAgentFactory#newKnowledgeAgent(String, KnowledgeBase,
KnowledgeAgentConfiguration) call.
The KnowledgeAgent now, of course, monitors some resource somewhere and
periodically constructs new KnowledgeBases with the changed stuff it
discovers from monitoring resources.
If I get a handle on one of these KnowledgeBases by periodically asking the
KnowledgeAgent via its #getKnowledgeBase() method:
1. May I add KnowledgePackages "by hand" to it?
2. If I do (1), I assume if the KnowledgeAgent builds a new KnowledgeBase,
the new KnowledgeBase has no knowledge :-) of the packages I just added,
right?
3. Is there any way to tell as an end user when a KnowledgeBase has been
"detached" from a KnowledgeAgent?
I suspect I know the answer--which is that I should configure my
KnowledgeAgent to NOT make new KnowledgeBase instances, by using the
"drools.agent.newInstance" configuration property, which the documentation
says is "hard coded to true" even though in fact that is not true in Drools
5.1.
If I do that, are there any concurrency issues to be aware of? After all,
the KnowledgeAgent is going to be scanning some files in a separate thread,
and periodically (presumably) updating the KnowledgeBase with their
contents. What, if any, synchronization or locking do I have to perform if,
while all of that is going on, I wish to add KnowledgePackages to the
KnowledgeBase "by hand"?
Thanks,
Laird
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Adding-packages-to-a-...
Sent from the Drools - User mailing list archive at Nabble.com.
14 years, 2 months
Shame on Progress and Savvion
by Mark Proctor
Progress has recently ripped off the Drools community and has offered
nothing in return, not even a curtesy nod of accreditation for our hard
work.. 30% of that 49mill USD would go a long way to helping us invest
in our tooling which would benefit all of us :) and maybe the Drools
team can have it's next team meeting in Hawaii and pay for all the
community members to come too. Cocktails anyone? :)
http://blog.athico.com/2010/09/progress-buy-bridge-in-brooklyn-savvion.html
I'm just having a little bit of fun, at their expense, which is well
deserved for such shockingly bad behaviour. So I would urge anyone else
to join in and have some fun too :) Do your own blogs, polls etc to
bring attention to this.
http://blog.athico.com/2010/09/breaking-news-have-your-vote-on-what.html
And please vote up at Digg and DZone to help raise awareness:
http://www.dzone.com/links/progress_buy_a_bridge_in_brooklyn_savvion_brms...
<http://www.dzone.com/links/progress_buy_a_bridge_in_brooklyn_savvion_brms...>
http://digg.com/news/technology/drools_progress_buy_a_bridge_in_brooklyn_...
Being slightly less tongue in check, this is just the reality of open
source, I've been doing this a long time now and I know you just have to
live with it, take the lumps with the smooth - as long as you get more
smooth than lumps, it's still worthwhile :) At it's best it brings
people together who collaborate and help each other and enrich the
open-source eco system. At it's worst you have organisations such as
Progress executing on predatory amoral tactics. The debate on whether
all corporations are ultimately operating on degrees of amorality is out
of scope for today :) As each year goes buy you start to appreciate Red
Hat more for the sterling work it does in open source. While it would be
nice if Progress got involved and contributed to Drools, the reality is
that this doesn't both me as much as you think it would. It hasn't
lestened the Drools community and technology, we still go from strength
to strength, and I've always been more concerned about what we are doing
and achieving than what someone else may or may not be doing with
regards to taking advantage of our work.
Ultimately this is actually quite flattering and re-affirms the strength
of our technology and the directions we are going. I'd rather have an
organisation using Drools and moving it one step closing to being a
defacto standard, than they partner with someone else or develop yet
another rule engine splintering the market and confusing users. "Drools
Everywhere" has alwas been my moto :)
However that said, anyone who knows me, knows I have a mischievous sense
of humour and if Progress and Savvion aren't even going to at the very
least accredit us then they are fair game and surely myself and the
Drools community deserve a little fun at their expense :)
Mark - The Mischievous Lead
14 years, 2 months