Re: [rules-users] Access to Guvnor's JackRabbit remotely via JNDI
Thank you for your reply. Jervis Liu wrote why do you want to do access JCR repository directly? I want to detect changes in guvnor data (it will be done with external ModeShape sequencer connected to Guvnor's Jackrabbit). Generally, I have jBPM engine running outside Guvnor and Guvnor which stores the definitions of processes. On the service startup I can load the knowledge base to jBPM using Guvnor's REST API, but when Guvnor data will be changed I have to detect it. Is there any possibility to do it? Thank you for any help. -- View this message in context: http://drools.46999.n3.nabble.com/Access-to-Guvnor-s-JackRabbit-remotely-via-JNDI-tp4019947p4019962.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Problem reading ruleflow
Thanks Esteban -- View this message in context: http://drools.46999.n3.nabble.com/Problem-reading-ruleflow-tp4019919p4019963.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Classcast exception in Drools ant task
Yes, i have the correct mvel jar in my classpath. mvel2-2.1.0.drools16.jar is the jar which i copied from the drools-5.4.0 zip file. Thanks and Regards, Suresh Kumar Mutyala (+91) 9032485123 Message: 1 Date: Fri, 21 Sep 2012 09:47:59 -0700 (PDT) From: lhorton lhor...@abclegal.com Subject: Re: [rules-users] Classcast exception in Drools ant task To: rules-users@lists.jboss.org Message-ID: 1348246079889-4019894.p...@n3.nabble.com Content-Type: text/plain; charset=us-ascii I checked the binaries for 5.4.0.FINAL and the mvel jar is not named mvel2.jar. Are you sure you have the correct mvel jar in your classpath for 5.4.0? -- View this message in context: http://drools.46999.n3.nabble.com/rules-users-Classcast-exception-in-Drools-ant-task-tp4019864p4019894.html Sent from the Drools: User forum mailing list archive at Nabble.com.___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Getting Names of all the rules from the excel
thanks laune its working. - Thanks... Himansu -- View this message in context: http://drools.46999.n3.nabble.com/Getting-Names-of-all-the-rules-from-the-excel-tp4019958p4019965.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Pattern Example
Thanks for your reply Laune. I understand that it is not very clear but for me this is a starting point which I have to extend over a period of time. You example is great. How about if i have to analyse the events received in the last one hour . which is then compared to a threshold value. How could this be define in rules thanks -- View this message in context: http://drools.46999.n3.nabble.com/Pattern-Example-tp4019946p4019966.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Pattern Example
Use a similar pattern as the one you have for the average but computing the sum, or min, or max or average or any other accumulate function. -W On 26/09/2012, thano asim...@gmail.com wrote: Thanks for your reply Laune. I understand that it is not very clear but for me this is a starting point which I have to extend over a period of time. You example is great. How about if i have to analyse the events received in the last one hour . which is then compared to a threshold value. How could this be define in rules thanks -- View this message in context: http://drools.46999.n3.nabble.com/Pattern-Example-tp4019946p4019966.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ 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
Re: [rules-users] Pattern Example
thanks -- View this message in context: http://drools.46999.n3.nabble.com/Pattern-Example-tp4019946p4019969.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Planner: Hard Constraint Prevents Moves and Swaps
Op 25-09-12 20:44, Jason Virtue schreef: All, I have a problem where I need to assign tasks: 1.) Times 2.) Resources based on a Resource Type I've used the nurse rostering problem as an example and come up with a planning entity ResourceAssignment that looks like: Facts: Task ResourceType Variables: Time Resource For example: 1.) Lets say there are two resource types Type1 Type2 2.) A pool of resources: Resource1(type1), Resource2(type1), Resource3(type1), Resource4(type2), Resource4(type2), Resource5(type2) ... 3.) Task A: that requires 1 resource of type1 and one resource of type2 My program creates two PlanningEntities ResourceAssignment1 Fact: Task=A ResourceType=1 Variables Time Resource ResourceAssignment2 Fact: Task=A ResourceType=2 Variables: Time Resource I've created a rule that is designed to keep tasks starting at the same time: //tasks need to be in the same timeSlot rule "taskInTimeSlot" when $ra1 : ResourceAssignment ( task != null, time != null, $id : id, $task : task, $time : time) $ra2 : ResourceAssignment ( task != null, timeSlot != null, id != $id, task == $task, time != $time ) then insertLogical(new IntConstraintOccurrence("taskInTimeSlot", ConstraintType.NEGATIVE_HARD, 1,$ra1, $ra2)); end *PROBLEM* This results in:Cancelled step index (7), time spend (2848): there is no doable move. Terminating phase early. If I change the constraint to a NEGATIVE_SOFT the problem is solved, but it doesn't scale. Any more that a few tasks and it doesn't seem to be able to find solutions. What I need is for swaps and moves to change the time on multiple ResourceAssignments together. Take a look at pillarSwapMove. You might want to upgrade to 5.5.0.Beta1 (follow the upgrade script) and take advantage of the improved pillarSwapMove there, as well as the documentation that now explains it. Am I going about the problem the right way? Do I need something other than the generic move/swap factories? A custom MoveListFactory gives you full control, so that will give you even more flexiblity, at the cost of more implementation work. Thanks in advance, Jason ___ 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] how is Integer converted when comparing with primitive?
Hello I have a rule that looks something like this when $mydate : TaskRowDate(0 currentLateCount 100) then doSomething(); My problem is that currentLateCount is an Integer type because i want to be able to store null. 0 means something different in my app. The problem is when a fact that is inserted with the currentLateCount = null, the above rule matches and is fired. Is this suppose to be the case and what value does currentLateCount take that makes it match? Thanks -- View this message in context: http://drools.46999.n3.nabble.com/how-is-Integer-converted-when-comparing-with-primitive-tp4019975.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] adding de-serialized packages to the rulebase takes 7 minutes time.
There is no magic want to wave here. Someone needs to run a profiler while your packages are being added, to try and figure out where the bottlenecks are. Mark On 26 Sep 2012, at 21:14, subba mysavingde...@gmail.com wrote: Hi, Did anyone get a chance to look at this query ? please let me know if you need more info. regards subba. -- View this message in context: http://drools.46999.n3.nabble.com/adding-de-serialized-packages-to-the-rulebase-takes-7-minutes-time-tp4019916p4019976.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ 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
Re: [rules-users] Drools-Guvnor integration with Webshere- Exception during startup...Please help!!!
Drools Guvnor v5.3 5.4 onwards uses weld and seam frameworks causing this error. Though i do not have any clue about the given exception, But Guvnor v5.2.0 works perfectly in Websphere AS7 without any issues. But remember, it works only in Firefox browser. You'll end up ing seeing blank screen after login to Guvnor in IE browser. cheers -- View this message in context: http://drools.46999.n3.nabble.com/Drools-Guvnor-integration-with-Webshere-Exception-during-startup-Please-help-tp4018745p4019978.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] documentation on rule extends keyword
Where can I find documentation on extending rules using the 'extends' keyword? The official documentation doesn't even list that as a keyword. I only found out about it by accident here http://blog.athico.com/2012/09/conditional-named-consequences-in.html ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Access to Guvnor's JackRabbit remotely via JNDI
On 2012/9/26 15:07, gkalabin wrote: Thank you for your reply. Jervis Liu wrote why do you want to do access JCR repository directly? I want to detect changes in guvnor data (it will be done with external ModeShape sequencer connected to Guvnor's Jackrabbit). Generally, I have jBPM engine running outside Guvnor and Guvnor which stores the definitions of processes. On the service startup I can load the knowledge base to jBPM using Guvnor's REST API, but when Guvnor data will be changed I have to detect it. Is there any possibility to do it? In this case, you can poll package version feed periodically to check if there is any change in package. check this doc out: https://community.jboss.org/wiki/PublishDroolsArtifactsFromAProductionEnvironment Cheers, Jervis Thank you for any help. -- View this message in context: http://drools.46999.n3.nabble.com/Access-to-Guvnor-s-JackRabbit-remotely-via-JNDI-tp4019947p4019962.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ 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