[JDEV] One step futher into scripting.

Al Sutton al at alsutton.com
Sat Jun 9 09:52:25 CDT 2001


All,

The client side scripting engine I've developed is now able to take simple
script lines and perform actions. For example, the following rule script;

-Start of file-
if
 is_from al at personalbuddy.com
 Contains_Message_Text reject
do
 Send_Reply Test done
endif

if
 Contains_Message_Text Hello
do
 Send_Reply Hello to you to
endif
-End of file-

will reply to any messages from al at personalbuddy.com containing the word
reject in the message body with a message saying "Test done", and reply to
any messages with the word Hello in the body with a message saying "Hello to
you to".

It's extensible in that you can add in extra rules and condition templates
to the scripting language quite easily (you put a class in the correct
package in your classpath and it picks it up as either an action or
condition depending on where you put it.

I'm planning to upload a Java jar file and instructions on how to use and
expand it tomorrow so people can play with it at will.

Comments welcome..

Al.




More information about the JDev mailing list