stellina_rosa [
http://community.jboss.org/people/stellina_rosa] created the discussion
"apply rules on a file"
To view the discussion, visit:
http://community.jboss.org/message/605672#605672
--------------------------------------------------------------
Hi!
I need to apply rules to a particular file. Let me explain: my application will launch an
external program that creates some results, and these results are stored in a file (ex.
result.txt). I would like to use a drools file to apply rules on this result.txt file...
is there any way to do this?
For example, my result.txt file contains:
q1("Miller",38000,"New York")
q1("Koch",2000000,"Atlanta")
q1("Nguyen",35000,"New York")
and I want a rule like this: if the string contains New York, then print "hello New
York" =====> this example is for explain you what i want:
a mechanism for manipulating the strings of a text file in a file drools.
Please help me! THANK YOU!!!
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/605672#605672]
Start a new discussion in jBPM at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]