I'm using Drools 5.1.1
--
View this message in context:
http://drools-java-rules-engine.46999.n3.nabble.com/EvalConditionNode-cannot-be-cast-to-org-drools-reteoo-RightTupleSink-tp2660572p2660824.html
Sent from the Drools - User mailing list archive at Nabble.com.
_
We are seeing this exception when trying to complete flows in wait state.
This happens after we deploy a newer release of our application.
Context:
1. we start several process that go to wait state
2. we make bug fixes to our application and deploy a new version
3. we try to resume the existing f
I wasn't getting this error before but all of a sudden eclipse started
showing this error message.
I'm using drools 5.1.1 (it also happens with 5.1.0).
Here is how my schema definition looks:
http://drools-java-rules-engine.46999.n3.nabble.com/file/n1335740/drools-xsd.jpg
and here is the eclip
Hi cafebabe,
Thanks for the update. I'm trying my tests and I am not being able to get
timer running using persistence.
I create the session this way:
ksession = JPAKnowledgeService.newStatefulKnowledgeSession(kbase, null,
env);
I know all configuration is correct and persistence as its own i
Hi Kris,
Thanks for the post! I believe this thread was created before the fixes came
in. I have not had the chance to test the latest code yet. I will look at
the test case you mention and will bring in the trunk and run my tests. I'll
update the thread after I run my stuff :)
Thanks,
Nick
--
Hi retov,
Given that the timers do not work when using persistence I haven't been able
to test the scenario you described. I did test timer behavior when an
exception is thrown from within the workItemHandler that has a timer
attached to it. And in this case the timer keeps working, that is, it d
Thanks for the post!!! Have you tried it? I'll update dependencies and try to
run it.
--
View this message in context:
http://drools-java-rules-engine.46999.n3.nabble.com/Implementing-Timers-With-Drools-Persistence-Enabled-tp923142p978887.html
Sent from the Drools - User mailing list archive at
Hi retoy,
Thanks for your comment ;)
Just wanted to mention that halt() should not be used to stop a timer. A
timer should stop once the flow execution moves away from it to the next
node. ksession.halt() might halt other things running on the session and not
only the timer.
Nick.
--
View thi
Hi cafebabe,
Thanks for your comment. I agree with you that work item ids are database
primary keys but in this simple (very simple) case I just decided to
harcoded as I know for a fact that the work item id is 1 because that is the
only work item and each time I run the test the tables are dropp
Hi salaboy,
Any luck? Any updates/news?
Thanks,
Nick.
--
View this message in context:
http://drools-java-rules-engine.46999.n3.nabble.com/Implementing-Timers-With-Drools-Persistence-Enabled-tp923142p939325.html
Sent from the Drools - User mailing list archive at Nabble.com.
_
Hi Salaboy,
Have you had a chance to look into this?
Let me know if you have any findings.
Thanks,
Nick.
--
View this message in context:
http://drools-java-rules-engine.46999.n3.nabble.com/Implementing-Timers-With-Drools-Persistence-Enabled-tp923142p931029.html
Sent from the Drools - User m
Hi salaboy,
Here is an image of my flow:
http://drools-java-rules-engine.46999.n3.nabble.com/file/n923330/SnapShot.jpg
Here is the flow definition:
http://drools.org/drools-5.0/process";
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance";
xs:schemaLocation="http://drools
Hi All,
I was able to implement some timers and they behave as expected until I
enable persistence. Timers work (get triggered) when creating the
StatefulKnowledgeSession by kbase.newStatefulKnowledgeSession() but they do
NOT work (do not get triggered) when creating the StatefulKnowledgeSession
I'm looking to implement this behavior in ruleflow (DRF) either with the
Timer node or the Timers present in the properties of a work item.
Thanks!
--
View this message in context:
http://drools-java-rules-engine.46999.n3.nabble.com/Couple-of-questions-about-Timers-tp912788p915073.html
Sent fr
Just to clarify I'm asking about this function in ruleflow (DRF)
Thanks!
--
View this message in context:
http://drools-java-rules-engine.46999.n3.nabble.com/Timer-Date-definition-for-Timer-nodes-tp912660p915070.html
Sent from the Drools - User mailing list archive at Nabble.com.
__
Alright... two more:
1. If a process suspends, do timers keep running/firing?
2. Let's say I have workItem_1 --> workItem_2 --> workItem_3 of which
"workItem_1" suspends the flow and "workItem_3" has a timer. After reloading
the StatefulKnowledgeSession and completing "workItem_1" and moving on d
Hi all,
I'm working with timers and I have a couple of questions.
1) If I have more than one timer in a ruleflow definition, will
ksession.fireUntilHalt()/ksession.fireAllRules() take care of
starting/initializing all timers? Is one thread enough for multiple timers
or I need to handle timers in
Hi Drools community :)
As per the BPMN standard: "In Normal Flow the Timer Intermediate Event acts
as a delay mechanism based on a specific time-date or a specific cycle
(e.g., every Monday at 9am) can be set that will trigger the Event."
So, my question is: Does Drools supports something like t
try kcontext.getVariable("isManager")
--
View this message in context:
http://drools-java-rules-engine.46999.n3.nabble.com/Access-to-variables-form-sub-flows-tp817279p824541.html
Sent from the Drools - User mailing list archive at Nabble.com.
___
rules
Hi PVM,
You have to declare the variable in both flows, the parent flow as well as
the sub flow. Then you also have to map it to the sub flow node. To do that,
in the parent flow click the sub flow node and in the properties map the
variable in "Parameter In Mapping".
I hope it helps :)
--
Vie
Hi Salaboy,
Thanks for your reply.
Yes, I did that. I even checked directly to the xml just in case there was a
bug in the editor.
When I change type through the editor I see the split node change from AND
to XOR to OR depending
on what type I select of course.
But at run time only AND and XO
Yes, I did that. I even checked directly to the xml just in case there was a
bug in the editor.
When I change type through the editor I see the split node change from AND
to XOR to OR depending
on what type I select of course.
But at run time only AND and XOR work. For OR I get the problem des
Hi all,
I have this simple BPMN2 flow.
http://n3.nabble.com/file/n782279/orflow.jpg
When I use a XOR Diverge Gateway "" everything works fine.
It also works fine for AND Diverge Gateway "".
But when I use OR Diverge Gateway "" Drools complains
that [Split node 'Gateway' [4] has no type.]
Hi All,
1. I have the following BPMN2 flow.
http://n3.nabble.com/file/n780238/flow.jpg
2. With a String type flow variable called "firstName".
http://n3.nabble.com/file/n780238/props.jpg
3. "Work Handler" has a WorkItemHandler behind it that just prints out the
value of "firstName". Varia
Anyone??? Nobody ever needed more than one timer in single flow???
--
View this message in context:
http://drools-java-rules-engine.46999.n3.nabble.com/Multiple-timers-in-a-single-ruleflow-tp744541p756815.html
Sent from the Drools - User mailing list archive at Nabble.com.
__
Some interesting findings but the main question still remains the same.
1. If you have more than one timer ksession.fireUntilHalt() doesn't work.
2. Only way to get more than one timer working is by calling
ksession.fireAllRules().
3. If you trigger the timers with ksession.fireAllRules() then
k
Hi guys,
I am trying to implement multiple timers in a single ruleflow.
I am trying to achieve:
1. Multiple timers running at the same time.
2. Multiple timers running consecutively.
It seems to me that the current implementation will not allow for this kind
of behavior out of the box.
@Kris
Do you have any tips for this? Am I interpreting your AbstractWorkItem
implementation for exception handling correctly.
Anybody else is very welcome to comment as well.
Thanks,
Nick.
--
View this message in context:
http://n3.nabble.com/How-to-do-Exception-Handling-tp689387p725237.html
Hi Steban,
Thank you so much for your post. I will try that and hopefully it will go
just fine. If I have any problems/questions I'll post back here :)
Thanks,
Nick
--
View this message in context:
http://n3.nabble.com/Building-from-source-tp722456p723111.html
Sent from the Drools - User mail
Hi all,
Could anyone please post a "step-by-step" guide in how to build Drools from
source.
I have never built it from source and I know that there is lot of people out
here that does it.
Something simple and clear as a
1.
2.
3.
..
guide.
Thank you very much!!!
Nick.
P.S. I'm doing
Thanks a lot Mauricio!!!
It is very appreciated.
Nick.
--
View this message in context:
http://n3.nabble.com/Resuming-Flow-NPE-when-completing-a-work-item-tp716847p721634.html
Sent from the Drools - User mailing list archive at Nabble.com.
___
rules-
Hi all,
I successfully implemented a Timer node and trigger it by doing:
final StatefulKnowledgeSession ksession =
knowledgeBase.newStatefulKnowledgeSession();
new Thread(new Runnable() {
public void run() {
ksession.fireUntilHalt();
}
}).s
Hi Mauricio,
My test cases are business components that I can't share. But this is
just a very simple situation, nothing complicated here. You can do a very
simple flow that will suspend in a workItem to which you pass a Long (or
Integer) and then after it has been persisted try to reload it
@Touma
I'm doing something very similar and it is working for me. Well, I have a
different problem that I'm trying to solve but I am able to successfully
resume the flow.
I am not using the Mina server either. I am just hooking a regular
WorkItemHandler to the HumanTask.
This is my flow : (star
@Kris
Thanks for the input. While I keep investigating on my side I thought of
asking you this quick question given that you said this might be trivial to
do
I am implementing an AbstractWorkItemHandler that catches exceptions and the
intention is to map these to Faults with the same name. (
Hi Mauricio,
Thank you very much for you comments. I am mapping a single variable type
Long.
Could you please look at posts above as I think they might have a good
point. There it seems that the getWorkItem method is creating a
MarshallerReaderContext with a "null" value for the ruleBase argumen
Hi Mauricio,
I am setting my "env" the following way:
env = KnowledgeBaseFactory.newEnvironment();
env.set(EnvironmentName.ENTITY_MANAGER_FACTORY, emf);
env.set(EnvironmentName.GLOBALS, new MapGlobalResolver());
My registerWorkItemHandlers() method
Hi,
I found this question repeated three times on this user list without any
answers. I would, however, appreciate one.
We have a point where the flow reached a wait state and suspended. Now
we are resuming the flow [by running a different test] and trying to
complete the work item, as i
I found why persistencebytearray and the other fields (columns) where being
persisted as NULL by the framework. And that is because I was overriding the
"hibernate.transaction.factory_class" as follows:
in my persistence.xml. I removed that tag from my persistence.xml and now
the framework pers
I am getting exactly the same error in the exactly same way.
Any one knows what might we be doing wrong?
By looking at the database I noticed that for both tables (workiteminfo and
processinstanceinfo) the column
"workitembytearray" and "processinstancebytearray" respectively have all
NULL entrie
What I'm trying to do is a little different
I have a ruleflow with a workItem node which has a workItemHandler behind
it. My workItemHandler will call an external system which might throw an
exception. I DO NOT want to catch the exception in the code (or I might but
after doing something with
I have a ruleflow that handles exceptions when they are raised by a "Fault"
node but I am not being able to accomplish the same if an exception is
thrown by a workItem or an action node instead.
I have a workItem node with a work item handler that throws a
RuntimeException. My exception handler
Hi srikar,
Check out this link to Drools documentation
http://www.jboss.org/drools/documentation.html
There you have documentation fro Guvnor that should get you going.
I hope it helps!
--
View this message in context:
http://n3.nabble.com/Drools-Gunvor-tp470499p470891.html
Sent from the Droo
Hi Salaboy,
Thank you for a quick response. To make my question a little bit more
specific... Here is the approach we are thinking to take:
We have a long running process that has a human-task node in it. We use
a stateful JPA session, so once the flow reaches the wait state (human-task)
Before I try to get an example working I thought it would be a good idea to
post this as it might just be a quick answer to my question.
Lets say I have a process with a Human Task and I'm using
WSHumanTaskHandler.
(Start) --> [Action] --> [Human Task] --> [action] --> . --> (end)
The
Thanks!
Yes, I've seen that and looked where to change it and everything but I was
wondering about doing it on a declarative way... like using a config file.
I read some posts that said you can also use the drools.workItemHandlers
proerty in the drools.rulebase.conf file.
Something like:
drools.w
I can run simple processes through the gwt console but now I'm trying to
deploy a process that uses a WorkItemHandler. Gwt console server doesn't
know about this work item handler and when execution gets to that point it
complains saying that it didn't find a work item (Of course!!!).
So, question
I've deployed a ruleflow that uses a WorkItemHandler.
How can I make guvnor and gwt console aware of my WorkItemHandler? How can I
map my handler to a particular flow and work item?
I read that you can specify something like:
drools.workItemHandlers = MyWorkItemHandlers.conf
in the drools.sess
Hi ram ram,
Thanks for the tip. That worked and I was able to run my process!!!
Now, I am trying to get the graphical and reporting capabilities working.
When I run the process it sits in a wait state for a little bit and while it
is in RUNNING state I'm trying to get the graphical representat
I created a package in Guvnor and uploaded a ruleflow. You can also deploy
the rulflow to Guvnor through Eclipse plugin.
Then build the package in guvnor. You'll see this option by clicking in the
package you have your ruleflow.
Once it builds correctly you can consume this by doing the followin
Hi ramram,
I checked
deploy\gwt-console-server-drools-5.1.0.R1.war\WEB-INF\classes\META-INF\ and
there is no orm.xml file there.
There is only the persistence.xml I listed in previous post.
Any other idea?
Thanks!
--
View this message in context:
http://n3.nabble.com/GWT-Console-issue-tp4480
Hi ramram, Thanks for your quick reply. I implemented your suggestions and
this is how my persistence unit looks. But I am still getting an error,
though a different one. Please see below for error log.
persistence.xml
org.hibernate.ejb.HibernatePersistence
java:jdbc/te
Thanks ramram!!! That defenitely helped to get rid of that error. Now I can
see my process in gwt-console, which is very encouraging :)
But when I try to start the process I get the following error:
2010-03-16 09:35:09,495 ERROR [STDERR] java.lang.IllegalArgumentException:
Unknown entity: org.dr
53 matches
Mail list logo