JRunCIPRes
org.cipres.kepler.JRunCIPRes

This actor calls the external applications. The JRunCIPRes actor provides a template to invoke external Cipres applications. A set of parameters is configured in the actor to collect application related information. The value of these parameters will be fed to the JRun object when the actor fires. Thus the GUIRun object will invoke the corresponding application with those values, like the input/output file names and the working directory. After the execution, if the external program returns correctly, the standard output of the execution will be sent to the standard output file, and the standard error will be sent to the standard error file. The user can also set some words to be monitored in the standard output stream. The observer/observable design pattern is used here. The JRunCIPRes object is an observer. The JRun object is an observable. Whenever the JRun object find any of these monitored words in the standard output steam of the program execution, it will notify the JRunCIPRes objects to promote the user handling the issue. Usually the JRunCIPRes actor will stop the execution of the program.

Author(s): Zhijie Guan
Version:$Id: JRunCIPRes.java,v 1.1 2006/05/19 11:51:23 guan Exp $


standardOutput
The standard output stream of the execution is sent out through this port.

standardError
The standard error stream of the execution is sent out through this port.

exitCode
The exit code of the execution is sent out through this port.

inputTrigger
The trigger that will enable the execution of this actor is received through this port.



command
The command path and name are defined in this parameter.

outputFile
The standard output file's path and name are defined in this parameter.

errorFile
The standard error file's path and name are defined in this parameter.

arguments
The arguments of the program that will be executed are defined in this parameter.

workingDirectory
The workfing directory of the external program is defined in this parameter.

monitoredErrorWords
The monitored words are defined in this parameter.