[rules-users] BuildDeploy - Drools Document
15.7.4.1. Build Deploy Build Depoy builds the current project and deploys the KJAR into the workbench internal Maven repository. the above statement from the drools document says deploys into internal document but you can deploy to remote maven repo modifying pom.xml. The above statement restriction the extended functionality of Build and Deploy. - with kind regards, -- View this message in context: http://drools.46999.n3.nabble.com/Build-Deploy-Drools-Document-tp4030554.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] duplicate class in drools
Hello guys, thanks in advance for your attention... I found 3 DebugWorkingMemoryEventListener (ther are lot like this but this is one among them) class in 3 various drools jars *drools-core-6.0.1, knowledge-api-6.0.1 and kie-api-6.0.1 * jars, which one to be use? two from event.rule package and one from core.event package? I am bit confusing of these duplicates names, when knowledge-api introduced this happen now again it happens becouse of kie-api, my questions is as follows... *1 - what is your recommendation for this problem? 2 - Is this going to be continue for future release too? * thanks, - with kind regards, -- View this message in context: http://drools.46999.n3.nabble.com/duplicate-class-in-drools-tp4029001.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] Guvnor-5.5
ok, I understand your goal, what is your advise for the companies already using WAS server and wants to try drools expert and guvnor for rules engine POC . need to get certified version for POC too? is the certified version got all the latest futures? - with kind regards, -- View this message in context: http://drools.46999.n3.nabble.com/Guvnor-5-5-tp4022096p4022121.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] Guvnor-5.5
*We're asked how to run Guvnor on WebSphere quite often... * Nothing wrong with the drools expert, the problem is guvnor this is because you are frequently changing the guvnor implementation and architecture, from 5.0 to 5.3 guvnor used components.xml (seam config) for repository and security configurations. Now 5.4 and 5.5 using beans.xml (spring injection). Even though guvnor is used in development environment, very high profile companies and projects this is big problem for upgrading also developers complaints is very important to avoid guvnor as a rule authoring tool or repository. Nothing wrong you want to promote your product (JbossAS) using drools but you may consider the other aspects also. Documentation is very important...if you provide more info..this will avoid these type of threads... - with kind regards, -- View this message in context: http://drools.46999.n3.nabble.com/Guvnor-5-5-tp4022096p4022142.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] Guvnor-5.5
Is any one tried guvnor-5.5 in websphere application server? What happen to the conponents.xml? Why guvnor is tightly coupled with jbossAS even each version (jbossAS) got separate war file? this seems a big impediment for using guvnor as rule authoring tools. Is one knows well aware these and already know how to deal this, please advise me? - with kind regards, -- View this message in context: http://drools.46999.n3.nabble.com/Guvnor-5-5-tp4022096.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] Guvnor-5.5
I find guvnor is a very good tool for rule development and deployment, we should not restrict to one application server? this force the development team to reject guvnor as rule authoring tool. - with kind regards, -- View this message in context: http://drools.46999.n3.nabble.com/Guvnor-5-5-tp4022096p4022097.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] persistence packages in jbpm and drools
is any one interested to explain the jbpm-persistence Vs drools persistence? are we persist any thing in drools if so why?please let me knowthanks lot I am just started to browse those package source code:)...If I find the right answer I will post it... - with kind regards, -- View this message in context: http://drools.46999.n3.nabble.com/persistence-packages-in-jbpm-and-drools-tp4020999.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] planning difficulty problem
For example , I have 10 doctors planning for 3 hospitals in three shifts, each hospital take maximum limit of 3 doctors only, In this case I have one remaining doctor unassigned. My doubt is how planner handle this data? will it be rejected or consider in other cycle or overwrite the planner solution? please advise... thanks, - with kind regards, -- View this message in context: http://drools.46999.n3.nabble.com/planning-difficulty-problem-tp4019857.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] Planner Planning Entity difficulty comparator Vs difficulty weight factory
Is their any guideline when to use those two in the planning entity difficulty? or when to use comparator and when to use weight factory to measure the difficulty? - with kind regards, -- View this message in context: http://drools.46999.n3.nabble.com/Planner-Planning-Entity-difficulty-comparator-Vs-difficulty-weight-factory-tp4019504.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] drools-planner question
Is move/step/selectors applicable to local search only? is it applicable to Construction heuristics too? - with kind regards, -- View this message in context: http://drools.46999.n3.nabble.com/drools-planner-question-tp4019374.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] drools-planner move question
How to do a move generation by DRL? is this available in which version? - with kind regards, -- View this message in context: http://drools.46999.n3.nabble.com/drools-planner-move-question-tp4019375.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] Drools Planner JIT selectors
I learned from the following link, this sounds very good for performance, this is available from 5.5 only, when can we expect the Drools Planner 5.5. Do you have any idea about the release date? http://planet.jboss.org/post/scaling_planner_with_jit_selectors_in_memory_consumption_and_performance thanks, - with kind regards, -- View this message in context: http://drools.46999.n3.nabble.com/Drools-Planner-JIT-selectors-tp4018906.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] Guvnor5.4 and JBPM5.3 web designer error with IE8
Hi, I am tring to open JBPM5.3 web designer in Guvnor5.4 running in JBossAS7, but fails to open, when I try to open a pop up window says that ' checking chrome frame' if you click the ok button in this pop-up window , it opens a new IE window with chrome plug-in information and Guvnor not display the web designer insted a window popup and says designer loading...but designer not loading...for ever... any help will be appriciated... thanks, - with kind regards, -- View this message in context: http://drools.46999.n3.nabble.com/Guvnor5-4-and-JBPM5-3-web-designer-error-with-IE8-tp4018843.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] how to avaide overwrinting results in drools planner
I have 2 boxes, lets say each size of 5x5 and I have 3 items two size 4x4 and one item size is 3x3. planner initially planner assigning as follows... I - When I use 3 items 2 boxes(this produce wrong planning) item1 (4x4) -- box1 (5x5) item2 (4x4) -- box2 (5x5) item3 (4x4) -- box1 (5x5) II - When I use 2 item, result as follows...(this is correct planning) item1 (4x4) -- box1 (5x5) item2 (4x4) -- box2 (5x5) III - When I increase one more box(this is correct too) item1 (4x4) -- box1 item2 (4x4) -- box2 item3 (4x4) -- box3 you can see the test I - it is over writing the first assignment and assign the new item there in the box 1, I unable to figure it out how to solve this problem, I suspect this can be done in the score calculation rules, the problem is I do not know how to implement to avoid the overwriting assignments. thanks, - with kind regards, -- View this message in context: http://drools.46999.n3.nabble.com/how-to-avaide-overwrinting-results-in-drools-planner-tp4018277.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] planning entity value range type
Hi, */A planning entity should not use other planning entities to determinate its value range. That would only try to make it solve the planning problem itself and interfere with the optimization algorithms./* reference to the above from the drools-planner user guide, I can use the other planning entity property but not to use other planning entity to determine its value range. Am I correct? thanks, - with kind regards, -- View this message in context: http://drools.46999.n3.nabble.com/planning-entity-value-range-type-tp4018202.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] how to handle the overwrinting values in drools planner
Hi, First Thanks for helping me with your valuable time, I have 2 boxes, lets say each size of 5x5 and I have 3 items two size 4x4 and one item size is 3x3. planner initially planner assigning as follows... item1 -- box1 item2 -- box2 item3 -- box1 When I use 2 item, result as follows... item1 -- box1 item2 -- box2 item3 -- box1 When I increase one more box item1 -- box1 item2 -- box2 item3 -- box3 in the above 3 scenarios...first one (2 boxes and 3 items), is the overwriting the item1 with iem3 into box1. I am beginner for drools-planner.any tips or help will be most appreciated - with kind regards, -- View this message in context: http://drools.46999.n3.nabble.com/how-to-handle-the-overwrinting-values-in-drools-planner-tp4018203.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] how to handle the overwrinting values in drools planner
sorry there is a small correction in the earlier post... I - When I use 3 items 2 boxes(this is wrong) item1 (4x4) -- box1 (5x5) item2 (4x4) -- box2 (5x5) item3 (4x4) -- box1 (5x5) II - When I use 2 item, result as follows...(this is correct) item1 (4x4) -- box1 (5x5) item2 (4x4) -- box2 (5x5) III - When I increase one more box(this is correct too) item1 (4x4) -- box1 item2 (4x4) -- box2 item3 (4x4) -- box3 you can see the test I - it is over writing the first assignment and assign the new item there in the box 1, I unable to figure it out how to solve this problem, I suspect this can be done in the score calculation rules, the problem is I do not know how to implement to avoid the overwriting assignments. thanks, - with kind regards, -- View this message in context: http://drools.46999.n3.nabble.com/how-to-handle-the-overwrinting-values-in-drools-planner-tp4018203p4018205.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] drools planner ConstraintOccurrence
Hi, I am learning drools planner, please explain to me about the ConstraintOccurrence (Int, Double,Long and Umweighted) object used in the then part of the drools planner drl file. My doubt is when to use this each type of this class and how it makes changes in the score calculations. note: Already search the mailing list, src code and read the user guide but no details available best regards, - with kind regards, -- View this message in context: http://drools.46999.n3.nabble.com/drools-planner-ConstraintOccurrence-tp4018182.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] 2d contraints in the drools planner drl accumulate function
Is any one knows how to use 2d constraint(Object(String attr1, String attr2)) in the drools planner, planing entity to create drl file (may be in accumulate function). thanks, - with kind regards, -- View this message in context: http://drools.46999.n3.nabble.com/2d-contraints-in-the-drools-planner-drl-accumulate-function-tp4018183.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] drools planner ConstraintOccurrence
Hi thanks lot, for the last one week I am breaking my head to understand the drools planner. I have two questions... 1) When to use Unweighted constrains? 2) Is any way I can combine the following two rules in to one rule, I mean writing length and width in one rule condition instead of two. I tried but I dont know how to use the accumulate for 2d constraint. Is any alternate way to write this condition. I really appreciate your patients and time, thanks lot again // // Hard constraints // rule requiredLengthTotal when $room : Room($length : length) $requiredSpaceTotal : Number(intValue $length) from accumulate( Table( room == $room, $tablelength : length), sum($tablelength) ) then insertLogical(new IntConstraintOccurrence(requiredLengthTotal, ConstraintType.NEGATIVE_HARD, $requiredSpaceTotal.intValue() - $length, $room)); end rule requiredWidthTotal when $room : Room($width : width) $requiredSpaceTotal : Number(intValue $width) from accumulate( Table( room == $room, $tablewidth : width), sum($tablewidth) ) then insertLogical(new IntConstraintOccurrence(requiredWidthTotal, ConstraintType.NEGATIVE_HARD, $requiredSpaceTotal.intValue() - $width, $room)); end - with kind regards, -- View this message in context: http://drools.46999.n3.nabble.com/drools-planner-ConstraintOccurrence-tp4018182p4018189.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] planner score calculation error...
Hi when i use the following drl file for score calculation It assign a bigger table into the smaller room. help will be appreciated console output is as follows.. *Solved Organizer with 2 rooms and 3 tables: Table 1 - Room 1 Table 2 - Room 2 Table 3 - Room 2* test data: Room room1 = new Room(10, 10); room1.setId((long) 1); Room room2 = new Room(10, 10); room2.setId((long) 2); Table table1 = new Table(10, 10); table1.setId((long) 1); Table table2 = new Table(9, 9); table2.setId((long) 2); Table table3 = new Table(9, 9); table3.setId((long) 3); drl file for score calculation... //created on: Jun 18, 2012 package org.drools.planner.organizer; dialect java //list any import classes here. import org.drools.planner.core.score.buildin.hardandsoft.HardAndSoftScoreHolder; import org.drools.planner.core.score.constraint.IntConstraintOccurrence; import org.drools.planner.core.score.constraint.ConstraintType; import org.drools.planner.organizer.domain.Room; import org.drools.planner.organizer.domain.Table; //declare any global variables here global HardAndSoftScoreHolder scoreHolder; // // Hard constraints // rule requiredLengthTotal when $room : Room($length : length) $requiredSpaceTotal : Number(intValue $length) from accumulate( Table( room == $room, $tablelength : length), sum($tablelength) ) then insertLogical(new IntConstraintOccurrence(requiredLengthTotal, ConstraintType.NEGATIVE_HARD, $requiredSpaceTotal.intValue() - $length, $room)); end rule requiredWidthTotal when $room : Room($width : width) $requiredSpaceTotal : Number(intValue $width) from accumulate( Table( room == $room, $tablewidth : width), sum($tablewidth) ) then insertLogical(new IntConstraintOccurrence(requiredWidthTotal, ConstraintType.NEGATIVE_HARD, $requiredSpaceTotal.intValue() - $width, $room)); end // // Soft constraints // rule roomLengthCapacity when $room : Room($length : length) $table : Table(room == $room, length $length, $tablelength : length) then insertLogical(new IntConstraintOccurrence(roomLengthCapacity, ConstraintType.NEGATIVE_SOFT, ($tablelength - $length), $room, $table)); end rule roomWidthCapacity when $room : Room($width : width) $table : Table(room == $room, width $width, $tablewidth : width) then insertLogical(new IntConstraintOccurrence(roomWidthCapacity, ConstraintType.NEGATIVE_SOFT, ($tablewidth - $width), $room, $table)); end // // Calculate score // // Accumulate hard constraints rule hardConstraintsBroken salience -1 // Do the other rules first (optional, for performance) when $hardTotal : Number() from accumulate( IntConstraintOccurrence(constraintType == ConstraintType.NEGATIVE_HARD, $weight : weight), sum($weight) ) then scoreHolder.setHardConstraintsBroken($hardTotal.intValue()); end // Accumulate soft constraints rule softConstraintsBroken salience -1 // Do the other rules first (optional, for performance) when $softTotal : Number() from accumulate( IntConstraintOccurrence(constraintType == ConstraintType.NEGATIVE_SOFT, $weight : weight), sum($weight) ) then scoreHolder.setSoftConstraintsBroken($softTotal.intValue()); end - with kind regards, -- View this message in context: http://drools.46999.n3.nabble.com/planner-score-calculation-error-tp4018196.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] drools-planner drl file help
I am not asking any one to do my work I am just asking help in the mailing list. From you reply I misunderstood that you were asking more info that's why I send the file. any way thanks for your help and nice comments. - with kind regards, -- View this message in context: http://drools.46999.n3.nabble.com/drools-planner-drl-file-help-tp4018104p4018150.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] drools sample project help
Hello Ge0ffrey, I am learning drools-planner to use in my project. I created a sample project for my practice (copy from example project in the example project), but it is not working correctly. Please kindly review the attached project folder, help me to understand and find the problem. thanks, http://drools.46999.n3.nabble.com/file/n4018098/PlannerProject.rar PlannerProject.rar - with kind regards, -- View this message in context: http://drools.46999.n3.nabble.com/drools-planner-planning-entity-tp4018034p4018098.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] drools-planner drl file help
Hi, My use case is 2 rooms and multiple table in various size, I want planner to organize the table in the available rooms in our case 2 rooms. room1 - 10x10 (length x width) room2 - 5x5 table1 - 5x5 (length X width) table2 - 2x3 table4 - 2x3 table5 - 7x4 table6 - 4x2 *my drl file as follows...* rule requiredRoomSpace when $room : Room($length : length, $width : width, $size : size) $requiredSizeTotal : Number(intValue $size) from accumulate( Table( room == $room, length $length, width $width, $requiredSize : requiredSize), sum($requiredSize) ) then insertLogical(new IntConstraintOccurrence(requiredRoomSpace, ConstraintType.NEGATIVE_HARD, $requiredSizeTotal.intValue() - $size, $room)); end // // Calculate score // // Accumulate hard constraints rule hardConstraintsBroken salience -1 // Do the other rules first (optional, for performance) when $hardTotal : Number() from accumulate( IntConstraintOccurrence(constraintType == ConstraintType.NEGATIVE_HARD, $weight : weight), sum($weight) // Vote for http://jira.jboss.com/jira/browse/JBRULES-1075 ) then scoreHolder.setHardConstraintsBroken($hardTotal.intValue()); end */when i run the program...it assign all the tables into room1 only...I am not sure what went to wrong...help will be appriciatedif need more info ..I will provide.../* warm regards, - with kind regards, -- View this message in context: http://drools.46999.n3.nabble.com/drools-planner-drl-file-help-tp4018104.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] drools-planner drl file help
you got me exactly where I am, I am bit confused using drools-planner, I gone through the user guide documents and example in the src download http://drools.46999.n3.nabble.com/file/n4018108/PlannerProject.rar PlannerProject.rar attached is my sample project, I am try to imitate the bin packing project. First I used with length and width only, I don't want to use the size attribute. with out the size attribute don't know how to use in drl. Attached zip file is the src for what I am trying to achieve. It would be grateful, if you see the code and guide me to clear my confusion. warm regards, - with kind regards, -- View this message in context: http://drools.46999.n3.nabble.com/drools-planner-drl-file-help-tp4018104p4018108.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] drools planner planning entity
thanks Geoff, I mean planning entity class. I am using planner-5.4.0.Final. I have 4 planning entity class, what is your advise? what algorithm is best fit for this or you want me to change the object design? warm regards - with kind regards, -- View this message in context: http://drools.46999.n3.nabble.com/drools-planner-planning-entity-tp4018034p4018068.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] drools planner planning entity
thanks Geoff you are right, this is due to poor object design in our use case. I will change the design and keep you posted the changes. thanks lot, - with kind regards, -- View this message in context: http://drools.46999.n3.nabble.com/drools-planner-planning-entity-tp4018034p4018070.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] drools planner planning entity
Hello Geoff, As advised, I am reading the drools-planner.5.4.0.Final user guide, section *4.3.5.5. Cached problem fact*, I noticed in the example method explaining about finding out the topic conflict, in this method multiple for loop and if condition are there, since we use drools expert can I create a drl file for this logic to handle instead of using java code here, please advise me. thanks, - with kind regards, -- View this message in context: http://drools.46999.n3.nabble.com/drools-planner-planning-entity-tp4018034p4018080.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] CommandFactory.newSetGlobal and scope
Hi everyone, I'm reading through Michael Bali's Drools JBoss Rules book as well as the reference guide, and I've got a question of scope about StatefulKnowledgeSessions. I understand that if I call setGlobal on a stateful session, this global value will be shared for all simultaneous calls to executeRules across all threads. I'm looking into CommandFactory, which has a newSetGlobal method. From what I gather, a global set via CommandFactory.newSetGlobal and then executed with a call to execute(CommandFactory.newBatchExecution(cmds)) would be scoped solely to that execution, regardless of it is a StatefulKnowledgeSession and there are other parallel command executions against the same session. Can anyone confirm if that is accurate? Thanks in advance, -- Ricardo J. Méndez http://www.arquetipos.co.cr/ ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] Drools Fusion Performance and RETE algorithm
Hi all Looking at Drools JBoss Rules 5 0 Developer's guide it addresses the Fusion component at page 134, stating: This problem cannot be solved by the standard Drools rule engine. The volume of events is huge and it happens asynchronously. If we simply inserted them into the knowledge session, we would soon run out of memory. While the Rete algorithm behind Drools doesn't have any theoretical limitation on number of objects in the session, we could use the processing power more wisely. Drools Fusion is the right candidate for this kind of task. Ok, but my question is if this is enough, because I would guess that Fusion could be used to derived a more complex/rich event from the stream of events, and afterwards that complex event would be inserted in Working Memory (but not the flow of events that have generated the more complex event), thus reducing RETE algorithm processing. But since in our case every event will most certainly fire a rule, I am not sure about Fusion's usage. This is because our project is more a kind of Event-Trigger-Rule/Action system, meaning we have a high volume of incoming events (say more than 5000/minute), but each of the events will have to trigger a rule (and usually a rule is more or less a complex action, invoking DB operations and data structures manipulation). So, by using Fusion entry-points, would that be different than just sending the events as normal facts to Working Memory, or by dividing this in entry-points( or so called streams) we would have benefits in the RETE processing (I am assuming Fusion also uses RETE someway)? Best regards Orlando. PS-Does anyone know where can I find more info on the coupling of Drools Expert and Fusion? ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] KnowledgeBase partitioning
Hi all I am trying to assess Drools (Expert, Fusion and Flow) for a new project and I read already some documentation, and when looking at Fusion manual: http://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/docs/drools-fusion/html_single/index.html#d4e680 I got this message: This is an experimental feature, subject to changes in the future. What does it mean exactly, can I suppose this feature will remain and I can start using it now? Has the status evolved since then? Thanks in advance Orlando. PS-In the book Drools JBoss Rules 5.0 by Developer's Guide (Michal Bali), this feature is described with no limitation or warning... ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Ruleflow nog showing
Hi! I faced the same problem once. It was caused by a problem in my code (constraints, actions, etc.). I'm trying it, but I can't reproduce it now. The problem may be solved in lasts versions. Starting a ruleflow process works? Any log? Anything on the problem view? I can remember solving the problem reading those logs in order to find the erroneous code and editing the XML behind the .rf. 2009/3/11 Femke De Backere femm...@gmail.com Hi! As I was creating a new ruleflow, to fit as a subprocess in another ruleflow, I encountered the following problem: My ruleflow is build, and I checked the correctness with the Check the ruleflow model button. When I close Eclipse and reopen my project again, my whole ruleflow (except for the start node) is gone, the xml behind the .rf still exists, but the view is gone. Has anyone any clue what happened? Thx, Femke ___ 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] Re: rules-users Digest, Vol 28, Issue 19
Thanks for the explanation! I've found the CR1 downloads, I've just tried it, and it works just as I needed :). Just one comment. In my first attempts I missed your comment about using a variable with the specific name processInstance... I'm slower than I thought... But, just as a suggestion, it may be better to have a clearer way to use this special matching. Maybe using a fact property or a keyword... ? Well, I don't know anything about the ruleflow project and its complexity so take my suggestion as it is :). Well, thanks again for the help and congratulations for your impressive work! Ricardo. 2009/3/9 Kris Verlaenen kris.verlae...@cs.kuleuven.be Ricardo, This method has recently been added into WorkflowProcessInstance, it is on trunk and will be in CR1. For M5, you could indeed use WorkflowProcessInstanceImpl ... Kris - Original Message - *From:* Ricardo Gil Alcañiz r...@okode.com *To:* Rules Users List rules-users@lists.jboss.org *Sent:* Monday, March 09, 2009 4:37 PM *Subject:* [rules-users] Re: rules-users Digest, Vol 28, Issue 19 Thanks for your fast response Kris and Michal! I tried to use your solution Kris, but I've found that 5.0.0 M5 WorkflowProcessInstance does not seems to provide getVariable method. I've found that method into WorkflowProcessInstanceImpl searching in svn trunk. I must work with that class or I missed something? Thanks again! Ricardo. -- Mensaje reenviado -- From: Kris Verlaenen kris.verlae...@cs.kuleuven.be To: Rules Users List rules-users@lists.jboss.org Date: Sun, 8 Mar 2009 03:56:29 +0100 Subject: Re: [rules-users] Drools Flow, constraint parametrization Ricardo, If you need to access process variables and have only simple constraint expressions, I suggest you use code constraints (Java or MVEL dialect), as they have direct access to variables (and globals). If you want to use rule constraints anyway (because your constraints can become rather complex), there are a few options: - You cannot use globals to pass information used in your constraints, because globals are considered immutable with respect to rule conditions - You can put your data you want to access in your working memory. Rule constraints can then access this info just like any normal rule. - You access the variable value using the special processInstance rule constraint (I just added a new section in the documentation to explain): Rule constraints do not have direct access to variables defined inside the process. It is however possible to refer to the current process instance inside a rule constraint, by adding the process instance to the working memory and matching to the process instance inside your rule constraint. We have added special logic to make sure that a variable processInstance of type WorkflowProcessInstance will only match to the current process instance and not to other process instances in the working memory. Note that you are however responsible yourself to insert (and possibly update) the process instance into the session (for example using Java code or an (on-entry or on-exit or explicit) action in your process). The following exampleof a rule constraint will search for a person with the same name as the value stored in the variable name of the process: processInstance: WorkflowProcessInstance() Person( name == ( processInstance.getVariable(name) ) ) # add more constraints here ... Kris Quoting Ricardo Gil Alcañiz r...@okode.com: Hi, I'm not a new drools user but I started to test rule flows (5.0M5) recently and I'm stucked, so any clue will be welcomed :). I'm testing how to share a StatefulKnowledgeSession between N rule flow instances. I'm trying to parametrize each instance with process variables at start time but I don't know how to use them from rule constraints (in event waits, splits, etc.). I've read the documentation and I've found this text related to constraints Both rule and code constraints have access to globals that are defined for the process and can reuse imports at the process level. I tried it assigning (from an action) a variable value to a global variable but it's not working for me. ¿I'm missing something? Thanks in advance! Ricardo. -- ___ 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 mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] Drools Flow, constraint parametrization
Hi, I'm not a new drools user but I started to test rule flows (5.0M5) recently and I'm stucked, so any clue will be welcomed :). I'm testing how to share a StatefulKnowledgeSession between N rule flow instances. I'm trying to parametrize each instance with process variables at start time but I don't know how to use them from rule constraints (in event waits, splits, etc.). I've read the documentation and I've found this text related to constraints Both rule and code constraints have access to globals that are defined for the process and can reuse imports at the process level. I tried it assigning (from an action) a variable value to a global variable but it's not working for me. ¿I'm missing something? Thanks in advance! Ricardo. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users