| java.lang.Object de.danet.an.workflow.tools.rhino.JSExecutor
All known Subclasses: de.danet.an.workflow.tools.rhino.JSExecutor2,
JSExecutor | public class JSExecutor implements ToolAgent,ResultProvider,ContextRequester,Serializable(Code) | | This class provides a tool that executes JavaScript.
Enabling log level debug for this class logs invokation, the
script to be executed, completion and termination.
author: version: $Revision: 1.7 $ |
Inner Class :abstract public class FunctionBase extends ScriptableObject implements Function | |
Constructor Summary | |
public | JSExecutor() Creates an instance of JSExecutor
with all attributes initialized to default values. |
Method Summary | |
protected Object | convertArgument(Context cx, Scriptable scope, Object argType, Object argument) | protected Map | convertResult(Context cx, Scriptable scope, FormalParameter[] fps) Convert the result. | protected Object | convertResultValue(Context cx, Scriptable scope, FormalParameter fp, Object value) | public String | getScript() Get the value of script. | public void | invoke(Activity activity, FormalParameter[] formPars, Map map) Describe invoke method here. | protected void | prepareArguments(Context cx, Scriptable scope, FormalParameter[] formPars, Map map) | public Object | result() | public void | setScript(String newScript) Set the value of script. | public void | setToolAgentContext(ToolAgentContext context) Makes a context available to the tool agent. | public void | terminate(Activity activity) Describe terminate method here. |
JSExecutor | public JSExecutor()(Code) | | Creates an instance of JSExecutor
with all attributes initialized to default values.
|
convertResult | protected Map convertResult(Context cx, Scriptable scope, FormalParameter[] fps) throws JavaScriptException, SAXException(Code) | | Convert the result.
Parameters: cx - the context. Parameters: scope - the scope. Parameters: formPars - the formal parameter definitons. throws: JavaScriptException - throws: SAXException - |
convertResultValue | protected Object convertResultValue(Context cx, Scriptable scope, FormalParameter fp, Object value) throws JavaScriptException, SAXException(Code) | | Parameters: cx - the context. Parameters: scope - the scope. Parameters: formPars - the formal parameter definitons. Parameters: value - throws: JavaScriptException - throws: SAXException - |
prepareArguments | protected void prepareArguments(Context cx, Scriptable scope, FormalParameter[] formPars, Map map)(Code) | | Parameters: cx - the context. Parameters: scope - the scope. Parameters: formPars - the formal parameter definitons. Parameters: map - the actual parameter values. |
setScript | public void setScript(String newScript)(Code) | | Set the value of script.
Parameters: newScript - value to assign to script. See Also: JSExecutor.getScript |
setToolAgentContext | public void setToolAgentContext(ToolAgentContext context)(Code) | | Makes a context available to the tool agent.
Parameters: context - the tool agent context |
|
|