[rules-users] How to access loggued username in a class

2010-04-26 Thread fmetral
Hi all, I face a very blocking problem and I require help to solve it quickly. Is it possible to access the loggued username in a class. I mean, I have created a class that connect to an other application (EAR) to get values from enumerations. But in this class, the retrieve the data, I need to

[rules-users] Strange ArrayIndexOutOfBoundsException with decision tables

2010-04-26 Thread murphy
Hello, some days ago I implemented rules with a dicision table (5.0.1) and everything works fine. But suddenly I ran into a strange ArrayIndexOutOfBoundsException. I thought my decision table is the problem and so I tried to test with some simple tables but I still get the same error. Here is th

[rules-users] Drools Flow: weird behaviour

2010-04-26 Thread HMandic
My understanding of Drools Flow was that when you start a process it gets up to its first Human task and stops there until you complete it and then the process continues. Apparently I've got it wrong... So I have this workflow (process - let's call it MainFlow) that consists of a Human task and a

Re: [rules-users] drools-guvnor 5.1.0-M1 not available on Maven2

2010-04-26 Thread fmetral
Hi Toni, Just to remember you If you can deploy Guvnor on M2 repository, it will be very helpfull. Thanks in advance -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/drools-guvnor-5-1-0-M1-not-available-on-Maven2-tp743054p756171.html Sent from the Drools - U

[rules-users] Guvnor: RESTful way to find when the last snapshot was deployed

2010-04-26 Thread Premkumar Stephen
Hello folks, Currently, this timestamp information is available on the html page ( http://foo.com:8081/drools-guvnor/org.drools.guvnor.Guvnor/Guvnor.html), but I am wondering if this could be available in some format like http://foo.com:8081/drools-guvnor/org.drools.guvnor.Guvnor/package/RulesP3/L

[rules-users] Can I use not and from in same condition?

2010-04-26 Thread Ryan Fitzgerald
Hi, I get an error with the following rule that appears only when I use the not keyword. If I remove the not keyword, it seems ok: rule "WCDMA->GSM Bidirectional Relations Evaluation Rule - Version 4" salience 10 dialect "java" when $extgsmcell : ExternalGsmCell()

Re: [rules-users] ClassCastException during inserting knowledge package

2010-04-26 Thread Piotr Jedrychowski
I can't prepare it right now because I have a lot of other work. When I will have little bit time I will prepare test case for you. Piotr On 2010-04-22 19:13, Edson Tirelli wrote: Can you provide an isolated test case to reproduce this problem? If so, please create a JIRA, attach you

Re: [rules-users] Can I use not and from in same condition?

2010-04-26 Thread Wolfgang Laun
At first glance, I'd use parens after not and at the end: not ( GsmCell( lac==$extgsmcell.lac, cellid==$extgsmcell.cellid) from $extutrancell.getIncomingGsmCells($extutrancell.fdn) ) -W 2010/4/26 Ryan Fitzgerald : > Hi, > > I get an error with the following rule that appears only when I us

Re: [rules-users] Error deploy Guvnor - DEPLOYMENTS MISSING DEPENDENCIES

2010-04-26 Thread andre . fonseca
Thanks Jervis, I will check the link and post back. André -Original Message- From: Jervisliu To: Rules Users List Sent: Mon, Apr 26, 2010 2:33 am Subject: Re: [rules-users] Error deploy Guvnor - DEPLOYMENTS MISSING DEPENDENCIES Hi, please refer to this doc on how to depl

Re: [rules-users] Drools Flow: weird behaviour

2010-04-26 Thread Salaboy
Can you share your process diagram with us? Did you register your human task work item handler? - Ing. Mauricio Salatino - On Apr 26, 2010, at 5:34, HMandic wrote: > > My understanding of Drools Flow was that when you start a process it > gets up > to its first Human task and stops there un

Re: [rules-users] How to access process variables within a work-item (human task)

2010-04-26 Thread Salaboy
Did you register the equipement variable at process level? Mapping uses that definitions to know about the variables used across the processes. Greetings - Ing. Mauricio Salatino - On Apr 26, 2010, at 1:56, Robert wrote: > Hi, > > I have > > ... > StatefulKnowledgeSession > ksession.get

Re: [rules-users] Can I use not and from in same condition?

2010-04-26 Thread Ryan Fitzgerald
That worked - thanks! -Original Message- From: rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Wolfgang Laun Sent: 26 April 2010 12:53 To: Rules Users List Subject: Re: [rules-users] Can I use not and from in same condition? At first glan

Re: [rules-users] How to access process variables within a work-item (human task)

2010-04-26 Thread Robert
Hi, I don't understand what you mean ? I thought with ksession.startProcess(processName, processVariables); they are registered. Am 26.04.2010, 15:28 Uhr, schrieb Salaboy : > Did you register the equipement variable at process level? Mapping > uses that definitions to know about the variables

Re: [rules-users] How to access process variables within a work-item (human task)

2010-04-26 Thread Vijay K Pandey
That will not register the process variables - its there to pass the variables data. You can click on the process diagram in eclipse - go to properties "view" - and look for the "Variables" property. It's here that you have to register your process variables. Vijay -Original Message- F

Re: [rules-users] How to access process variables within a work-item (human task)

2010-04-26 Thread Mauricio Salatino
in the process designer select the background and you will see in the properties panel all the global process configurations. There you will find variables, you need to register it all the variables that you will insert with its types. greetings On Mon, Apr 26, 2010 at 8:56 AM, Robert wrote: > H

Re: [rules-users] Error deploy Guvnor - DEPLOYMENTS MISSING DEPENDENCIES

2010-04-26 Thread andre . fonseca
Jervis, - downloaded Drools Guvnor 5.0 - removed el-*jars - added support for JSF in the app (for deploy in Tomcat 6.0) - jsf-api, jsf-impl The deploy in Tomcat 6.0 has been successfully. Many Thanks! -Original Message- From: andre.fons...@mail.com To: rules-users@lists.jb

Re: [rules-users] Multithreading work items

2010-04-26 Thread rudolf michael
Alan, couldn't you have achieved this using a Split and Join? 2010/4/26 > > Interesting. What you've described Pedro is similar to what I'm trying to > achieve, and also relates to some earlier posts I made to the list (title: > 'Drools Flow: Problem with constraint in (Wait) State node'). > > I

Re: [rules-users] Drools Flow: weird behaviour

2010-04-26 Thread HMandic
OK, *.rf files are in the attachment zip. This is how I register human task: WSHumanTaskHandler th = new WSHumanTaskHandler(); KnowledgeBase kbase = readKnowledgeBase(); StatefulKnowledgeSession ksession = kbase.newStatefulKnowledgeSession(); WorkItemManager wim =

Re: [rules-users] Multithreading work items

2010-04-26 Thread Alan . Gairey
Thanks for the quick response. Unfortunately I have an arbitrary number of sub flows, so I don't think I can use a Split and Join. Using the term "sub flow" might be a bit misleading; what I really have is a work item that can launch an arbitrary number of independent processes, each with their

Re: [rules-users] Multithreading work items

2010-04-26 Thread Pedro Maria Buitrago Mantilla
The problem is the multithreading execution. For a "SPLIT NODE" of type "AND", first, is process one branch, after, the next branch and so on for each. The execution is sequential. PEDRO MARIA BUITRAGO MANTILLA Bogotá, Colombia 2010/4/26 rudolf michael > Alan, couldn't you have achieved this

[rules-users] How to make this rule more memory efficient?

2010-04-26 Thread Ryan Fitzgerald
Hi, Can anyone advise me on how to make a drools rule more memory efficient? Here is the problem: I have a Cell and a ProxyCell object classes. The ProxyCell represents the Cell when their internal ID's match. Each Cell and ProxyCell however has a unique name (not same as ID). A Cell can refe

Re: [rules-users] Multithreading work items

2010-04-26 Thread Esteban Aliverti
Using Split and Join would not execute the branches in different threads. 2010/4/26 rudolf michael > Alan, couldn't you have achieved this using a Split and Join? > > 2010/4/26 > > >> Interesting. What you've described Pedro is similar to what I'm trying to >> achieve, and also relates to some

Re: [rules-users] Multiple timers in a single ruleflow

2010-04-26 Thread nanic23
Anyone??? Nobody ever needed more than one timer in single flow??? -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Multiple-timers-in-a-single-ruleflow-tp744541p756815.html Sent from the Drools - User mailing list archive at Nabble.com. __

Re: [rules-users] Multithreading work items

2010-04-26 Thread Mauricio Salatino
it's not a problem really.. 2010/4/26 Pedro Maria Buitrago Mantilla > > The problem is the multithreading execution. For a "SPLIT NODE" of type > "AND", first, is process one branch, after, the next branch and so on for > each. The execution is sequential. > > PEDRO MARIA BUITRAGO MANTILLA > Bog

Re: [rules-users] How to make this rule more memory efficient?

2010-04-26 Thread Swindells, Thomas
You should probably restrict it so that $cell2 : Cell(this != $cell1) Thomas From: rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Ryan Fitzgerald Sent: 26 April 2010 15:34 To: rules-users@lists.jboss.org Subject: [rules-users] How to make this rule

Re: [rules-users] Multiple timers in a single ruleflow

2010-04-26 Thread Esteban Aliverti
Are you using RuleFlow syntax or BPMN2? In RuleFLow I was able to setup two different timers to a work item and even different timers to different work items. What kind of timers are you talking about? Another thing: I didn't use ksession.fireAllRules() but ksession.fireUntilHalt() in a different

Re: [rules-users] How to access process variables within a work-item (human task)

2010-04-26 Thread Robert
Hi, thanks for the help, I got it somehow to work. But its a little odd, since the doc says: "You may specify additional parameters that are used to pass on input data to the process, using the startProcess(String processId, Map parameters) method, which takes an additional set of parameters

Re: [rules-users] drools-guvnor 5.1.0-M1 not available on Maven2

2010-04-26 Thread Andrew Waterman
I agree. It's strange that all the other versions are available; but 5.1.0.M1 isn't being deployed. I'd like to include 5.1.0 in my EAR file for deployment. Another question: that kind of configuration is supported, right? best wishes, Andrew On Apr 26, 2010, at 4:35 AM, fmetral wrote: >

[rules-users] Rule using accumulate

2010-04-26 Thread Andrés Corvetto
Hi guys, I'm new to drools, and i'm trying to build a small prototype. I have 2 entities in my model: Offers and Bids. Both have a size (and a price). I need a rule that matches a single Bid with multiple Offers adding up in size to the Bid size. Matched Offers have to be sorted by (increasing) in

[rules-users] Guvnor - Persist data in MySQL

2010-04-26 Thread andre . fonseca
Hi all, I am trying to configure Guvnor to persist data in MySQL, I am running mysql 5.1-45 (windows 7) under Tomcat 6 The steps that I did: 1) Create empty database "drools" in Mysql 2) Configure Tomcat data source 3) Edit generated repository.xml

Re: [rules-users] How to make this rule more memory efficient?

2010-04-26 Thread Wolfgang Laun
The general idea of the inverted approach shown below is to keep the fan-out in the Rete network as small as possible. Note the id > $proxy1.id, which reduces the ProxyCells that are considered. Also, the lookup of the the name if $proxy2 in the references of $cell1 should keep things bounded. - I

Re: [rules-users] Guvnor - Persist data in MySQL

2010-04-26 Thread andre . fonseca
Hi, I have changed the repository.xml to NOT use JNDI and its working now.

Re: [rules-users] Rule using accumulate

2010-04-26 Thread Wolfgang Laun
I'm not going to propose a complete solution, merely the outline of a different approach. It would introduce a "PartiallyCoveredBid", which is a Bid with one or more Offers associated with the original Bid. It extends a Bid with a Collection of associated Offers (so far) and the accumulated size a

Re: [rules-users] Rule using accumulate

2010-04-26 Thread Andres Corvetto
Thank you for your reply! I understand your approach, and I think it could work if Offers were inserted into the working memory after the Bid. However, to implement your approach for already inserted Offers I think I would need some way of forcing the matching Offer to be the oldest in memory, is

[rules-users] how to move a repository from derby database to Oracle Database

2010-04-26 Thread vadlam
we have some rules developed under the default setup in Drools Guvnor. Those are stored to the default derby database . we would like to move repository to Oracle database. How do we do that? I have configured the Oracle database settings using th persistence manager in place of derby. when I

Re: [rules-users] Rule using accumulate

2010-04-26 Thread Wolfgang Laun
If the age of Offers is so important it ought to be represented as fact data. If it cannot be added to the Offer itself, a proxy fact could be created, combining a counter with an Offer reference. A high salience rule for an Offer without OfferProxy would create this. -W On Mon, Apr 26, 2010 at 9