Re: [rules-users] counting facts of a kind
2010/8/24 Edson Tirelli tire...@post.com Wolfgang, The requirement for serializable classes even when not using persistence was a mistake made several versions ago and I believed it was fixed. What version of Drools are you using? If that is trunk, we need to fix it. The latest official release 5.1. Anyway, workaround: for count(), you can simply write count(1) instead of using the actual variable, Good to know. OTOH, is there any good reason for count() having an argument at all? Just because all others have an argument? Nowadays, the uniform signature could be (Object... objs) which would, e.g., permit you to write count() without the dummy argument. Others, such as sum, average and especially min and max could easily handle more than one argument. Not a bonanza, but being general is not a bad thing... -W Edson 2010/8/23 Wolfgang Laun wolfgang.l...@gmail.com No, not knowingly :-) I'm using the simplest possible setup for KnowledgeBase, KnowledgeBuilder, StatefulKnowledgeSession. Why should accumulate/count effect persistence? -W 2010/8/23 Swindells, Thomas tswinde...@nds.com You’ve probably configured your system to be using persistence? In which case what you are persisting needs to be serializable so that it can be persisted Thomas *From:* rules-users-boun...@lists.jboss.org [mailto: rules-users-boun...@lists.jboss.org] *On Behalf Of *Wolfgang Laun *Sent:* 23 August 2010 12:17 *To:* Rules Users List *Subject:* [rules-users] counting facts of a kind As simple as it gets: rule countHigh when $n : Number() from accumulate ( $sgc : StartGoalConn() count( $sgc ) ) then System.out.println( plain routes: + $n ); end And yet, it fails: Exception in thread main org.drools.RuntimeDroolsException: java.lang.ClassCastException: rss.ixl.route.TrainStartGoalConn cannot be cast to java.io.Serializable Sure, adding implements Serializable to StartGoalConn fixes this. But why is this necessary? FYI, StartGoalConn is abstract superclass of TrainStartGoalConn - just in case this has some bearing on this issue. Best -W -- ** 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 mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- Edson Tirelli JBoss Drools Core Development JBoss by Red Hat @ www.jboss.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
[rules-users] Error while applying changeset in 5.1 version
Hi, I have used 5.1 drools-api and drools-core JARs and wrote following code : String currentWorkingDirectory = System.getProperty(ofbiz.home); kagent = KnowledgeAgentFactory.newKnowledgeAgent( MyRuleAgent ); String url = file:+currentWorkingDirectory+/framework/drools/config/changeset.xml; System.out.println(Url is +url+\t CwD +currentWorkingDirectory); kagent.applyChangeSet( ResourceFactory.newUrlResource( url ) ); KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder(); kbuilder.add( ResourceFactory.newUrlResource( url ), ResourceType.CHANGE_SET ); kbase = kagent.getKnowledgeBase(); ResourceFactory.getResourceChangeNotifierService().start(); ResourceFactory.getResourceChangeScannerService().start(); While execution , I got following error : Service invocation error Exception: org.ofbiz.service.GenericServiceException Message: Service [ruleServiceJava] target threw an unexpected exception (org/drools/rule/CompositeClassLoader) cause - Exception: java.lang.NoClassDefFoundError Message: org/drools/rule/CompositeClassLoader stack trace --- java.lang.NoClassDefFoundError: org/drools/rule/CompositeClassLoader org.drools.builder.impl.KnowledgeBuilderFactoryServiceImpl.newKnowledgeBuilder(KnowledgeBuilderFactoryServiceImpl.java:34) org.drools.builder.KnowledgeBuilderFactory.newKnowledgeBuilder(KnowledgeBuilderFactory.java:47) org.drools.agent.impl.KnowledgeAgentImpl.createKBuilder(KnowledgeAgentImpl.java:1214) org.drools.agent.impl.KnowledgeAgentImpl.addResourcesToKnowledgeBase(KnowledgeAgentImpl.java:884) org.drools.agent.impl.KnowledgeAgentImpl.rebuildResources(KnowledgeAgentImpl.java:704) org.drools.agent.impl.KnowledgeAgentImpl.buildKnowledgeBase(KnowledgeAgentImpl.java:584) org.drools.agent.impl.KnowledgeAgentImpl.applyChangeSet(KnowledgeAgentImpl.java:185) org.drools.agent.impl.KnowledgeAgentImpl.applyChangeSet(KnowledgeAgentImpl.java:168) org.ofbiz.drools.event.drool.RuleIntegrate.createKnowledgeBase(RuleIntegrate.java:46) org.ofbiz.drools.event.drool.RuleIntegrate.createWorkingMemory(RuleIntegrate.java:29) org.ofbiz.payroll.DroolsRule.callRuleJava(DroolsRule.java:42) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:597) org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:100) org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:57) org.ofbiz.service.ModelServiceReader$GenericInvokerImpl.runSync(ModelServiceReader.java:761) _$gen.file_58$.D_58$.Swapnil_95$Data.ofbiz_95$payroll.ofbiz_45$17_45$Aug_45$2010.applications.payroll.servicedef.services _46$xml_35$ruleServiceJava.runSync(file:/D:/Swapnil_Data/ofbiz_payroll/ofbiz-17-Aug-2010/applications/payroll/servicedef/ services.xml#ruleServiceJava:114) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:399) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:226) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:165) org.ofbiz.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:336) org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:637) org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:383) org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:227) org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:90) javax.servlet.http.HttpServlet.service(HttpServlet.java:637) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:271) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
Re: [rules-users] Drools Flow inconsistancies
Paul, Do you use the same KnowledgeBuilder for adding all your processes to the KnowledgeBase? That should make sure that any potential conflict in generated java classes is resolved automatically. Kris - Original Message - From: paulB paul.bor...@sironahealth.com To: rules-users@lists.jboss.org Sent: Wednesday, August 18, 2010 7:03 PM Subject: Re: [rules-users] Drools Flow inconsistancies Thanks, Alan. My problem was slightly similar. I found that the generated classes and methods for the returnValueEvaluators (and other generated classes/methods) were being overwritten for every process in the same package. Thus, the last compiled process in my changeset for a given package worked fine, and the preceding processes were exhibiting the strange behavior. The reason it worked on my local machine was due to the fact that I was only debugging with one process in my changeset. A workaround for this is to have every process in a different package. But this makes me believe there is something still very wrong, here. I have yet to determine if this is an issue in the trunk or 5.1, or if it's simply something in my local configurations and/or loaded classes. I may drill further to determine that. I would highly recommend these debugging tools and parameters to anyone trying to debug a server side issue with these generated classes: drools.dump.dir http://blog.athico.com/2008/02/looking-under-drools-skirt.html Eclipse Remote Debugging http://www.eclipsezone.com/eclipse/forums/t53459.html Cheers. -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Drools-Flow-inconsistancies-tp862p1209881.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 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
[rules-users] Rules in Database.
Hi, what I can't do is to save rules defined in Guvnor to DBMS's tables. I want another application to read rules, and this another application can read from Database. I saved Guvnor's data in database, but I can't see tables with rules definition... How can I do it? Thanks in advance, tom. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] Weird exception: unknow node id: 8
the exception is thrown when a signalEvent is called. The node id 8 is EventNode in the flowgraph. eventNode id=8 name=Ukonceni PM x=403 y=51 width=48 height=48 scope=internal eventFilters eventFilter type=eventType eventType=DECLINE / /eventFilters /eventNode Know somebody where is the problem ? Thanks Miloslav Vlach -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Weird-exception-unknow-node-id-8-tp1312306p1312306.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] no visitor implementation for : class org.drools.rule.TypeDeclaration
Thank you for the explanation, Esteban. :) I'm sorry, but I have still some uncertainties about it. #1 I'm not sure if I've understood it correct. Is the message displayed every time a resource containing declares is modified or does is it displayed if the declare statements are changed? #2 The following extract of my original log extract says that the LHS of two rules has been changed. But I haven't modified anything on them. I've just deleted a rule. So what does it mean? Or am I missunderstanding the messages? Because for the the first rule no changes have been detected (and that is what I would expect for all rules except the deleted on.) [2010:08:235 21:08:546:debug] BinaryResourceDiffProducerImpl: [Rule name=/Warning threshold exceeded to many times/, agendaGroup=MAIN, salience=0, no-loop=false] didn't change. Removing from diff package and adding it to unmodified list. [2010:08:235 21:08:546:debug] BinaryResourceDiffProducerImpl: Comparing [Rule name=/_I_nsert Watcher Into Knowledge Base/, agendaGroup=MAIN, salience=0, no-loop=false] against [Rule name=Insert Watcher Into Knowledge Base, agendaGroup=MAIN, salience=0, no-loop=false] [2010:08:235 21:08:546:debug] BinaryResourceDiffProducerImpl: *The rules have different LHS* [2010:08:235 21:08:546:debug] BinaryResourceDiffProducerImpl: Comparing [Rule name=/Add Event to Watcher Set/, agendaGroup=MAIN, salience=0, no-loop=false] against [Rule name=Add Event to Watcher Set, agendaGroup=MAIN, salience=0, no-loop=false] [2010:08:235 21:08:546:debug] BinaryResourceDiffProducerImpl: *The rules have different LHS* Thanks :) Tina Am 23.08.2010 23:33, schrieb Esteban Aliverti: When working on incremental change-set processing mode, Knowledge Agent performs a diff between the original and the modified resources. Modified resources are compiled, and a visitor pattern is used to loop over knowledge definitions (such as rules, functions, queries, etc.). So if rule1 was modified in the new resource, it is removed from the original kbase and replaced with the new implementation. The thing is that kagent doesn't implement a visitor for TypeDeclaration (when you use *declare* in your DRL to define your model) so it doesn't know how to handle them. I have recently fix a typo in the visitor implementation that prevented you to receive a better message: BinaryResourceDiffProducerImpl: Couldn't handle +yourDefinitionName+. We must leave it in the new Package. This means that kagent doesn't support modifications on declared types yet. Best, Esteban Aliverti - Developer @ http://www.plugtree.com http://www.plugtree.com - Blog @ http://ilesteban.wordpress.com 2010/8/23 Tina Vießmann tviessm...@stud.hs-bremen.de mailto:tviessm...@stud.hs-bremen.de Hi, I'm getting a two red highlighted outputs in eclipse if I modify my rules file during run time. Besides that the modifications seem to work. What does it mean? The full output I get when the resource change is detected is listed below. The bold lines are the concerned ones. Thanks for any help! :) Tina [2010:08:235 21:08:296:debug] ResourceChangeScanner attempt to scan 1 resources [2010:08:235 21:08:296:debug] ResourceChangeScanner modified resource=[ClassPathResource path='testRule.drl'] : 1282559206875 : 1282591705000 [2010:08:235 21:08:296:debug] ResourceChangeNotification received ChangeSet notification [2010:08:235 21:08:296:debug] ResourceChangeScanner thread is waiting for 10 seconds. [2010:08:235 21:08:296:debug] ResourceChangeNotification processing ChangeSet [2010:08:235 21:08:296:debug] ResourceChangeNotification ChangeSet modified resource=[ClassPathResource path='testRule.drl'] for listener=org.drools.agent.impl.knowledgeagenti...@b40ec4 [2010:08:235 21:08:296:debug] KnowledgeAgent received ChangeSet changed notification [2010:08:235 21:08:296:info] KnowledgeAgent applying ChangeSet [2010:08:235 21:08:296:debug] KnowledgeAgent removing mappings for resource=[ClassPathResource path='testRule.drl'] with unsubscribe=true [2010:08:235 21:08:296:debug] KnowledgeAgent notifier unsubscribing to resource=[ClassPathResource path='testRule.drl'] [2010:08:235 21:08:296:debug] ResourceChangeNotification unsubscribing listener=org.drools.agent.impl.knowledgeagenti...@b40ec4 to resource=[ClassPathResource path='testRule.drl'] [2010:08:235 21:08:296:debug] ResourceChangeScanner unsubcribing notifier=org.drools.io.impl.resourcechangenotifieri...@13576a2 to resource=[ClassPathResource path='testRule.drl'] [2010:08:235 21:08:296:debug] ResourceChangeScanner resource=[ClassPathResource path='testRule.drl'] now has no subscribers [2010:08:235 21:08:296:debug] KnowledgeAgent rebuilding KnowledgeBase using ChangeSet [2010:08:235
[rules-users] Guvnor package and gwt-server ChangeSet definition
Upcoming from http://drools-java-rules-engine.46999.n3.nabble.com/Can-t-see-process-in-gwt-console-after-changing-guvnor-to-authenticator-td1025462.html this thread, I have a question regarding guvnor, gwt-console-server and the ChangeSet definition. Lets say I have a custom package called 'com.company.product', do I really need to declare this package in the ChangeSet.xml inside the drools-gwt-console-{version}.jar of the gwt-console-server: lt;resource source='http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/com.company.product/LATEST' type='PKG' ... /gt; ? Is there a way to define new packages more dynamically? Thanks in advance for every hint, - Thomas -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Guvnor-package-and-gwt-server-ChangeSet-definition-tp1313401p1313401.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] comparing an intersection of sets..
Hi, I have a situation where i need to evaluate a condition where the intersection of 2 sets should atleast have one element in it. I am using drools template to create the DRL and have a set B (item1,item2, item3, item4). Now, at runtime i have a setA (item2, item5). the intersection of the sets will have item2 and such should evaluate to true. I am currently using evaluate to do a custom function but just wanted to check if there was a way to do something like this by utilizing one of the existing keywords available. Any insight will be very appreciated. thanks for your time. -ms -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/comparing-an-intersection-of-sets-tp1313555p1313555.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] counting facts of a kind
Good to know. OTOH, is there any good reason for count() having an argument at all? Just because all others have an argument? Nowadays, the uniform signature could be (Object... objs) which would, e.g., permit you to write count() without the dummy argument. Others, such as sum, average and especially min and max could easily handle more than one argument. Not a bonanza, but being general is not a bad thing... I agree. Working on it as we speak. The new Drools version will bring several changes on syntax that will hopefully make the language less verbose and more consistent overall. Edson ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] NoClassDefFoundError when inserting Guvnor-declared Fact
I'm experiencing a stack trace error (which I've pasted below) with a sample Drools/Guvnor application. I'm running version 5.0.1 right now. Here's the scenario: I have a Java application loading data (56 records right now) from a flat file, creating objects (one per row), parsing the individual fields on the file into the attributes of the objects, putting them into an array, and then inserting them into my Guvnor session. In Guvnor, I have a POJO model to receive the data plus a Declarative Model that enables the Guvnor user to set derived values based on the input data. There is a very basic rule that says the following (using the Guided Editor): When AppData[ad] Then System.out.println(Creating DerivedValues for + ad.getAwards_id()); /* Added as Free Form DRL Insert DerivedValues appID=ad.getAwards_ID(); System.out.println(DerivedValus for Awards_id + dv.getAwardsID()); /* Added as Free Form DRL Essentially, for each Fact of AppData, I'm creating and linking it to a Fact of DerivedValues that the user can add attributes to. I runs fine for the first 51 rows, then blows up on the rule when it is processing the 52 row (with 4 more to go after that). If I cut the file down to only have 51 rows, it doesn't blow up. The error - java.lang.NoClassDefFoundError: com/statefarm/DerivedValues is confusing because it has used DerivedValues 51 times without issue up to this point. I've been trying to a handle on this for a couple days without any luck. Here is my stack trace: RuleAgent(default) INFO (Tue Aug 24 11:17:12 CDT 2010): Configuring with newInstance=false, secondsToRefresh=-1 RuleAgent(default) INFO (Tue Aug 24 11:17:12 CDT 2010): Configuring package provider : URLScanner monitoring URLs: http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/com .statefarm/LATEST RuleAgent(default) INFO (Tue Aug 24 11:17:15 CDT 2010): Applying changes to the rulebase. RuleAgent(default) INFO (Tue Aug 24 11:17:16 CDT 2010): Adding package called com.statefarm (53 blank rows removed to save space) Creating DerivedValues for 122932 DerivedValus for Awards_id 122932 Creating DerivedValues for 122440 DerivedValus for Awards_id 122440 Creating DerivedValues for 122433 DerivedValus for Awards_id 122433 Creating DerivedValues for 122295 DerivedValus for Awards_id 122295 Creating DerivedValues for 119677 DerivedValus for Awards_id 119677 Creating DerivedValues for 118089 DerivedValus for Awards_id 118089 Creating DerivedValues for 118055 DerivedValus for Awards_id 118055 Creating DerivedValues for 118047 DerivedValus for Awards_id 118047 Creating DerivedValues for 118001 DerivedValus for Awards_id 118001 Creating DerivedValues for 117969 DerivedValus for Awards_id 117969 Creating DerivedValues for 117750 DerivedValus for Awards_id 117750 Creating DerivedValues for 117685 DerivedValus for Awards_id 117685 Creating DerivedValues for 117679 DerivedValus for Awards_id 117679 Creating DerivedValues for 117607 DerivedValus for Awards_id 117607 Creating DerivedValues for 117520 DerivedValus for Awards_id 117520 Creating DerivedValues for 117492 DerivedValus for Awards_id 117492 Creating DerivedValues for 117432 DerivedValus for Awards_id 117432 Creating DerivedValues for 117413 DerivedValus for Awards_id 117413 Creating DerivedValues for 117292 DerivedValus for Awards_id 117292 Creating DerivedValues for 117230 DerivedValus for Awards_id 117230 Creating DerivedValues for 117137 DerivedValus for Awards_id 117137 Creating DerivedValues for 116971 DerivedValus for Awards_id 116971 Creating DerivedValues for 116748 DerivedValus for Awards_id 116748 Creating DerivedValues for 116662 DerivedValus for Awards_id 116662 Creating DerivedValues for 116579 DerivedValus for Awards_id 116579 Creating DerivedValues for 116101 DerivedValus for Awards_id 116101 Creating DerivedValues for 115834 DerivedValus for Awards_id 115834 Creating DerivedValues for 115730 DerivedValus for Awards_id 115730 Creating DerivedValues for 114885 DerivedValus for Awards_id 114885 Creating DerivedValues for 114837 DerivedValus for Awards_id 114837 Creating DerivedValues for 114760 DerivedValus for Awards_id 114760 Creating DerivedValues for 114728 DerivedValus for Awards_id 114728 Creating DerivedValues for 114652 DerivedValus for Awards_id 114652 Creating DerivedValues for 114317 DerivedValus for Awards_id 114317 Creating DerivedValues for 113944 DerivedValus for Awards_id 113944 Creating DerivedValues for 113908 DerivedValus for Awards_id 113908 Creating DerivedValues for 113251 DerivedValus for Awards_id 113251 Creating DerivedValues for 113230 DerivedValus for Awards_id 113230 Creating DerivedValues for 112949 DerivedValus for Awards_id 112949 Creating DerivedValues for 112397 DerivedValus for Awards_id 112397 Creating DerivedValues for 111749 DerivedValus for Awards_id 111749 Creating DerivedValues for 111313 DerivedValus for Awards_id 111313 Creating DerivedValues for 111035 DerivedValus for Awards_id 111035 Creating DerivedValues
Re: [rules-users] Drools Flow inconsistancies
Thanks for the reply, Kris. I am using a KnowledgeAgent instead of a KnowledgeBuilder. -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Drools-Flow-inconsistancies-tp862p1318676.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] rules update not working properly .
Hi All, When i try to update three object in rules its changes the values in rules . But after update its not reflecting on my calling code. But workflowAction object has been updated. What could be the problem anything i missed out here. Please help me . rule Referback when $workflow : Workflow(workflowActorId==2) $workflowactor : WorkflowActor( $actoremail :actorEmail ) $workflowaction : WorkflowActions(currentUser==$actoremail actions=='referback', $prevActions : prevActions ) $workflowactor1 : WorkflowActor( actorId== 1 actorSign!=null) then System.out.println(drl2 action finally + $workflowaction.getActions() + $actoremail +$workflowactor1.getActorEmail() + $prevActions + $workflow.getWorkflowActorId() ); $workflow.setWorkflowActorId(1); $workflowactor1.setActorSign(null); $workflowaction.setActions(not need further actions); System.out.println(worklfow id + $workflow.getWorkflowActorId() + $workflowactor1.getActorId() ++ $workflowactor1.getActorSign()); update($workflowactor1); update($workflowaction); update($workflow); end Thanks in advance Regards Information in this e-mail is intended solely for the person(s) to whom it is addressed and may contain confidential information. If you are not the intended recipient, please notify the sender and delete this e-mail message and any other record of it from your system immediately. You should not disclose or disseminate the information to any person, use it for any purpose or store or copy the information in any form or manner. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users