[rules-users] Weird human task behaviour

2011-09-26 Thread HMandic
I have this strange problem, when I call int taskId = 105; // dummy taskId, the real one is obtained through TaskSummary BlockingTaskOperationResponseHandler b = new BlockingTaskOperationResponseHandler(); client.complete(taskId, myusername, null, b); while

Re: [rules-users] Weird human task behaviour

2011-09-26 Thread HMandic
Ah, I forgot to mention that I'm using Drools 5.2.0 Final and jbpm 5.1.0 Final. -- View this message in context: http://drools.46999.n3.nabble.com/Weird-human-task-behaviour-tp3368608p3368638.html Sent from the Drools: User forum mailing list archive at Nabble.com.

Re: [rules-users] Problem with sub-process rules inside multiple instances

2011-06-01 Thread HMandic
Hmmm, that could be it! I'm not sure I understand what you mean by that guard object. Would that mean that I should insert some dummy object in a script node (action node) before my rule node and change its value inside this rule, so the rule could be triggered when the second and third instance

Re: [rules-users] Problem with multiple instances component

2011-03-23 Thread HMandic
Yes I did try that example and it works fine. But it still doesn't help because I have a reusable sub-process component inside multiple instances. And that reusable sub-process has its own start and end nodes that are obligatory, otherwise I can't save it in the editor. I'm clueless... -- View

Re: [rules-users] Problem with multiple instances component

2011-03-22 Thread HMandic
That was quick I already had start and end nodes in my sub-process. Also, the Terminate property of the end node was set to false. It looks something like this: Main process Start - Multiple instances[ Start - Reusable Sub-process - End(Terminate=false)

Re: [rules-users] Problem with multiple instances component

2011-03-22 Thread HMandic
I forgot to mention it still doesn't work -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Problem-with-multiple-instances-component-tp2715105p2715490.html Sent from the Drools - User mailing list archive at Nabble.com.

Re: [rules-users] Problem with DroolsFlow transaction

2010-09-14 Thread HMandic
Anyone? I found out that JBoss AS doesn't know which TransactionManager to use here. I have: Environment env = KnowledgeBaseFactory.newEnvironment(); env.set(EnvironmentName.ENTITY_MANAGER_FACTORY, myEmFactory); env.set(EnvironmentName.TRANSACTION_MANAGER, ); session =

[rules-users] Problem with DroolsFlow transaction

2010-09-08 Thread HMandic
I have a problem with transaction manager in drools flow (at least I think so). I'm running an EJB3 application in Jboss AS 5.1.0GA with Postgres 8.4.4 as database. I use one schema for my data and another for drools data. The application itself is also split in two projects, one for my utility

[rules-users] Drools Flow: a few questions

2010-05-03 Thread HMandic
Hi, I have two questions regarding flow and human tasks. First, how do you populate ActorId field in Human task at runtime? The thing is that I don't know which users are potential owners of a task when the process is started. Could I call a method that populates actors in OnEntryAction of a

Re: [rules-users] Drools Flow: weird behaviour

2010-04-28 Thread HMandic
Anything? I would be grateful to get an answer, even if it's not positive. -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Drools-Flow-weird-behaviour-tp756167p761829.html Sent from the Drools - User mailing list archive at Nabble.com.

[rules-users] Drools Flow: weird behaviour

2010-04-26 Thread HMandic
My understanding of Drools Flow was that when you start a process it gets up to its first Human task and stops there until you complete it and then the process continues. Apparently I've got it wrong... So I have this workflow (process - let's call it MainFlow) that consists of a Human task and

Re: [rules-users] Drools Flow: weird behaviour

2010-04-26 Thread HMandic
OK, *.rf files are in the attachment zip. This is how I register human task: WSHumanTaskHandler th = new WSHumanTaskHandler(); KnowledgeBase kbase = readKnowledgeBase(); StatefulKnowledgeSession ksession = kbase.newStatefulKnowledgeSession(); WorkItemManager wim

Re: [rules-users] Drools Flow: Another problem with Human Task

2010-04-23 Thread HMandic
Crap, it wasn't the wrong dialect. I've checked both content and comment fields and they are set as en-UK, so it wasn't that either. If someone could just explain in what situation does TasksAssignedAsPotentialOwner named query generates SQL with those inner joins that I sent in the opening

Re: [rules-users] Drools Flow: Another problem with Human Task

2010-04-23 Thread HMandic
OK, I fixed it by commenting out !-- t.taskData.actualOwner, -- in the select clause of the named query (TasksAssignedAsPotentialOwner) and replacing it by another t.taskData.createdBy. I'm aware that this is not a good solution, but at least it works now. If anyone has an idea, please

Re: [rules-users] Drools Flow: Another problem with Human Task

2010-04-22 Thread HMandic
Still no resolution... I was reading through gazillion rows of log output (I've put log4j.logger.org.hibernate=debug and log4j.logger.org.hibernate.hql.ast.AST=debug in log4j.properties) for the last few days, and still can't figure it out. It has nothing to do with my human task item (I

Re: [rules-users] Drools Flow: Another problem with Human Task

2010-04-22 Thread HMandic
I have everything exactly the same as you (just like in the documentation), the only difference being the SQL for fetching the tasks. You will notice that mine has two inner joins, and yours hasn't. H, that makes me think, could it be something involving

Re: [rules-users] Drools Flow: Another problem with Human Task

2010-04-17 Thread HMandic
There are no errors in the log, it's just that this SQL is wrong and it returns nothing when it should return at least one row (that row exists there in the table). The actorId is definitely in the organizationalentity table. I'll check on Monday if I filled ALL the fields in the Human task.

[rules-users] Drools Flow: Another problem with Human Task

2010-04-16 Thread HMandic
Hi, I need some help here. I have a simple process with one human task. That human task work item has all the necessary fields filled (actorid, id, name, etc.). When I start that process it gets to that human task and fills everything it needs in the database (Postgres) through hibernate. Up

Re: [rules-users] Drools Flow: Another problem with Human Task

2010-04-16 Thread HMandic
It wasn't that, I had the comment field filled. -- View this message in context: http://n3.nabble.com/Drools-Flow-Another-problem-with-Human-Task-tp724086p724877.html Sent from the Drools - User mailing list archive at Nabble.com. ___ rules-users

Re: [rules-users] Drools Flow: Problem with Human Task

2010-04-14 Thread HMandic
OK, I fixed that problem. But now I have another one - I've set up persistence for processes (flow) just like the documentation says, there are no problems with configuration and hibernate created those 5 tables. Then I start my test (in this case my custom class, no JUnit) I get this:

Re: [rules-users] Drools Flow: Problem with Human Task

2010-04-14 Thread HMandic
No, I have drools-process-task in my dependencies and orm.xml file is in the META-INF directory (matching versions this time :-). I've also checked orm.xml and it has all those named queries reported in error log. I'm worried about org.hibernate.hql.ast.QuerySyntaxException: Task is not mapped

Re: [rules-users] Drools Flow: Problem with Human Task

2010-04-14 Thread HMandic
I can't send it right now (I'm at home) but it's the same persistence.xml as the one in your documentation except for the properties part because I'm using Postgres. The classorg.drools.task.Task/class is right there, I even left Comment and Deadline declared twice (BTW, is there a reason for

Re: [rules-users] Drools Flow: Problem with Human Task

2010-04-13 Thread HMandic
Hmmm, it still doesn't work. The version of the drools-api.jar is 5.1.0SNAPSHOT (it's part of the Drools 5.1.0 runtime in eclipse 3.5.2) and the task part is drools-process-task-5.1.0.M1.jar. I'll try to compile everything from drools-5.1.0.M1-src.zip and see if that helps. -- View this

[rules-users] Drools Flow: Problem with Human Task

2010-04-12 Thread HMandic
Hi, I'm stuck on this simple problem for two days now and I couldn't find the answer anywhere. I have a simple ruleflow (Start - Human Task - End) and when I start the process it breaks like this: [2010:04:102

Re: [rules-users] Drools Flow: Problem with Human Task

2010-04-12 Thread HMandic
Java version is 1.6.0_18 -- View this message in context: http://n3.nabble.com/Drools-Flow-Problem-with-Human-Task-tp713533p713625.html Sent from the Drools - User mailing list archive at Nabble.com. ___ rules-users mailing list