Get instance from working memory and update it in the flow
by Yaniv Itzhaki
Hi,
I need to update an instance from the working memory in my Action/Script
node in process flow.
I have an instance in the working memory which I updating inside my rules,
furthermoreת I need to update it inside my action node.
Is there an option to retrieve this object instance during the flow? I have
a constrain at the beginning of the flow which filter out all other
instances of this object and leaves only the relevant instance.
I am using the context.getVariable("instName") and
context.setVariable("instName", object), but my problem is to get the
specific instance because the constrain component doesnt allow me to use the
setVariable...
Thanks
Yaniv
14 years, 2 months
Error in named query: ProcessInstancesWaitingForEvent
by Eugenio Abello
Hi, I'm using drools 5.1.1 with persistent flow and Human Task. In orm.xml
are queries Flow and HT. But among this error initializing JPA:
ERROR 24-09 17:20:36,375 - Error in named query:
ProcessInstancesWaitingForEvent
org.hibernate.QueryException: cannot dereference scalar collection element:
name [select processInstanceInfo.processInstanceId from
org.drools.persistence.processinstance.ProcessInstanceInfo
processInstanceInfo where :type in
(processInstanceInfo.eventTypes.name<http://processinstanceinfo.eventtypes.name/>
)]
thanks
14 years, 2 months
performing math function in drools
by Kripa Nathwani
Hi,
I need to know how can we perform math operations in drools.
For eg: I have a rule which calculates tax and I have a function in which I have to perform power operation i.e. (1+r)^n
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 with Spring Batch
by Manav
Hi,
I am trying to integrate Drools with Spring Batch. Is there some documentation
that could throw some light on the configuration involved in the same.
Regards,
Manav
14 years, 2 months
Why are my auto focus agenda group rules with high salience not executed right away?
by H.C.
I have a ruleflow with several rule task and a couple of sub-flows. I also
have many rules in a "maintenance" agenda group with auto-focus and salience
100 (highest of all my rules) without a ruleflow-group. The purpose of these
maintenance rules is to jump in anywhere across the ruleflow as needed to
perform...well...maintenance tasks.
I guess I made the assumption that these rules would immediately execute (on
the spot), ahead of any other rules due to their high salience and auto
focus when activated.
I see however a case where a rule causes one of these maintenance rules to
activate, but before it is executed, the ruleflow task is first deactivated,
then several subsequent ruleflow tasks activate and deactivate (all empty,
size = 0) and then my maintenance rule fires ahead of the next scheduled
ruleflow group rules.
Is there anything I can do to get the maintenance rule to execute right
after the rule that activated it and before the ruleflow task deactivates?
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Why-are-my-auto-focus...
Sent from the Drools - User mailing list archive at Nabble.com.
14 years, 2 months
Rules and process variables...
by bob.breitling
How do you or, even, can you access process variables in rules?
I did this sort of thing in my rules consequences:
ProcessInstance pi = drools.getWorkingMemory().getProcessInstance(1);
((VariableScopeInstance)
pi.getContextInstance("VariableScope")).setVariable("x", x);
In my test, the process id of 1 is a bit of a kludge. Is there a good way
to find that id?
This looks pretty ugly.
Is the right way to do this to create a subprocess and map the variable into
the subprocesses' working memory as facts with <mapping> tags?
Bob
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Rules-and-process-var...
Sent from the Drools - User mailing list archive at Nabble.com.
14 years, 2 months
Drools and Unidata
by Dean Whisnant
Do you know of anyone using Drools with Unidata, Universe, or other Pick style database? I'm interested in sharing experiences.
Thank you!
Dean
14 years, 2 months
University of Texas Austin
by Mark Proctor
I'm looking for locations for the next USA based conference for
febuary (end of febuary).
http://blog.athico.com/2010/09/drools-boot-camps-2011-usa-and-emea.html
I figured most people want somewhere warm and Austin is centrally
located. I don't know about pricing but Austin University seems to have
nice conference facilities:
http://www.meetattexas.com/
If we do this around austin university it would be good if we could
double up organisation with the local logic based programming groups,
maybe a professor at Austin University wants to be actively involved? If
anyone has any ideas, please let me know :)
Mark
14 years, 2 months
WorkingMemoryEntryPoint NullpointerException?
by Aman
memoryEntryPoint is retrieved as null, what could be wrong here or do I need
to do some special configuration in order to use working memory point
streams?
StatefulKnowledgeSession knowledgeSession =
GivemeStatelessOrStateful
.getStatefull("cashflow.drl");
WorkingMemoryEntryPoint memoryEntryPoint = knowledgeSession
.getWorkingMemoryEntryPoint("TransactionStream");
14 years, 2 months
Re: [rules-users] WorkingMemoryEntryPoint NullpointerException?
by Aman
I got it, I have to use Entrypoint in my DRL file otherwise it would give
null pointer exception.
I used like this-
rule "Testing EntryPoint"
when
$cf : CashFlow() from entry-point "TransactionStream"
then
System.out.println($cf);
System.out.println("Testing the transaction stream");
end
From: Aman [mailto:boy18nj@gmail.com]
Sent: Sunday, October 03, 2010 9:42 PM
To: 'Rules Users List'
Subject: WorkingMemoryEntryPoint NullpointerException?
memoryEntryPoint is retrieved as null, what could be wrong here or do I need
to do some special configuration in order to use working memory point
streams?
StatefulKnowledgeSession knowledgeSession =
GivemeStatelessOrStateful
.getStatefull("cashflow.drl");
WorkingMemoryEntryPoint memoryEntryPoint = knowledgeSession
.getWorkingMemoryEntryPoint("TransactionStream");
14 years, 2 months