[rules-users] Drools Flow Persistence : How can I use Geronimo Transaction Manager Instead of Bitronix Transaction Manager.

2009-11-02 Thread Pardeep . Ruhil
Hi, I have query regarding the Transaction Manager in Drools persistence. I am working on OFBiz project an application in which I have integrated it with Drools. When I try to use the persistence of Drools with OFBiz, there is a transaction conflict between them. Since I want to use OFBiz trans

Re: [rules-users] [Fusion ] - Can we pass time value as a parameter in Temporal operator??

2009-11-02 Thread Chetan Mahadev
Maurico, Any plans in the future releases of Fusion?? Regds Chetan On Tue, Nov 3, 2009 at 12:40 AM, Greg Barton wrote: > You could do this by generating the rule text, but it would no be dynamic. > (i.e. you'd have to regenerate the rule and reload it into the ruleset.) > > --- On Mon, 11/2/09

Re: [rules-users] Agenda Groups basic question

2009-11-02 Thread Rongala, Kanthi
--- > NOTICE: If received in error, please destroy and notify sender. Sender does > not intend to waive confidentiality or privilege. Use of this email is > prohibited when received in error. > > ___ > rules-users mailing list > rules

Re: [rules-users] Drools Flow BAM Module(5.1.0.M1) - Why primary key's are of string/varchar type

2009-11-02 Thread Vijay K Pandey
Thanks for the reply Kris. Before posting to the forum I tested with different name of "id" column such as "primaryid". The name "id" is not a problem as I have already generated the DDL for the tables of WSHT task and all the tables got created fine with "id" as the primary key column with '

[rules-users] import static function with varargs as one of the parameters doesn't work?

2009-11-02 Thread Jane James
Hi guys, I have a question regarding the import function feature in Drools 5.1.0M. I am reading the Drools JBoss Rules 5.0 book Developer's guide by Michal Bali and tried one of the examples but somehow I couldn't get my rules work with the method that has varargs. Here's what I have (

Re: [rules-users] Build package 'default' Guvnor

2009-11-02 Thread Kris Verlaenen
Your process builds fine if it's part of the "defaultPackage" package, but not if it's in the "default" package? That doesn't make sense ;) Is there anything else in the defaultPackage (rules, model files, ...)? Kris Quoting Eugenio Abello : > thanks for your help, > > So this error occurs whe

Re: [rules-users] Best way to get fix from JIRA into local drools install?

2009-11-02 Thread Kris Verlaenen
If the fix has already been added to trunk, simply use the latest snapshot releases, which can be found on Hudson (and are also on the snapshot maven repo): http://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/ Kris Quoting Adam Rinehart : > I have been paying att

Re: [rules-users] Drools Flow BAM Module(5.1.0.M1) - Why primary key's are of string/varchar type

2009-11-02 Thread Kris Verlaenen
Does changing the type of the id field from String to long fix your issue? Because to me it seems that MySQL is not accepting the name "id" as a valid column name? I guess changing the mapping so that it uses a different column name could fix the issue? Kris Quoting Vijay K Pandey : > I am usi

Re: [rules-users] How to execute a Process API result?

2009-11-02 Thread Kris Verlaenen
Scott, A process is also "compiled" before it is executable. To load a process constructed using the API, either: * load it as any other process by transforming it to XML first using the XmlRuleFlowProcessDumper * compile the process before adding it to your rulebase, using ProcessBuilder.bui

Re: [rules-users] Drools flow web console (5.1.M1) deployment in JBoss

2009-11-02 Thread Kris Verlaenen
I just build from trunk usually, but the M1 version should be fine. The error "Could not connect to task client" is probably caused by the fact that you did not set up a task service (you need one if you want to use human tasks)? Check out https://hudson.jboss.org/hudson/job/drools/lastSuccessful

[rules-users] Best way to get fix from JIRA into local drools install?

2009-11-02 Thread Adam Rinehart
I have been paying attention to https://jira.jboss.org/jira/browse/JBRULES-2230 because I am hoping to use decision tables from within a changeset in a project I am developing. Code to fix this issue was checked in on Oct 18th. What is the best way to use this updated code? >From what I've been ab

Re: [rules-users] How to execute a Process API result?

2009-11-02 Thread Scott Stevenson
Here is my attempt at using the Drools 5 API to execute my dynamically created Process: KnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase(); org.drools.rule.Package p = new org.drools.rule.Package("sample"); p.addProcess(createProcess());

Re: [rules-users] Drools flow web console (5.1.M1) deployment in JBoss

2009-11-02 Thread satjo
hi Alok, Here are steps you might want to check. 1.) Make sure you have started a user task. As Kris suggests 'To start a task service locally: the drools-process-task module contains a org.drools.task.RunTaskService class in the src/test/java source folder that can be used to start a task se

Re: [rules-users] How to execute a Process API result?

2009-11-02 Thread Scott Stevenson
Right, I want to use the Fluent API to create dynamic processes. From: rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Mauricio Salatino Sent: Monday, November 02, 2009 2:14 PM To: Rules Users List Subject: Re: [rules-users] How to execute a Process

[rules-users] Drools Flow BAM Module(5.1.0.M1) - Why primary key's are of string/varchar type

2009-11-02 Thread Vijay K Pandey
I am using Drools Flow BAM (5.1.0.M1) module to store the processes instances for audit purpose. I generated the DDL with the help of Hibernate Tools against the MYSQL 5.1(INNODB) DDL for the 2 tables are given below -- the interesting part is the "id" column as "varchar" this gives error

Re: [rules-users] How to execute a Process API result?

2009-11-02 Thread Mauricio Salatino
That are only the fluent api to create processes. I recommend you the other approach: KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder(); kbuilder.add( ResourceFactory.newClassPathResource("MyProcess.rf"), ResourceType.DRF ); KnowledgeBuilderErrors errors = kbu

Re: [rules-users] How to execute a Process API result?

2009-11-02 Thread Scott Stevenson
I read that section but I'm still not clear how to add my process (created like the section just before) to the KnowledgeBase. Section 3.2 shows adding an existing .rf file. I have this code: RuleFlowProcessFactory factory = RuleFlowProcessFactory.createProcess("org.drools.sample.workflow.dyna

Re: [rules-users] How to execute a Process API result?

2009-11-02 Thread Mauricio Salatino
Ok, so you need to start using the Drools 5 APIs. Please take a look at the Drools 5 documentation: http://downloads.jboss.com/drools/docs/5.0.1.26597.FINAL/drools-flow/html_single/index.html#d0e1375 In the section 3.2 Using a Process in Your Application you will find the correct api's. Greetings.

Re: [rules-users] How to execute a Process API result?

2009-11-02 Thread Scott Stevenson
I'm working with Drools 5. From: rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Mauricio Salatino Sent: Monday, November 02, 2009 1:45 PM To: Rules Users List Subject: Re: [rules-users] How to execute a Process API result? Are you working just

Re: [rules-users] How to execute a Process API result?

2009-11-02 Thread Mauricio Salatino
Are you working just with the Drools 4 version? Or you can jump to the Drools 5 version? On Mon, Nov 2, 2009 at 5:41 PM, Scott Stevenson < scott.steven...@datacert.com> wrote: > I'm trying to execute the result of the Process API and running into > problems most likely stemming from my ignorance.

[rules-users] How to execute a Process API result?

2009-11-02 Thread Scott Stevenson
I'm trying to execute the result of the Process API and running into problems most likely stemming from my ignorance. I'm creating a new process following the sample code from section 3.1.3.2 of the User Guide. My sample process consists of: 1. StartNode 2. ActionNode that prints Hello World 3. End

Re: [rules-users] [Fusion ] - Can we pass time value as a parameter in Temporal operator??

2009-11-02 Thread Greg Barton
You could do this by generating the rule text, but it would no be dynamic. (i.e. you'd have to regenerate the rule and reload it into the ruleset.) --- On Mon, 11/2/09, Mauricio Salatino wrote: > From: Mauricio Salatino > Subject: Re: [rules-users] [Fusion ] - Can we pass time value as a param

Re: [rules-users] Drools flow web console (5.1.M1) deployment in JBoss

2009-11-02 Thread Alok Patnaik
Hi Satish/Krisv, I’m new to Drools. I’m stuck on the same issue. Although I did every step you have mentioned. My jboss still starts with error. I’ve downloaded gwt-console-server from http://repository.jboss.com/maven2/org/drools/gwt-console-server-drools/5.1.0.M1/ Please let me know from wh

Re: [rules-users] [Fusion ] - Can we pass time value as a parameter in Temporal operator??

2009-11-02 Thread Mauricio Salatino
no, right now that is not possible. 2009/11/2 Chetan Mahadev > > Hi, > > Is it possible to pass the time value as a "parameter" in temporal > operator?? > In the below example, I would like to pass $time as a variable, any > integer value/String value representing time. ( ex: $time = 10s) > >

[rules-users] [Fusion ] - Can we pass time value as a parameter in Temporal operator??

2009-11-02 Thread Chetan Mahadev
Hi, Is it possible to pass the time value as a "parameter" in temporal operator?? In the below example, I would like to pass $time as a variable, any integer value/String value representing time. ( ex: $time = 10s) Ex; $eventA : EventA( this after[ $time s ] $eventB ) __

Re: [rules-users] [Droolsflow] Pagination of getTasksAssignedAsPotentialOwner (Mauricio Salatino)

2009-11-02 Thread Anderson vasconcelos
Ok. Let's do this. I'm in traveling. when i come back to work, i get started with this implementation I 'm honored and grateful to contribute with Drools Thanks 2009/10/30 Mauricio Salatino > Yes, I can assist you Anderson. Let me know how you prefer to do it. > Greetings > > On Fri, Oct 30, 2

Re: [rules-users] Rookie question: best place to locate KnowledgeBase in web application?

2009-11-02 Thread Greg Barton
I believe acquiring a StatelessKnowledgeSession is thread safe as well. Many members of the drools dev team are traveling at the moment, hence the slow response. --- On Mon, 11/2/09, ljnelson wrote: > From: ljnelson > Subject: Re: [rules-users] Rookie question: best place to locate > Knowled

Re: [rules-users] Agenda Groups basic question

2009-11-02 Thread Costigliola Joel (EXT)
Hello, Maybe a typo mistake but both of your rules have the same agenda group (Phase1) Regards, Joel De : rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.org] De la part de Rongala, Kanthi Envoyé : lundi 2 novembre 2009 15:54 À : rule

Re: [rules-users] Agenda Groups basic question

2009-11-02 Thread Edson Tirelli
You need to set the focus for an agenda group to execute. []s Edson 2009/11/2 Rongala, Kanthi > Hi, > > > > I am new to Drools and trying my hands out at Drools 5. I cann’t figure out > how to use agenda- groups. I have a small drl file with two agenda groups > and one rule per agenda

Re: [rules-users] Rookie question: best place to locate KnowledgeBase in web application?

2009-11-02 Thread Steve Ronderos
Hi Laird, In our web application we create one KnowledgeAgent and each session calls getKnowledgeBase to get the KnowledgeBase and then getStatelessSession to get a session. We have not had any threading issues. I'm pretty sure that each of those operations are thread-safe. Hope this helps,

Re: [rules-users] Rookie question: best place to locate KnowledgeBase in web application?

2009-11-02 Thread ljnelson
ljnelson wrote: > > My question is: where is the best place to put the various parts, and what > sort of synchronization do I need to worry about? I did not see any > reference to these issues in the (massive, otherwise excellent) Drools > documentation. > Well, OK, that generated a lot of tr

[rules-users] Agenda Groups basic question

2009-11-02 Thread Rongala, Kanthi
Hi, I am new to Drools and trying my hands out at Drools 5. I cann't figure out how to use agenda- groups. I have a small drl file with two agenda groups and one rule per agenda-group. This doesn't seem to work. However if I happen to comment out the agenda-group attribute, the results are as e

[rules-users] uploading DSL/DSLR to guvnor

2009-11-02 Thread dbrownell83
Hi all, is there a way to upload a DSL and DSLR in Guvnor? I see you can enter DSL values, so copy-pasting is an option... but then what about the DSLR? Thanks Daniel -- View this message in context: http://old.nabble.com/uploading-DSL-DSLR-to-guvnor-tp26156904p26156904.html Sent from the d