Potential Bug in Guvnor with usage of "from collection" and "Any of the following are true"
by Sean Su
I found that the statement generated from "from collection" is not correct
when it is used in combination with "Any of the following are true"
feature. There is ">" being generated in frond of the statement which is
causing the compilation error.
Here is the code being generated from the guided editor:
java.util.Collection( size >= 1 ) from collect ( ProcedureEvent( elements
contains 4658 ))
( >java.util.Collection( size == 1 ) from collect ( ProcedureEvent(
elements contains 7788 , eval( contiguousDays.createNewWithPaddedTime(1,
DateTimeUnit.DAY).intersectsButNotAdjacent($diagnosticEvent.contiguousDays)
)))
or >java.util.Collection( size >= 2 ) from collect ( DrugEvent(
elements contains 4146 ))
)The code above was from the item 8 and 9 in the attached screen. As shown,
the collection statement is correct when there is no "any of the following
are true" involved.
This seems to be a bug in Guvnor.
Please let me know if this needs to be reported.
Sean
12 years, 3 months
Guvnor error when compiling imported process
by pritispin
guvnor-error.png
<http://drools.46999.n3.nabble.com/file/n4025853/guvnor-error.png>
Hi Guvnor Team,
I am having a process definition in Eclipse and it runs fine. But we want to
use Guvnor as the repository so I imported the process definition from
Eclipse to Guvnor but I get following error when trying the build the
package.
Can someonep lease give me some clues based on the attachement. I have no
logs as it does not write anything to serbver.log
I'm runnnig latest jbpm-full installer 5.5 which starts the jBoss AS 7.0
server. The process definiton has tns:defaultPackage and I also included
some of the jars (business related classes that are used in the script task)
in the drools-guvnor.war->lib and repackage it and restarted the server but
I still keep getting the same error.
I don't know is it not finding the business classes/jars or is this error
related to something else?
How can I see more logs related to guvnor in jBoss.
Thanks,
Priti
--
View this message in context: http://drools.46999.n3.nabble.com/Guvnor-error-when-compiling-imported-pr...
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years, 3 months
What is the defect tracking process for Drools Community Edition
by adarsh.chaini@hsbcib.com
All,
We are using drools as our rule engine in one of our mission critical
application which is distributed in nature .
Recently we have found a very bad memory leak with in the drools that does
not clean the some of the listeners after the execution of the
session(stateless in our case).
This caused our distributed JVM's to grow quite rapidly in and we had to
fix this by manually removing those listener which we never added as users
of the API.
What is the process to track this and find if this is already known and
fixed in a later version.
We are using the following components and dependencies where ${drools.ver}
is <drools.ver>5.3.1.Final</drools.ver>
<dependency>
<groupId>org.drools</groupId>
<artifactId>drools-core</artifactId>
<version>${drools.ver}</version>
</dependency>
<dependency>
<groupId>org.drools</groupId>
<artifactId>drools-compiler</artifactId>
<version>${drools.ver}</version>
</dependency>
<dependency>
<groupId>org.drools</groupId>
<artifactId>drools-spring</artifactId>
<version>${drools.ver}</version>
</dependency>
<!-- -->
<dependency>
<groupId>org.drools</groupId>
<artifactId>drools-decisiontables</
artifactId>
<version>${drools.ver}</version>
</dependency>
Thanks
&
Regards,
Adarsh
************************************************************
HSBC Bank plc may be solicited in the course of its placement efforts for
a new issue, by investment clients of the firm for whom the Bank as a firm
already provides other services. It may equally decide to allocate to its
own proprietary book or with an associate of HSBC Group. This represents a
potential conflict of interest. HSBC Bank plc has internal arrangements
designed to ensure that the firm would give unbiased and full advice to
the corporate finance client about the valuation and pricing of the
offering as well as internal systems, controls and procedures to identify
and manage conflicts of interest.
HSBC Bank plc
Registered Office: 8 Canada Square, London E14 5HQ, United Kingdom
Registered in England - Number 14259
Authorised by the Prudential Regulation Authority and regulated by the
Financial Conduct Authority and the Prudential Regulation Authority
************************************************************
-----------------------------------------
SAVE PAPER - THINK BEFORE YOU PRINT!
This transmission has been issued by a member of the HSBC Group
"HSBC" for the information of the addressee only and should not be
reproduced and/or distributed to any other person. Each page
attached hereto must be read in conjunction with any disclaimer
which forms part of it. Unless otherwise stated, this transmission
is neither an offer nor the solicitation of an offer to sell or
purchase any investment. Its contents are based on information
obtained from sources believed to be reliable but HSBC makes no
representation and accepts no responsibility or liability as to its
completeness or accuracy.
12 years, 3 months
Drools guvnor 5.2 model is not available
by pritha.ghosh@wipro.com
Hi,
Whenever I am setting the dialect as java the following error comes
"[testdrl] Unable to generate rule invoker. CountryPriceModeltest cannot be resolved to a type CountryPriceModeltest cannot be resolved to a type"
I am using guvnor 5.2 with jboss 6.1
Thanks,
Pritha
Please do not print this email unless it is absolutely necessary.
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.
WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
www.wipro.com
12 years, 3 months
Access the return value in Guvnor
by Smurfs
Hi
I am working on the guvnor in jboss.
I have created a rule that use two objects Item and Tracker. It checks if
the quantity in the ItemOrcer is greater than 20, then it sets the status in
the Message object.
KnowledgeBuilder kbuilder1 = KnowledgeBuilderFactory.newKnowledgeBuilder();
kbuilder1.add(ResourceFactory.newClassPathResource("testAdd.drl"),
ResourceType.DRL);
KnowledgeBase kbase1 = kbuilder1.newKnowledgeBase();
StatefulKnowledgeSession ksession1 =
kbase1.newStatefulKnowledgeSession();
Item obj = new Item();
obj.setQuantity(25);
ksession1.insert(obj);
ksession1.fireAllRules();
I am not sure how to access the MEssage object. Can you please help me on
that
--
View this message in context: http://drools.46999.n3.nabble.com/Access-the-return-value-in-Guvnor-tp402...
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years, 3 months
Compatability between Eclipse jBPM5 5.5 Editor and Designer 2.4?
by kawest173713
I had implemented a process in Designer 2.4 (thru Guvnor), using the Workflow
pattern "Arbitrary Cycle" that is provided out of the box with the designer.
Basically just created a new process within Designer, then placed the
Arbitrary Cycle pattern into the process, and saved it - without making any
changes to it. I was able import it into Eclipse (Kepler) and bring it up
from within Eclipse with no issues.
Because the out of the box Arbitrary Cycle pattern had validation errors, I
went back into Designer to fix all the validation errors and modify the
tasks, which included:
- made all the tasks script tasks
- Changed all of the paths out of the XOR gateways to have a "50%"
probability
- added a start and end event
- added a flow out of task E to the end event
- added a flow out of G to the end event
- created a png of the process
I then selected the validate process button, and everything validated fine.
Switching back to Eclipse, I imported the process using the File -> New ->
Resources From Guvnor.
When I then tried to bring the process up in Eclipse, I got the following
popup error:
An exception occurred while reading the Ruleflow XML: this type of node
cannot have more than one incoming connection!
In the Eclipse log for the worspace, it had the following exception:
java.lang.IllegalArgumentException: This type of node cannot have more than
one incoming connection!
at
org.jbpm.workflow.core.node.EndNode.validateAddIncomingConnection(EndNode.java:59)
at
org.jbpm.workflow.core.impl.NodeImpl.addIncomingConnection(NodeImpl.java:100)
at
org.jbpm.workflow.core.impl.ConnectionImpl.connect(ConnectionImpl.java:76)
at
org.jbpm.workflow.core.impl.ConnectionImpl.<init>(ConnectionImpl.java:71)
at
org.jbpm.bpmn2.xml.ProcessHandler.linkConnections(ProcessHandler.java:293)
at org.jbpm.bpmn2.xml.ProcessHandler.end(ProcessHandler.java:145)
at
org.drools.xml.ExtensibleXmlParser.endElement(ExtensibleXmlParser.java:422)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(Unknown
Source)
...
Given this, it seems to me that the designer is creating processes that the
Eclipse editor is unable to parse/render. Is this expected behavior - i.e.
is the designer a superset of the Eclipse editor capabilities?
If so, what capabilities are in Designer that aren't supported in the
Eclipse editor - if such a list exists? I just don't want to spend much time
implementing in the Designer if I never know what will/won't import to
Eclipse.
Thanks,
Keith
--
View this message in context: http://drools.46999.n3.nabble.com/Compatability-between-Eclipse-jBPM5-5-5...
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years, 3 months
DSL statement in Guvnor too long
by Sean Su
Does anyone know if we can force the DSL statement in Guvnor to be
displayed with multiple lines when it is too long to fit into one screen. I
believe the default behavior is that it keeps expanding with the horizontal
scroll bar, instead of wrapping to fit the screen.
Thanks
Sean
12 years, 3 months
Expected Transaction Rollback Behavior of Drools 6
by Alexander Herwix
Hey guys,
I have a question regarding the expected transaction rollback behavior of drools 6 in an JTA-Environment. It looks like I have successfully configured drools within my app, however when I create a KieSession within a Transaction and roll it back, there is still some data persisted to the DB.
e.g. session info (the last record should be rolled back)
ID LAST_MODIFICATION_DATE RULES_BYTE_ARRAY START_DATE OPTLOCK
1 2013-09-05 20:22:48.363 aced000577500a060805100418005246080010001a3c18002000320608011000180042231a190a044d41494e10001801200028ffffffffffffffffff01400022060a044d41494e52090a0744454641554c5422026800 2013-09-05 20:22:47.485 1
2 2013-09-05 20:22:48.624 aced000577500a060805100418005246080010001a3c18002000320608011000180042231a190a044d41494e10001801200028ffffffffffffffffff01400022060a044d41494e52090a0744454641554c5422026800 2013-09-05 20:22:48.615 1
3 2013-09-05 20:24:18.346 aced000577500a060805100418005246080010001a3c18002000320608011000180042231a190a044d41494e10001801200028ffffffffffffffffff01400022060a044d41494e52090a0744454641554c5422026800 2013-09-05 20:24:18.334 1
4 2013-09-05 20:26:31.309 aced000577500a060805100418005246080010001a3c18002000320608011000180042231a190a044d41494e10001801200028ffffffffffffffffff01400022060a044d41494e52090a0744454641554c5422026800 2013-09-05 20:26:31.301 1
5 2013-09-05 20:26:31.347 aced000577500a060805100418005246080010001a3c18002000320608011000180042231a190a044d41494e10001801200028ffffffffffffffffff01400022060a044d41494e52090a0744454641554c5422026800 2013-09-05 20:26:31.337 1
6 null aced0005775e0a060805100418005254080010001a4a18002000320608011000180042231a190a044d41494e10001801200028ffffffffffffffffff01400022060a044d41494e52090a0744454641554c545a0c0a0a0805320608001000180122026800 2013-09-05 20:36:01.164 0
similar for process instances started in those sessions
INSTANCE_ID LAST_MODIFICATION_DATE LAST_READ_DATE PROCESS_ID PROCESS_INSTANCE_BYTE_ARRAY START_DATE STATE OPTLOCK
1 2013-09-05 20:22:48.45 2013-09-05 20:22:47.91 com.sample.ruleflow aced00057a0000015f000852756c65466c6f770a060805100418004ab401080012486f72672e64726f6f6c732e636f72652e6d61727368616c6c696e672e696d706c2e53657269616c697a61626c65506c616365686f6c6465725265736f6c76657253747261746567791a66aced0005737200136a6176612e7574696c2e41727261794c6973747881d21d99c7619d03000149000473697a6578700000000577040000000a7400057465737433740005746573743274000a536f6d65537472696e67740004746573747400057465737434785293010a0852756c65466c6f7710011a13636f6d2e73616d706c652e72756c65666c6f77200128033a0e08021004220608011a0208012801420b0a016610001a0400000000420b0a016d10001a0400000001420b0a017810001a0400000002420b0a017910001a0400000003420b0a017a10001a040000000460006a01316a013572050a0131100172050a0134100172050a01351001 2013-09-05 20:22:47.901 1 1
2 2013-09-05 20:22:48.626 2013-09-05 20:22:48.623 com.sample.ruleflow aced00057a0000015f000852756c65466c6f770a060805100418004ab401080012486f72672e64726f6f6c732e636f72652e6d61727368616c6c696e672e696d706c2e53657269616c697a61626c65506c616365686f6c6465725265736f6c76657253747261746567791a66aced0005737200136a6176612e7574696c2e41727261794c6973747881d21d99c7619d03000149000473697a6578700000000577040000000a7400057465737433740005746573743274000a536f6d65537472696e67740004746573747400057465737434785293010a0852756c65466c6f7710021a13636f6d2e73616d706c652e72756c65666c6f77200128033a0e08021004220608011a0208022801420b0a016610001a0400000000420b0a016d10001a0400000001420b0a017810001a0400000002420b0a017910001a0400000003420b0a017a10001a040000000460006a01316a013572050a0131100172050a0134100172050a01351001 2013-09-05 20:22:48.622 1 1
3 2013-09-05 20:24:18.348 2013-09-05 20:24:18.344 com.sample.ruleflow aced00057a0000015f000852756c65466c6f770a060805100418004ab401080012486f72672e64726f6f6c732e636f72652e6d61727368616c6c696e672e696d706c2e53657269616c697a61626c65506c616365686f6c6465725265736f6c76657253747261746567791a66aced0005737200136a6176612e7574696c2e41727261794c6973747881d21d99c7619d03000149000473697a6578700000000577040000000a7400057465737433740005746573743274000a536f6d65537472696e67740004746573747400057465737434785293010a0852756c65466c6f7710031a13636f6d2e73616d706c652e72756c65666c6f77200128033a0e08021004220608011a0208032801420b0a016610001a0400000000420b0a016d10001a0400000001420b0a017810001a0400000002420b0a017910001a0400000003420b0a017a10001a040000000460006a01316a013572050a0131100172050a0134100172050a01351001 2013-09-05 20:24:18.343 1 1
4 2013-09-05 20:26:31.31 2013-09-05 20:26:31.308 com.sample.ruleflow aced00057a0000015f000852756c65466c6f770a060805100418004ab401080012486f72672e64726f6f6c732e636f72652e6d61727368616c6c696e672e696d706c2e53657269616c697a61626c65506c616365686f6c6465725265736f6c76657253747261746567791a66aced0005737200136a6176612e7574696c2e41727261794c6973747881d21d99c7619d03000149000473697a6578700000000577040000000a7400057465737433740005746573743274000a536f6d65537472696e67740004746573747400057465737434785293010a0852756c65466c6f7710041a13636f6d2e73616d706c652e72756c65666c6f77200128033a0e08021004220608011a0208042801420b0a016610001a0400000000420b0a016d10001a0400000001420b0a017810001a0400000002420b0a017910001a0400000003420b0a017a10001a040000000460006a01316a013572050a0131100172050a0134100172050a01351001 2013-09-05 20:26:31.307 1 1
5 2013-09-05 20:26:31.348 2013-09-05 20:26:31.346 com.sample.ruleflow aced00057a0000015f000852756c65466c6f770a060805100418004ab401080012486f72672e64726f6f6c732e636f72652e6d61727368616c6c696e672e696d706c2e53657269616c697a61626c65506c616365686f6c6465725265736f6c76657253747261746567791a66aced0005737200136a6176612e7574696c2e41727261794c6973747881d21d99c7619d03000149000473697a6578700000000577040000000a7400057465737433740005746573743274000a536f6d65537472696e67740004746573747400057465737434785293010a0852756c65466c6f7710051a13636f6d2e73616d706c652e72756c65666c6f77200128033a0e08021004220608011a0208052801420b0a016610001a0400000000420b0a016d10001a0400000001420b0a017810001a0400000002420b0a017910001a0400000003420b0a017a10001a040000000460006a01316a013572050a0131100172050a0134100172050a01351001 2013-09-05 20:26:31.345 1 1
6 null null com.sample.ruleflow null 2013-09-05 20:36:01.168 0 0
Does anyone know if this the expected behavior of drools or if this might indicate some problems with my configuration? There are no errors thrown.
Thanks for any help in advance :)
Cheers, Alex
12 years, 3 months