Re: [rules-users] Drools: Compound Value Restriction in Decision Table

2011-02-04 Thread David Smith
Hi, I managed to get something working for Compound Value Restrictions using in using my own code, but I'd still rather not do it in code so that it is easier for the business to write. I added a function:     function boolean isIn(String value, String values) {         System.out.println("value:"

[rules-users] Drools: Compound Value Restriction in Decision Table

2011-02-04 Thread David Smith
Hi, I am pocing/learning drools and I am trying to implements Compound Value Restrictions using 'In' in a decision table. I can do this in a rule like rule "CoverType Example" when $risk : Data( coverType in ("A","B", "C", "D")) then result.add("CoverType was one of A, B C or D"); end I

[rules-users] Drools: Using Declared Types in Decision Tables

2011-02-04 Thread David Smith
Hi, I am trying to use a declared type in a decision table but get an "Unable to resolve ObjectType" message. The declared type is in a file types.drl, I have a spreadsheet test.xls that has a Ruleset with an import line for the declared type. Is it possible to reference a declared type from a d

Re: [rules-users] timer and duration

2011-02-04 Thread Mauricio Salatino
are you updating or modifying any LoopDetectorEvent() event? Greetings. What did you see in the logger output? On Fri, Feb 4, 2011 at 1:15 PM, OlliSee wrote: > > Hello folks. > > Got a new characteristic unveiled,... > > if I have a rule like this (with Fusion in STREAM mode)... > (Sensor is a f

Re: [rules-users] timer and duration

2011-02-04 Thread OlliSee
Hello folks. Got a new characteristic unveiled,... if I have a rule like this (with Fusion in STREAM mode)... (Sensor is a fact) rule "Test" timer(int: 7s 7s) when $sensor : Sensor() Number($avg : doubleValue > 0.0) from accumulate

Re: [rules-users] Find facts in partially matching LHS

2011-02-04 Thread Wolfgang Laun
I'd tackle this with a set of rules according to: First, a rule that collects everything a customer has bought. Then, low-priority rules matching defined Status sets with accumulated sets; this checks whether a customer has reached a certain status. Other rules detect customer sets that are subse

Re: [rules-users] drools flow - how to crate a human task form?

2011-02-04 Thread gs76pl
i'm only interested in a task rendering framework. i've been looking into gwt-console but: 1. it looks very very basic 2. i've not been able to get an access to any task so far 3. i'm not sure where i could find some sample screen definitions -- View this message in context: http://drools-java-r

[rules-users] Find facts in partially matching LHS

2011-02-04 Thread David Jacobsson
Hi, I'm currently working with a system where we have customers with different status flags. This could look something like: customer has bought a car and a bicycle -> "wheel" status customer has bought a tent, a jacket and food -> "camper" status Since these rules can be quite complex and chan

Re: [rules-users] drools flow - how to crate a human task form?

2011-02-04 Thread Mauricio Salatino
Do you want a framework that provides render the User Interfaces? Most of them provide the render automatically, but you need to code your screens. Do you want a framework that generates the User Tasks automatically? On Fri, Feb 4, 2011 at 11:24 AM, gs76pl wrote: > > Sorry but what i meant is so

Re: [rules-users] drools flow - how to crate a human task form?

2011-02-04 Thread gs76pl
Sorry but what i meant is some existing framework that would provide me with a rendering functionality out of the box (as you said some web/swing application) -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/drools-flow-how-to-crate-a-human-task-form-tp2424123

Re: [rules-users] drools flow - how to crate a human task form?

2011-02-04 Thread Mauricio Salatino
You can use Swing for desktop application or any web framework for Web Applications. You can also expose everything as a service and create UIs using a different language for example .NET or Flex. On Fri, Feb 4, 2011 at 11:03 AM, gs76pl wrote: > > can you give me any example of such UI technolo

Re: [rules-users] drools flow - how to crate a human task form?

2011-02-04 Thread gs76pl
can you give me any example of such UI technology? -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/drools-flow-how-to-crate-a-human-task-form-tp2424123p2424374.html Sent from the Drools - User mailing list archive at Nabble.com. __

Re: [rules-users] drools flow - how to crate a human task form?

2011-02-04 Thread Mauricio Salatino
Hi there, you can find an example that Esteban and I created using the Human Task APIs inside a Swing UI for a stand alone app. Take a look at the code here: https://github.com/Salaboy/emergency-service-drools-app/ The UI code it's pretty messy right now, we are working to refactor it to clean it u

Re: [rules-users] drools flow - how to crate a human task form?

2011-02-04 Thread Esteban Aliverti
The Human Task API gives you all the things you need to create your custom UI. It doesn't provide any way to create it though. You can choose the best technology/framework for you UI and then use the APIs to retrieve, complete, etc. your tasks. Best Regards, XX

[rules-users] drools flow - how to crate a human task form?

2011-02-04 Thread gs76pl
hi, What is the best way of creating some UI for human tasks with an input form? I've a sample process with a human task that should update some values in the process. I had a look into API of a task and the only thing i can find there is 'content' which i'm not really sure about (is it the plac

Re: [rules-users] Drools Server 5.1.1 - can't run test.jsp

2011-02-04 Thread OlliSee
Thank you. I found the main problem, though. In the camel-client.xml, the route points to cxfrs://http://localhost:8080/drools-server-app/kservice/rest but cxfrs://http://localhost:8080/drools-5.1.1-server/kservice/rest is right. Then it works, if I also apply your little hint. Thanks. Now anot