public class InvokeThread
extends java.lang.Thread
Constructor and Description |
---|
InvokeThread(Context context,
java.lang.String ifc,
java.lang.String svc,
Values data)
Constructs an InvokeThread for the specified Context and service.
|
Modifier and Type | Method and Description |
---|---|
Values |
getData()
Blocks until the invoked service completes and then returns the Values object from the invoked service.
|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
public InvokeThread(Context context, java.lang.String ifc, java.lang.String svc, Values data)
context
- The Context object, which must already be connected to a webMethods Integration Server.ifc
- A String specifying the name of the folder on the Integration Server.svc
- A String specifying the name of the service on the Integration Server.data
- A Values object containing the input data for the service.public Values getData() throws ServiceException, java.lang.InterruptedException
ServiceException
- If the invoked service throws an exception.java.lang.InterruptedException
- If this thread is interrupted before it completes.