[rules-users] Drools flow and BPEL (Drools 5.1)

2010-09-14 Thread tim
Hello, I am studying how to integrate Drools 5.1 into our product. And we will need a BPEL engine embedded in Drools. I read from the "Drools Flow User Guide" that "the Drools Flow engine is based on a generic process engine that allows the definition and execution of different types of process la

Re: [rules-users] Drools reflection problem.

2010-09-14 Thread tom ska
Hi, I have never been doing this (opening a JIRA), but I will try in next 2, meaby 3 days - when I would have some extra time for it :) Thanks, tom. 2010/9/15 Edson Tirelli > That is odd Tom. Can you please open a JIRA for it and attach a > test case to reproduce the problem plz? I will look

Re: [rules-users] [rules-dev] Technical Rules

2010-09-14 Thread Wolfgang Laun
2010/9/14 Mark Proctor > > Exactly, we don't want to mature and promote a proprietary XML and waste > the time and create the confusion from not following a standard. > > Any XML standard for rules and especially production system rules is way behind what systems like Drools, Jess and others are

Re: [rules-users] EntityManager is closed

2010-09-14 Thread Eugenio Abello
I have the same problem with drools 5.2 Using JPA with tomcat on bitronix. I temporarily resolved with: env.set (EnvironmentName.CMD_SCOPED_ENTITY_MANAGER, emf.createEntityManager ()); Every time I use the session. ___ rules-users mailing list rules-users

Re: [rules-users] Drools reflection problem.

2010-09-14 Thread Edson Tirelli
That is odd Tom. Can you please open a JIRA for it and attach a test case to reproduce the problem plz? I will look into it when I get a chance. Edson 2010/9/14 tom ska : > Hi, > in my package definition I have two kinds of facts. I use stateFullSession > and I send to ksession facts of two

[rules-users] Guvnor Asset versioning vs Package snapshot versioning

2010-09-14 Thread Abdel Dridi
I am using Guvnor packaging and snapshot creation. I have three environment DEV, UAT and Production, I configured each environment with a package snapshot to listen to, each time the package change, I build it then overwrite the snapshot for that particular environment. This was working great for m

Re: [rules-users] [rules-dev] Technical Rules

2010-09-14 Thread Mark Proctor
On 14/09/2010 21:17, Leonardo Gomes wrote: The thing is that, afaik, the DrlParser in itself doesn't give you something that you can use to generate the BRL XML, even for a well-behaved DRL. You would have to do some sort of model-to-model transformation that would have RuleModel as an outcome

Re: [rules-users] [rules-dev] Technical Rules

2010-09-14 Thread Leonardo Gomes
The thing is that, afaik, the DrlParser in itself doesn't give you something that you can use to generate the BRL XML, even for a well-behaved DRL. You would have to do some sort of model-to-model transformation that would have RuleModel as an outcome. With the RuleModel at hand you can easily mars

[rules-users] EntityManager is closed

2010-09-14 Thread drooRam
Hi I am using the statefulknowledgesession with jpa persistence with spring...exactly configured as per in the section : Example 2.5. JPA configuration for StatefulKnowledgeSessions http://downloads.jboss.com/drools/docs/5.1.1.34858.FINAL/drools-introduction/html_single/index.html#d0e47 I am u

Re: [rules-users] Performance differeneces using "before" or "after"

2010-09-14 Thread Tina Vießmann
Thank you, Edson. I've thought about it. There are some inconsistencies in the application integrating my application. Therefore using sliding windows is kind of problematic. There for I'm using the events timestamps as a compromise ... I know, its very critizisable, but I can't change it. Th

Re: [rules-users] Performance differeneces using "before" or "after"

2010-09-14 Thread Edson Tirelli
For a pair of events, the performance will be the same with before/after. If you have more than 2, though, best would be to use sliding windows. Edson 2010/9/14 Tina Vießmann : > Hi, > > I've mentioned the test case I'm working on before. It's: If a certain value > exceeds a limit more than

[rules-users] Guvnor war 5.1

2010-09-14 Thread d.mridul
We are currently using drools guvnor 5.0.1 deplyed in Weblogic 10.3. We needed to multithread the call to the rule engine. We were facing the issue of Concurrent modification as described in https://jira.jboss.org/browse/JBRULES-1888. It seemed to have been fixed and we tried upgrading it to 5.1.

[rules-users] Guvnor declarative model and ASM deserialization

2010-09-14 Thread Abdel Dridi
In my application I am using the following flow: 1. I am using Guvnor to allow customer to define business event structure through the "Declarative Model" feature. 2. After defining the model, customers write rules and package them into a snapshot where my event-driven-application-serv

[rules-users] How to remove a persisted session from the database ?

2010-09-14 Thread Gustavo Tenrreiro
Hi, I am using persistence, and since the sessions don't seem to have a standard way of getting removed from the database when they are not needed anymore, I am wondering how to do that. I am using JPA but if I call : em.remove(someSessionInfo); where em is the JPA EntityManager, that does not r

[rules-users] Performance differeneces using "before" or "after"

2010-09-14 Thread Tina Vießmann
Hi, I've mentioned the test case I'm working on before. It's: If a certain value exceeds a limit more than X times within Y minutes/hours, do something. ~> Count = X , time = Y During a talk with other developers it came up that by intuition the men would have chosen a other approach th

[rules-users] Drools Eclipse IDE Update Site 3.5

2010-09-14 Thread Brian Trezise
I'm not sure why, but when I try to get eclipse to download the eclipse IDE from the drools update site as listed on the webpage, Eclipse isn't seeing anything there. If i go to the link in Chrome I get an error stating that the browser couldn't display the page; firefox shows a list of thre

[rules-users] Drools reflection problem.

2010-09-14 Thread tom ska
Hi, in my package definition I have two kinds of facts. I use stateFullSession and I send to ksession facts of two different types. For each type I have one rule using only this type. So what I am doing is processing two different fact's types in one session. I start fireAllRules, and I know it fir

Re: [rules-users] Problem with DroolsFlow transaction

2010-09-14 Thread HMandic
Anyone? I found out that JBoss AS doesn't know which TransactionManager to use here. I have: Environment env = KnowledgeBaseFactory.newEnvironment(); env.set(EnvironmentName.ENTITY_MANAGER_FACTORY, myEmFactory); env.set(EnvironmentName.TRANSACTION_MANAGER, ); session = JPAKnowledgeService.ne

Re: [rules-users] Drools 5.1.1 KnowledgeAgent and SecurityRules

2010-09-14 Thread Robert Morse
This is good to know. I was just in the middle of converting to 5.1.1 but will not stop. By the way the 5.1.1 version of Guvnor appears to be unstable under JBoss 5.1. Verify operations just hang. Error messages (with no message) get displayed, Inability to sign out, etc. Back to 5.0.1. O

Re: [rules-users] [rules-dev] Technical Rules

2010-09-14 Thread Wolfgang Laun
You are right, of course. The BRL editor has its own XML format. I just wonder whether going through a DrlParser - DrlDumper cycle might produce a sufficiently "well-behaved" DRL text that could be easily enough transformed to the BRL XML. But nothing of this is in the "stable" API, so it would b

Re: [rules-users] Verify if an objects attribute exists

2010-09-14 Thread Mark Proctor
Pattern( field != null, eval( someFunc( field ) ) ) Mark On 14/09/2010 05:18, lnguyen wrote: > Sorry here is some additional details...I hope I'm not making this sound more > complicated than it really is but I am attempting to restrict access to view > an account based on the logged in user. >

[rules-users] User Permissions - at rules/DSL level possible?

2010-09-14 Thread Vignesh
Hi, I am aware that we can provide user permissions at Package/Category level and restrict the users, but i want to know whether its possible to restrict the users by providing permissions at rules/DSL level, because we dont want the user to modify the DSL which would be defined by the Admin and

Re: [rules-users] [rules-dev] Technical Rules

2010-09-14 Thread Leonardo Gomes
I might be wrong, but I think DRL -> BRL is still not possible. Just had a look at org.drools.ide.common.server.util.BRDRLPersistence, and we have the following: public RuleModel unmarshal(String str) { > throw new UnsupportedOperationException( > "Still not possible