We have just released new build 2235 that has the ability to run Javascript from a process. The following script will close the form if a process has been called from the form:
EXEC_SCRIPT ‘AwareApp.closeComponent(parser.m_widgetInfo,false,false);‘
The Rule Language Guide has some other examples of useful scripts.