Re: [rules-users] [Droolsflow] Pagination of getTasksAssignedAsPotentialOwner (Mauricio Salatino)
Ok. Let's do this. I'm in traveling. when i come back to work, i get started with this implementation I 'm honored and grateful to contribute with Drools Thanks 2009/10/30 Mauricio Salatino sala...@gmail.com Yes, I can assist you Anderson. Let me know how you prefer to do it. Greetings On Fri, Oct 30, 2009 at 3:13 PM, Kris Verlaenen kris.verlae...@cs.kuleuven.be wrote: Anderson, We do not yet provide this kind of functionality out-of-the-box. It would definitely make sense to extend the task service so you can query tasks using parameters like maxResults, firstResult and filterBy. This would, as Mauricio explained, require the addition of additional parameters in the TaskServiceSession.getTasksAssignedAsPotentialOwner method, and the associated name query TasksAssignedAsPotentialOwnerWithGroups. Do you think you can assist us in adding this functionality? Simply check out from source, modify the task code as necessary, write a simple test and provide us with the patch? Thx, Kris Quoting Anderson vasconcelos anderson.v...@gmail.com: Hi Mauricio Salatino. Analysing the code of Drools-Process-Task, i found TaskServiceSession. In this service , has the entitityManager , and he called the TasksAssignedAsPotentialOwner. I just wanna to pass a parameter : tasksAssignedAsPotentialOwner.setFirstResult(firstResult); tasksAssignedAsPotentialOwner.setMaxResults(maxResult) To do this, the best way is override a lot of classes? DroosProcessTask,Cannot provided this for me? Thanks Message: 3 Date: Thu, 29 Oct 2009 15:14:50 -0500 From: Mauricio Salatino sala...@gmail.com Subject: Re: [rules-users] [Droolsflow] Pagination of getTasksAssignedAsPotentialOwn er To: Rules Users List rules-users@lists.jboss.org Message-ID: efac615a0910291314g5ad73ddfr649a989bb83e1...@mail.gmail.com Content-Type: text/plain; charset=iso-8859-1 Yes.. also probably you need to extend the named query too.. 2009/10/29 Anderson vasconcelos anderson.v...@gmail.com HI It's possible to build a real pagination search using MinaTaskClient.getTasksAssignedAsPotentialOwner() (Using Limit and Offset)? Must I Override the implementation of BlockingTaskSummaryResponseHandler or MinaTaskClient? Thanks ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- - http://salaboy.wordpress.com - http://www.jbug.com.ar - Salatino Salaboy Mauricio - ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] [Droolsflow] Pagination of getTasksAssignedAsPotentialOwner (Mauricio Salatino)
Hi Mauricio Salatino. Analysing the code of Drools-Process-Task, i found TaskServiceSession. In this service , has the entitityManager , and he called the TasksAssignedAsPotentialOwner. I just wanna to pass a parameter : tasksAssignedAsPotentialOwner.setFirstResult(firstResult); tasksAssignedAsPotentialOwner.setMaxResults(maxResult) To do this, the best way is override a lot of classes? DroosProcessTask,Cannot provided this for me? Thanks Message: 3 Date: Thu, 29 Oct 2009 15:14:50 -0500 From: Mauricio Salatino sala...@gmail.com Subject: Re: [rules-users] [Droolsflow] Pagination of getTasksAssignedAsPotentialOwn er To: Rules Users List rules-users@lists.jboss.org Message-ID: efac615a0910291314g5ad73ddfr649a989bb83e1...@mail.gmail.com Content-Type: text/plain; charset=iso-8859-1 Yes.. also probably you need to extend the named query too.. 2009/10/29 Anderson vasconcelos anderson.v...@gmail.com HI It's possible to build a real pagination search using MinaTaskClient.getTasksAssignedAsPotentialOwner() (Using Limit and Offset)? Must I Override the implementation of BlockingTaskSummaryResponseHandler or MinaTaskClient? Thanks ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] [droolsflow] Jmeter Test
Hi All I Make a test with Jmeter (http://jakarta.apache.org/jmeter/) to stress my flow. I Created a Thread Group, to execute 1000 simultaneous users for start the flow. I had the follow trouble: The First users that try to started the process, received this execption: Caused by: java.lang.NullPointerException at org.drools.task.service.MinaTaskClient.addTask(MinaTaskClient.java:43) at org.drools.process.workitem.wsht.WSHumanTaskHandler.executeWorkItem(WSHumanTaskHandler.java:161) at org.drools.process.instance.impl.DefaultWorkItemManager.internalExecuteWorkItem(DefaultWorkItemManager.java:55) at org.drools.workflow.instance.node.WorkItemNodeInstance.internalTrigger(WorkItemNodeInstance.java:95) at org.drools.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:112) at org.drools.workflow.instance.impl.NodeInstanceImpl.triggerConnection(NodeInstanceImpl.java:148) at org.drools.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:135) at org.drools.workflow.instance.node.StartNodeInstance.triggerCompleted(StartNodeInstance.java:49) at org.drools.workflow.instance.node.StartNodeInstance.internalTrigger(StartNodeInstance.java:41) at org.drools.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:112) at org.drools.ruleflow.instance.RuleFlowProcessInstance.internalStart(RuleFlowProcessInstance.java:16) at org.drools.process.instance.impl.ProcessInstanceImpl.start(ProcessInstanceImpl.java:185) at org.drools.workflow.instance.impl.WorkflowProcessInstanceImpl.start(WorkflowProcessInstanceImpl.java:239) at org.drools.common.AbstractWorkingMemory.startProcess(AbstractWorkingMemory.java:1708) at org.drools.impl.StatefulKnowledgeSessionImpl.startProcess(StatefulKnowledgeSessionImpl.java:288) at br.com.dextra.droolsflow.tasks.TaskServiceBean.startProcessFlow(TaskServiceBean.java:68) After some users, the process starts normal. The problem occur only for the first users. I Believe that problem is from MinaTaskServer tha was not started correctly. (Just start, after some calls). I used to start MinaTaskServer the follow code (This code is inside a Jboss - MBean): * * *TaskService taskService = new TaskService(* *this.entityManageSessionFactory, SystemEventListenerFactory * *.getSystemEventListener());* *server = new MinaTaskServer(taskService);* *Thread thread = new Thread(server);* *thread.start();* *Thread.sleep(5000);* could anybody help me? Thanks ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] [Droolsflow] Pagination of getTasksAssignedAsPotentialOwner
HI It's possible to build a real pagination search using MinaTaskClient.getTasksAssignedAsPotentialOwner() (Using Limit and Offset)? Must I Override the implementation of BlockingTaskSummaryResponseHandler or MinaTaskClient? Thanks ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] [droolsflow] Multiple Instances
Hi everybody. I Have a flow : [Start] - [First_HumanTask] - Split - [Second_HumanTask] or [End]. Someday i had asked about why my flow was stopped (See [droolsflow ] Flow is Stoped) . Kris Verlaenem, told to me to use https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/docs/drools-flow/html/ch03.html#d0e1118. I Created on my Split node this contraint: *processInstance : WorkflowProcessInstance() ticketBeanVar : TicketBean( id == ( processInstance.getVariable(ticketId) ) ) eval(ticketBeanVar.isApproved() == true)* This works for the first instance (I finished the [First_HumanTask] , and he was going to SecondHumanTask), but for the second instance, after i complete the [First_HumanTask] , the flow stayed stopped (only for the second instance). ( If i Change, first the second instance and then first instance occurred the same problem (The first instance stayed stopped) ) What's wrong? Thanks ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] [droolsflow] Flow is Stoped
Hi I Have a flow as folow: Start - First_HumanTask - Split - [Join - Second_HumanTask] or [End]. When i Create one instance of my flow, this runs fine. But when i have many instances of my flow (Size of StatefulKnowledgeSession 1), and finish the First_HumanTask the flow stoped. (Not Create de Second_HumanTask, and not throws error) In my split node i check a fact passed to flow as: TicketBean( status == TicketStatus.IN_PROGRESS) Whats wrong? Thanks ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] [droolsflow] ForEach
Hi all I have a flow that has a for each where for each Ticket (List of FactObject) create a subflow that contains a HumanTask How can i set the Ticket inside a Content of HumanTask of subflow? I Tried to put #{ticket} inside a content of HumanTask, but the just put a string of class (Ticket.toString()), and not a instance of Ticket. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] [droolsflow] ForEach usage - Version 5.1.0
Hi All To use a ForEach element i need to access a collection inside my FactObject. (FactObject.list) I tried to call FactObject.list inside a CollectionExpressions but this fail. (Just ok with list defined as a process variable) *So i do something thats a consider a workaround:* 1- I Create a 'Action Node before a ForEach Node 2-In the Action Node, i get the FactObject and populate the process variable that represents FactObject.list : *FactObject factObject = (FactObject)drools.getKnowledgeRuntime().getObjects(new ClassObjectFilter(FactObject.class)).iterator().next(); context.setVariable(list, factObject.getDefeitos());* 3- And on the Foreach node i just passed the list in the CollectionExpressions This is the correct way to do this? Has a better way to get FactObject.list to use on For Each Node? On Eclipse, the CollectionExpression of forEach don't have a window (Like Action Editor) to put a MVEL/Java expressions. I think this is a interesting resource. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] [DroosFlow] Restore the StatefulKnowledgeSession
Hi I'm have a flow with two moments. First the *client* created the task. Second the *user* approve the task. The Second can occurred in another day, year, month. Has one way to persist the StatefulKnowledgeSession in database and recuperated them again? This is necessary: 1) Because my Application Server can crash and i need to recuperated my session 2) Because i need to update the facts after *user* approve task Thanks ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] [droolsflow] Constraint Editor
I have a flow that user (Human Task) can choose two ways: Valid Ticket and Invalid Ticket To pass to valid way, i used a MinataskClient.Complete and it works. But to go to invalid way, i try to used MinaTaskClient.fail, but this command not continue my task. My question is: 1) Whats the bast way to invalidade a ticket and finish the flow? 2) Its possible to get the task inside Split Constaint? (I think in this possibility. I get the task and check if it status=='FAILED') Thanks ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users