[jboss-user] [jBPM] - apply rules on a file
stellina_rosa
do-not-reply at jboss.com
Tue May 17 09:26:37 EDT 2011
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&containerType=14&container=2034]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110517/96d2a5d7/attachment.html
More information about the jboss-user
mailing list