|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Enables the workflow engine or a client to invoke a tool (application or procedure). Implementations can be stateful only to the extent of containing service configuration information; their methods must be threadsafe.
Field Summary | |
static int |
ACTIVE
The tool is active. |
static int |
ERROR
The agent or tool encountered an error. |
static int |
EXIT_CANCEL
The tool was cancelled by the user. |
static int |
EXIT_NORMAL
The tool finished normally. |
static int |
FINISHED
The tool has finished running. |
static int |
RUNNING
The tool agent is running. |
static int |
TERMINATED
The tool was terminated. |
static int |
WAITING
The tool has not yet been invoked. |
Method Summary | |
int |
invokeApplication(ToolInvocation ti)
Invokes the tool. |
void |
renderInvocationScript(ToolInvocation ti,
java.io.Writer writer)
Renders the JavaScript necessary to invoke the tool from an HTML browser. |
int |
requestAppStatus()
Returns the tool status. |
void |
terminateApp()
Terminates the running tool. |
Field Detail |
public static final int WAITING
public static final int RUNNING
public static final int ACTIVE
public static final int ERROR
public static final int TERMINATED
public static final int FINISHED
public static final int EXIT_NORMAL
public static final int EXIT_CANCEL
Method Detail |
public void renderInvocationScript(ToolInvocation ti, java.io.Writer writer) throws java.io.IOException
ti
- writer
-
java.io.IOException
public int invokeApplication(ToolInvocation ti) throws java.lang.reflect.InvocationTargetException
null
.
ti
- The tool invocation context.
EXIT_NORMAL
,
EXIT_CANCEL
.
java.lang.IllegalStateException
- if the ToolAgent is not in the
WAITING
state.
java.lang.reflect.InvocationTargetException
- As thrown prior to or during during
tool execution.public int requestAppStatus()
WAITING
, RUNNING
, ACTIVE
,
TERMINATED
, FINISHED
.public void terminateApp()
java.lang.IllegalStateException
- if the tool is not running.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |