[rules-users] Re: Building a rule base from the content of a directory
I'm happily using an Ant task for that - registered as Eclipse external builder. But I don't feel it exactly like cutting edge... HTH, JC ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] Drools Flow - UI Flow
Hello, I am seeking for ideas: for my current project, we have the requirement to externalize the business and the sequence of steps of a web flow. Example: Online banking: money transfer from account A to account B. Step1: gather transfer data from user. - GOTO Step2. Step2: route: IF amount = 250$ GOTO Step3 ELSE GOTO Step4. Step3: electronic signature - GOTO Step4. Step4: commit to backend. Added value: - We can plug any view technology we want on the UI steps. - Interaction with the backend is not in the view. - Business guys are able to reorder the steps, change the routing logic,... I developed a small proof of concept with Spring Webflow 2 for all the UI steps (Step 1, 3) and Drools Flow as 'flow controller'. It works quite well in the same JVM. But we also want Drools Flow to be on a remote server (+possibly clustering).. There I am stuck because I need our custom WorkItemHandler to start the UI. So, dear community, 1. do you think a flow engine is appropriate for what we are trying to do ? 2. how to manage the 'remote' requirement ? Thanks -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Drools-Flow-UI-Flow-tp1929661p1929661.html Sent from the Drools - User 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] ODP: Programatically adding rules toKnowledgeBase/StatefulKnowledgeSession
Thanks Nathan and Mike! It did the trick. I wish there were easier solution code wise though. Od: rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.org] W imieniu Nathan Bell Wysłano: Thursday, November 18, 2010 9:22 PM Do: Rules Users List Temat: Re: [rules-users] Programatically adding rules toKnowledgeBase/StatefulKnowledgeSession Here is a method cut pasted from working code in a validation class used by some of my unit tests. I think it does what you are asking. private ValidationResult addDrlToKnowledgeBase(String drlAsString ) { ValidationResult retval = null; try { KnowledgeBuilder kBuilder = KnowledgeBuilderFactory.newKnowledgeBuilder(); Reader rdr = new StringReader(drlAsString); Resource resource = ResourceFactory.newReaderResource(rdr); kBuilder.add(resource, ResourceType.DRL); if (kBuilder.hasErrors()) { retval = ValidationResult.newInstance(DRL errors: + kBuilder.getErrors().toString(), null, null); } else { knowledgeSession.getKnowledgeBase().addKnowledgePackages(kBuilder.getKnowled gePackages()); retval = ValidationResult.newInstance(); } } catch(Exception ex) { retval = ValidationResult.newInstance(ex.getMessage(), null, ex); } return retval; } The type of the instance variable knowledgeSession is StatefulKnowledgeSession. Ignore the class ValidationResult, it is a custom class used for returning results from this validation helper class. Hope this helps. -Nathan Bell From: rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Pierre de Leusse Sent: Thursday, November 18, 2010 8:14 AM To: 'Rules Users List' Subject: [rules-users] Programatically adding rules toKnowledgeBase/StatefulKnowledgeSession Hello all, I'm trying to add rules through my java code to a KnowledgeBase and I cannot find any easy way to do so. So far, the only solution I could think of, is to write the rule as DRL in a file that is observed by a KnowledgeAgent (same with a RuleAgent I suppose). Is it possible to create a new KnowledgePackage with the same name as the existing one and load it into the KnowledgeBuilder? I manage to remove rules using the following code: statefulKnowledgeSession.getKnowledgeBase().removeRule(knowledgeSetName, ruleName); I thought that there would be a addRule method somewhere but not luck so far. The code I'm using to create my KnowledgeBase and StatefulKnowledgeSession is shown below. All the best, Pierre StatefulKnowledgeSession creation code: StatefulKnowledgeSession ksession; KnowledgeBuilder kbuilder; KnowledgeBase kbase; kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder(); kbuilder.add(ResourceFactory.newFileResource(Demo.class.getResource(Demo.drl File).getPath()), ResourceType.DRL); if (kbuilder.hasErrors()) { System.out.println(kbuilder.getErrors()); } kbase = KnowledgeBaseFactory.newKnowledgeBase(); kbase.addKnowledgePackages(kbuilder.getKnowledgePackages()); ksession = kbase.newStatefulKnowledgeSession(); ksession.insert(.); . ksession.fireAllRules(); ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] drools gwt-console issues
For issue #1 it can be solved by following the steps below, please note that drools technologies used are 5.1 as downloaded from the default download link of the site (unfortunately was not able to use the lastSuccessfulBuild from https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/ , since i was led to mix match between versions to make it work related post http://drools-java-rules-engine.46999.n3.nabble.com/drools-flow-5-2-0-SNAPSHOT-td1916429.html ) 1. export bpmn flow created in eclipse as png from eclipse (look in the toolbar) and name it id of flow.png 2. place png file inside drools-gwt-graph-5.1.1.jar of the deployed gwt-console-server-drools.war (you will see an already existing com.sample.evaluation.png) 3. at this point it should work right away but it is necessary to include the BPMNDISemanticModule which is not included/used when building in guvnor a package (i.e. the defaultPackage) that includes the previously created workflow. So, either edit the org.drools.guvnor.server.builder.BRMSPackageBuilder.java by adding the line pkgConf.addSemanticModule(new BPMNDISemanticModule()); right after the line pkgConf.addSemanticModule(new BPMNSemanticModule()); . There is probably a more elegant way (which i have not tried it yet) by defining the BPMNDISemanticModule into a BPMNDISemanticModule.conf and seting its path in the property semanticModules inside the drools.default.packagebuilder.conf within the drools-compiler-5.1.1.jar of guvnor.war , this way it is possible to add as many semanticmodules as needed. -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/drools-gwt-console-problems-tp1883084p1929866.html Sent from the Drools - User 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] gwt-console not on localhost
Also other related ChangeSet.xml files may have to be edited i.e. the ChangeSet.xml inside drools-gwt-graph-5.1.1.jar for displaying the diagram of the process etc. In addition for human tasks to work from gwt-console and gwt-console-server it is necessary to change appropriately the hardcoded localhost within org.drools.integration.console.forms.AbstractFormDispatcher -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/gwt-console-not-on-localhost-tp1917604p1929884.html Sent from the Drools - User 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] Is it here or not?
Consider these rules: rule no Ax Or Ax 1 when EventA(id == 1) and Boolean( $v: booleanValue == true ) or (not EventA(id == 1)) and Boolean( $v: booleanValue == false ) then System.out.println( #1: A(1) is + $v ); end rule no Ax Or Ax 2 when (EventA(id == 1) or not( EventA(id == 1) )) List( $size: size ) from collect( EventA(id == 1) ) then boolean v = $size 0; System.out.println( #2: A(1) is + v ); end Rules #1 and #2 fire as expected while inserting lots of EventA(id==1), once for each new one. Rule #1 fires as expected after retracting the last inserted fact. Rule #2 does not, BUT if I split the rule manually in two, they both fire: ...when EventA(id == 1) List(... and ...when not( EventA(id == 1) ) List(... Using 5.1.1. -W ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Building a rule base from the content of a directory
Hi, Many thanks for you answer! Are you talking about DroolsCompilerAntTask and DroolsVerifierAntTask Ant tasks (that I discovered after having read you email)? I've taken a look at the code of the DroolsCompiler task (Drools 5.1.1) and it also concatenates (into a single string) the package file and the BRL file (transformed into DRL) before adding it to the KnowledgeBuilder. The code comes along with the following comment: // TODO: Right now I have to first change this to String. Change to // use KnowledgeBuilder directly when the support for that is done. // -Toni Rikkola- I really wonder if there is a more straighforward way to handle that package file + BRL file association. This is quite fair however compared to the following case: the Drools RCP plugin enables to create rule resources, either rule packages (a DRL file with package, import, globals...) in a single DRL file, or individual rules in a single DRL file as well. An individual rule seems to be kinda like a BRL file: something without any package, import, globals... and with one rule. The problem is I don't see a clever way (when listing the content of a directory) to make the distinction between individual rules and rule packages. For the moment I tend to think that, like in Guvnor UI, the solution is to have conventions (this directory contains individual rules, that directory contains rule packages, that one business rules...). Bruno. Justin Case a écrit : I'm happily using an Ant task for that - registered as Eclipse external builder. But I don't feel it exactly like cutting edge... HTH, JC ___ 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] rules-users Digest, Vol 48, Issue 72
Message: 2 Date: Fri, 19 Nov 2010 09:07:33 +1100 From: Xinhua Zhu xh...@it.uts.edu.au Subject: [rules-users] Integrate Fusion into Guvnor To: rules-users@lists.jboss.org Message-ID: aanlktimqfjttdmj=mfner9nqckttpdvyfoh-not1s...@mail.gmail.com Content-Type: text/plain; charset=iso-8859-1 Hi When Fusion can be integrated into Guvnor? BR Xinhua -- next part -- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/rules-users/attachments/20101119/a77038 b9/attachment-0001.html -- I asked this question about a month ago and never got a response, but, through experimentation with it, I did learn some things: 1. There does not appear to be an easy was to define a Fact as an Event. What I found out, though, is that if you create a technical rule, clear out the WHEN-THEN stuff, you could put the declare in its place and it seemed to work okay. 2. You can put Accumulates in your rules with Free Form DRL (Guided Editor) or just use the Technical Rule Editor. I also found that DSL was easier for it since you could parameterize your sliding windows, etc., so all you had to do is pop in the values. 3. I don't think your event streams can be built in the Guided Editor (at least in 5.0.1), so that may force you to do Technical Rules/DRL or DSL. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] Drools flow - disposign a StatefulKnowledgeSession
How should this be done? My startProcess call returns before the workflow has finished because I have long running WorkItems. Do I need to call dispose on the session when the workflow has completed? If so can I call dispose from a ProcessEventListener? Thanks, Greg ** This message is confidential and intended only for the addressee. If you have received this message in error, please immediately notify the postmas...@nds.com and delete it from your system as well as any copies. The content of e-mails as well as traffic data may be monitored by NDS for employment and security purposes. To protect the environment please do not print this e-mail unless necessary. NDS Limited. Registered Office: One London Road, Staines, Middlesex, TW18 4EX, United Kingdom. A company registered in England and Wales. Registered no. 3080780. VAT no. GB 603 8808 40-00 ** ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] pass parameters when starting process on gwt-console-server
Hello everyone!! Is it possible to pass parameters to gwt-console-server when starting a process?? From code I noticed that calling the service /gwt-console-server/rs/process/definition/{id}/new_instance , the class org.jboss.bpm.console.server.ProcessMgmtFacade does not accept parameters and only calls instance = getProcessManagement().newInstance(definitionId); which gives null for parameters in startProcess(..) method. So, is there a service that accepts parameters when starting a process? Is it possible to access the knowledge session used by the gwt-console-server in order to pass parameters ? Is there some other way maybe??i.e. adding a fact to the working memory? Initially if it is possible I would prefer to avoid editing any code i.e. ProcessMgmtFacade or DroolsFlowCommandDelegate I would appreciate any help, comments and suggestions thank you for your time -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/pass-parameters-when-starting-process-on-gwt-console-server-tp1931244p1931244.html Sent from the Drools - User 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] Eclipse 5.1.1 plugin crash
Hello, I'm not exactly sure if this is the right list to report this, but I have experienced an Eclipse crash with the 5.1.1 workbench plugin recently. It has worked flawlessly until now, I was experimenting with Fusion (event) features and trying to access the audit.log when this happened. It has consistently happened since then. Here is the crash log (Windows 7 64-bit, Eclipse Helios, equinox seems to be involved): # # A fatal error has been detected by the Java Runtime Environment: # # EXCEPTION_ACCESS_VIOLATION (0xc005) at pc=0x07fefbdeb770, pid=15160, tid=14688 # # JRE version: 6.0_21-b07 # Java VM: Java HotSpot(TM) 64-Bit Server VM (17.0-b17 mixed mode windows-amd64 ) # Problematic frame: # C [COMCTL32.dll+0xdb770] # # If you would like to submit a bug report, please visit: # http://java.sun.com/webapps/bugreport/crash.jsp # The crash happened outside the Java Virtual Machine in native code. # See problematic frame for where to report the bug. # --- T H R E A D --- Current thread (0x0030b800): JavaThread main [_thread_in_native, id=14688, stack(0x0207,0x0217)] siginfo: ExceptionCode=0xc005, reading address 0x003c Registers: EAX=0x, EBX=0x3f120140, ECX=0x82a6665ac35e, EDX=0x0004 ESP=0x0216bd20, EBP=0x, ESI=0x3f1204a0, EDI=0x3e766310 EIP=0x07fefbdeb770, EFLAGS=0x00010213 Top of Stack: (sp=0x0216bd20) 0x0216bd20: 3f120140 3f120140 0x0216bd30: 3f1204a0 3f120140 0x0216bd40: 82a6644c7e4e 3f11f540 0x0216bd50: 001b038a 0064 0x0216bd60: fff4 07fefbdea7b8 0x0216bd70: 060117ac 0x0216bd80: 3f11f540 0x0216bd90: 3f10b5f0 0x0216bda0: 00fcfcfc001c 07fe 0x0216bdb0: 3e766310 07fefbde9710 0x0216bdc0: 3e766310 07fefbde6c1c 0x0216bdd0: 82a6644c7e2e 07fefbda83a3 0x0216bde0: 07fefbde9d72 0x0216bdf0: 3e766310 3e766310 0x0216be00: 0001 0x0216be10: 07fefbda3fe1 Instructions: (pc=0x07fefbdeb770) 0x07fefbdeb760: 8b 5b 3c 41 83 fb ff 74 32 48 8b 87 78 01 00 00 0x07fefbdeb770: 44 2b 58 3c 45 3b df 7f 05 41 3b ef 75 1d 0f b7 Stack: [0x0207,0x0217], sp=0x0216bd20, free space=3efk Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) C [COMCTL32.dll+0xdb770] [error occurred during error reporting (printing native stack), id 0xc005] Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) j org.eclipse.swt.internal.win32.OS.GetOpenFileNameW(Lorg/eclipse/swt/internal/win32/OPENFILENAME;)Z+0 j org.eclipse.swt.internal.win32.OS.GetOpenFileName(Lorg/eclipse/swt/internal/win32/OPENFILENAME;)Z+7 j org.eclipse.swt.widgets.FileDialog.open()Ljava/lang/String;+896 j org.drools.eclipse.debug.actions.OpenLogAction.run()V+45 j org.eclipse.jface.action.Action.runWithEvent(Lorg/eclipse/swt/widgets/Event;)V+1 j org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(Lorg/eclipse/swt/widgets/Event;Z)V+354 j org.eclipse.jface.action.ActionContributionItem.access$2(Lorg/eclipse/jface/action/ActionContributionItem;Lorg/eclipse/swt/widgets/Event;Z)V+3 j org.eclipse.jface.action.ActionContributionItem$6.handleEvent(Lorg/eclipse/swt/widgets/Event;)V+60 J org.eclipse.swt.widgets.EventTable.sendEvent(Lorg/eclipse/swt/widgets/Event;)V j org.eclipse.swt.widgets.Widget.sendEvent(Lorg/eclipse/swt/widgets/Event;)V+25 j org.eclipse.swt.widgets.Display.runDeferredEvents()Z+92 j org.eclipse.swt.widgets.Display.readAndDispatch()Z+69 j org.eclipse.ui.internal.Workbench.runEventLoop(Lorg/eclipse/jface/window/Window$IExceptionHandler;Lorg/eclipse/swt/widgets/Display;)V+9 j org.eclipse.ui.internal.Workbench.runUI()I+555 j org.eclipse.ui.internal.Workbench.access$4(Lorg/eclipse/ui/internal/Workbench;)I+1 j org.eclipse.ui.internal.Workbench$7.run()V+55 j org.eclipse.core.databinding.observable.Realm.runWithDefault(Lorg/eclipse/core/databinding/observable/Realm;Ljava/lang/Runnable;)V+12 j org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Lorg/eclipse/swt/widgets/Display;Lorg/eclipse/ui/application/WorkbenchAdvisor;)I+18 j org.eclipse.ui.PlatformUI.createAndRunWorkbench(Lorg/eclipse/swt/widgets/Display;Lorg/eclipse/ui/application/WorkbenchAdvisor;)I+2 j org.eclipse.ui.internal.ide.application.IDEApplication.start(Lorg/eclipse/equinox/app/IApplicationContext;)Ljava/lang/Object;+99 j org.eclipse.equinox.internal.app.EclipseAppHandle.run(Ljava/lang/Object;)Ljava/lang/Object;+135 j
Re: [rules-users] Integrate Fusion into Guvnor
Message: 4 Date: Fri, 19 Nov 2010 07:01:36 -0700 From: John Peterson john.peterson.g...@statefarm.com Subject: Re: [rules-users] rules-users Digest, Vol 48, Issue 72 To: rules-users@lists.jboss.org Message-ID: d3a6e68928c9104bb815c83f43a36bdf0ed54...@wpscv6nh.opr.statefarm.org Content-Type: text/plain; charset=us-ascii Message: 2 Date: Fri, 19 Nov 2010 09:07:33 +1100 From: Xinhua Zhu xh...@it.uts.edu.au Subject: [rules-users] Integrate Fusion into Guvnor To: rules-users@lists.jboss.org Message-ID: aanlktimqfjttdmj=mfner9nqckttpdvyfoh-not1s...@mail.gmail.com Content-Type: text/plain; charset=iso-8859-1 Hi When Fusion can be integrated into Guvnor? BR Xinhua -- next part -- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/rules-users/attachments/20101119/a77038 b9/attachment-0001.html -- I asked this question about a month ago and never got a response, but, through experimentation with it, I did learn some things: 1. There does not appear to be an easy was to define a Fact as an Event. What I found out, though, is that if you create a technical rule, clear out the WHEN-THEN stuff, you could put the declare in its place and it seemed to work okay. 2. You can put Accumulates in your rules with Free Form DRL (Guided Editor) or just use the Technical Rule Editor. I also found that DSL was easier for it since you could parameterize your sliding windows, etc., so all you had to do is pop in the values. 3. I don't think your event streams can be built in the Guided Editor (at least in 5.0.1), so that may force you to do Technical Rules/DRL or DSL. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Integrate Fusion into Guvnor
This may or may not answer your question, but with regards to #2, I've been easily able to convert my project based on Facts to Events by simply adding this to one of the DRL files (I used drools.package): declare NumericFact // This is an already defined proper Java class @role( event ) @timestamp( date ) // property defined in class with getter and setter for my needs (historical data) @expires( 365d ) // for my needs end And in my code to process streamed events: KnowledgeBaseConfiguration config = KnowledgeBaseFactory.newKnowledgeBaseConfiguration(); config.setOption( EventProcessingOption.STREAM ); kbase = KnowledgeBaseFactory.newKnowledgeBase(config); Note that facts have to be inserted chronologically with STREAM. HTH (perhaps) John Peterson wrote: Message: 4 Date: Fri, 19 Nov 2010 07:01:36 -0700 From: John Peterson john.peterson.g...@statefarm.com Subject: Re: [rules-users] rules-users Digest, Vol 48, Issue 72 To: rules-users@lists.jboss.org Message-ID: d3a6e68928c9104bb815c83f43a36bdf0ed54...@wpscv6nh.opr.statefarm.org Content-Type: text/plain; charset=us-ascii Message: 2 Date: Fri, 19 Nov 2010 09:07:33 +1100 From: Xinhua Zhu xh...@it.uts.edu.au Subject: [rules-users] Integrate Fusion into Guvnor To: rules-users@lists.jboss.org Message-ID: aanlktimqfjttdmj=mfner9nqckttpdvyfoh-not1s...@mail.gmail.com Content-Type: text/plain; charset=iso-8859-1 Hi When Fusion can be integrated into Guvnor? BR Xinhua -- next part -- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/rules-users/attachments/20101119/a77038 b9/attachment-0001.html -- I asked this question about a month ago and never got a response, but, through experimentation with it, I did learn some things: 1. There does not appear to be an easy was to define a Fact as an Event. What I found out, though, is that if you create a technical rule, clear out the WHEN-THEN stuff, you could put the declare in its place and it seemed to work okay. 2. You can put Accumulates in your rules with Free Form DRL (Guided Editor) or just use the Technical Rule Editor. I also found that DSL was easier for it since you could parameterize your sliding windows, etc., so all you had to do is pop in the values. 3. I don't think your event streams can be built in the Guided Editor (at least in 5.0.1), so that may force you to do Technical Rules/DRL or DSL. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Integrate-Fusion-into-Guvnor-tp1926948p1931502.html Sent from the Drools - User 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] Integrate Fusion into Guvnor
On 19/11/2010 16:14, John Peterson wrote: Message: 4 Date: Fri, 19 Nov 2010 07:01:36 -0700 From: John Petersonjohn.peterson.g...@statefarm.com Subject: Re: [rules-users] rules-users Digest, Vol 48, Issue 72 To:rules-users@lists.jboss.org Message-ID: d3a6e68928c9104bb815c83f43a36bdf0ed54...@wpscv6nh.opr.statefarm.org Content-Type: text/plain; charset=us-ascii Message: 2 Date: Fri, 19 Nov 2010 09:07:33 +1100 From: Xinhua Zhuxh...@it.uts.edu.au Subject: [rules-users] Integrate Fusion into Guvnor To: rules-users@lists.jboss.org Message-ID: aanlktimqfjttdmj=mfner9nqckttpdvyfoh-not1s...@mail.gmail.com Content-Type: text/plain; charset=iso-8859-1 Hi When Fusion can be integrated into Guvnor? BR Xinhua -- next part -- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/rules-users/attachments/20101119/a77038 b9/attachment-0001.html -- I asked this question about a month ago and never got a response, but, through experimentation with it, I did learn some things: 1. There does not appear to be an easy was to define a Fact as an Event. What I found out, though, is that if you create a technical rule, clear out the WHEN-THEN stuff, you could put the declare in its place and it seemed to work okay. 2. You can put Accumulates in your rules with Free Form DRL (Guided Editor) or just use the Technical Rule Editor. I also found that DSL was easier for it since you could parameterize your sliding windows, etc., so all you had to do is pop in the values. 3. I don't think your event streams can be built in the Guided Editor (at least in 5.0.1), so that may force you to do Technical Rules/DRL or DSL. These things are easy to add, but we need more community involvement if they are to get done; they are planned, we just can't put a date on it. I suspect most of you on this list would be capable of adding these sort of things to the guided editor. Mark ___ 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 gwt-console issues
Hi All, I am also facing issue 2, i dont want to restart server everytime, any help would be greatly appreciated. On Thu, Nov 18, 2010 at 3:41 AM, melc c_me...@yahoo.com wrote: For issue # 2 it seems that in order for gwt-console to display the current state of the guvnor package after build, the StatefulKnowledgeSession object ksession in org.drools.integration.console.DroolsFlowCommandDelegate will have to be reinitialised i.e. from method getSession(), but this never happens whether pressing the refresh button or logging out and back in as different user etc the ksession is never null and calling getSession() never calls ksession = newStatefulKnowledgeSession(); . So the question is how to achieve this without touching the code, is there some configuration that would force that after refresh or log out/in of a user in order to display the latest state of guvnor? If not and the code is changed to always initialize the session within method getSession() , would there be a considerable impact in performance ? I appreciate any help, thank you for your time. -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/drools-gwt-console-problems-tp1883084p1920158.html Sent from the Drools - User 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