[rules-users] Dependency Enumeration List in Drools

2011-12-11 Thread srinivasasanda
The concept was.. I have one Model with fact named *Person*---with *country,state* as fields.. I need to create enumeration for country and state which should be load dynamically. Here is my enumeration code 'Person.country' : (new com.sample.DataList()).getMycountriesList() Now,Its working fi

Re: [rules-users] Fact Names in a Model

2011-12-11 Thread srinivasasanda
Thanks Esteban, Its working fine.Can I enhance this code by adding one more field to *Man(name,age)*.. It means i need to add field *state* to *Model* man from this Java code.How can i achieve this..can you please suggest me with the code.Really thanks for ur suggestions till far.Please help

[rules-users] Fact Names in a Model

2011-12-11 Thread srinivasasanda
Thanq Esteban..I combined my code and ur suggestions.Its worked fine..I've doubt in Enumeration list.Could you please suggest me -- View this message in context: http://drools.46999.n3.nabble.com/Fact-Names-in-a-Model-tp3572234p3578842.html Sent from the Drools: User forum mailing list archive at

Re: [rules-users] How to install and configure the oryx designer in Drools-guvnor ?

2011-12-11 Thread Manohar Kokkula
I followed steps simple steps from : http://blog.athico.com/2010/09/bpmn2-authoring-in-drools-guvnor.html  and also I am writing those steps below. How to use the designer: a) Download the designer.war from here and unzip it into $jboss_home/server/$config/deploy directory. b) Start up your serv

Re: [rules-users] Can I put java code in dslr file?

2011-12-11 Thread Wolfgang Laun
DSL has been designed to cover LHS and RHS. You have two (or, perhaps, three) options: 1) Define a simple DSL for the RHS, too. It could be as simple as [then][] print {what}=System.out.println( {what} ); 2) Prefix Java code lines with '>' - the expander will simply keep the rest. If you can

Re: [rules-users] Inserting Facts from Json Format

2011-12-11 Thread Mark Proctor
See BatchExecutionHelper: http://docs.jboss.org/drools/release/5.3.0.Final/droolsjbpm-integration-docs/html_single/index.html#d0e830 public class BatchExecutionHelper { public static XStream newJSonMarshaller() { Use out camel integration to work with JSON, as it hides a lot of the complexit

[rules-users] Can I put java code in dslr file?

2011-12-11 Thread Zhao Yi
I want to convert my drl to dsl and dslr. I found that if I choose using dsl, I couldn't write java code in rules any more. I must translate everything in dsl file. Can I combine dsl and drl in dslr file, like below rule. when I am using dsl, I will get an error: "[10] Unable to expand: System.out

Re: [rules-users] Inserting Facts from Json Format

2011-12-11 Thread Olle Martensson
1) Expose global object to drools with methods that can serialize and deserialize JSON. Maybe you could use http://jackson.codehaus.org/. 2) Insert a "wrapper object" into knowledge space that contains a reference to JSON object as text, stream or whatever. 3) Use (1) to deserialize the JSON data

Re: [rules-users] Managing memory

2011-12-11 Thread Wolfgang Laun
I can't imagine a questionnaire with more than 100 questions - at least I'd baulk and probably drop out if there were more ;-). So, let's settle for 100. Then, if there are 100 or 1000 concurrent users, I don't see any problem with storing 1 or 10 answers, and the rete nodes for the kind of

[rules-users] Managing memory

2011-12-11 Thread Laird Nelson
Hello; this is probably a pretty basic kind of question, but I want to see what other users' tricks are for managing memory in their sessions. My application is a straightforward survey-type application. There are questions, choices, answers (choice selections) and so on. Once someone has select