Re: [rules-users] Drools Concurrent Execution causes Blocked Threads
Hi All, Has anyone faced similar issues ??. Please advise Regards, lalit. -- View this message in context: http://drools.46999.n3.nabble.com/Drools-Concurrent-Execution-causes-Blocked-Threads-tp4025632p4025639.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 set enabled=true/false attribute in spreadsheeet decision table?
In web guided editor, I am able to add a new metadata/attribute column to add a column for enabled attribute, which I can use to disable rule on that row. I am not able to achieve that in a spreadsheet decision table. When I add ENABLED column, it puts CALENDARS in the DRL. It looks like it is taking the E from ENABLED which for CALENDARS. Does that mean that ENABLED attribute is not supported in spreadsheet decision table? thanks -- View this message in context: http://drools.46999.n3.nabble.com/How-to-set-enabled-true-false-attribute-in-spreadsheeet-decision-table-tp4025642.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] decision tables conditional matching
Just some thoughts/comments... It looks like you are trying to solve a logic that has conditions that are dependent between rules. This usually gets messy like you have observed. I like to keep my rules atomic without ANY dependencies to other rules and I try to avoid controlling order of execution. As you stated, if you make every rule atomic, it has to account for all conditions - which is not necessarily bad, but your rules will have many conditions that seem redundant when you look at the other rules. There are many posts on this topic, you may want to scan through the posts. One approach is to use stated facts and let rete do its work. If your domain is to check eligibility, you can consider writing only the rules that evaluate for true or only the rules that evaluate to false. Typically, for eligibility, you only evaluate when eligibility would be false, that will reduce your rules. Otherwise, there will be plenty of gaps in your rules. I know I dint give an answer that you are looking for, but some things to consider. Good Luck :) -- View this message in context: http://drools.46999.n3.nabble.com/rules-users-decision-tables-conditional-matching-tp4025603p4025645.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 Guvnor Integration
From the trace, it looks like you need to add the source jars. Maybe you are trying to debug and when stepping into a method you are getting this? -- View this message in context: http://drools.46999.n3.nabble.com/Drools-Guvnor-Integration-tp4025641p4025649.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 Guvnor Integration
From the trace, it might not be the case that you don't have the source. Sorry, I dont want to misguide you. I dont know what this error means. You can get the source from the same download that you got Drools Expert. Good luck. -- View this message in context: http://drools.46999.n3.nabble.com/Drools-Guvnor-Integration-tp4025641p4025651.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] Problem initializing Drools from EMF model editor plugin
Hi, I’m using the EMF model editor of the project MDT/BPMN2 to edit BPMN models and I’d like to use Drools to validate my models. However, when the code line: KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder(); is called into the editor application, I get the following error: !ENTRY org.eclipse.ui 4 0 2013-08-22 15:56:32.784 !MESSAGE Unhandled event loop exception !STACK 0 org.eclipse.e4.core.di.InjectionException: java.lang.NoClassDefFoundError: org/drools/builder/KnowledgeBuilderFactory at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:63) at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:229) at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:210) at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:131) at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:171) at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.executeItem(HandledContributionItem.java:851) at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.handleWidgetSelection(HandledContributionItem.java:744) at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.access$7(HandledContributionItem.java:728) at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem$4.handleEvent(HandledContributionItem.java:667) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1022) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:916) at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86) at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:585) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:540) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584) at org.eclipse.equinox.launcher.Main.run(Main.java:1438) at org.eclipse.equinox.launcher.Main.main(Main.java:1414) I’ve already added standard Drools runtime libs to build path, but the error goes on. Can someone help me? Thanks, Raquel -- View this message in context: http://drools.46999.n3.nabble.com/Problem-initializing-Drools-from-EMF-model-editor-plugin-tp4025652.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] Timer in decision table from a different column?
I have a Drools 5.5 guided decision table (via guvnor). I am trying to populate both the timer value AND a value on the RHS with a value from a single column. For example, I'm trying to produce code that looks like: I want to have source like: rule rule1 timer(*1d*) when $car : Car (name matches ford) then WorkIssue $wi = new WorkIssue(); $wi.setTimeout (*1d* ); end Note that the timer and the setTimeout setter are using the same value. Anyone have any insight on how/if this can be accomplished via decision tables (I had it working in my templates)? Thanks, -J -- View this message in context: http://drools.46999.n3.nabble.com/Timer-in-decision-table-from-a-different-column-tp4025654.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