oracle.clex.tools.processgenerator.process
Class GetServiceProcesses
java.lang.Object
|
+--oracle.cle.process.Process
|
+--oracle.cle.process.GenericProcess
|
+--oracle.clex.tools.processgenerator.process.GetServiceProcesses
- All Implemented Interfaces:
- Child, java.lang.Cloneable, ProcessConstants, java.io.Serializable, State
- public class GetServiceProcesses
- extends GenericProcess
This class get the Processes defined in a service. The class sets a vector
of Strings that represent the fully qualified class name for the processes
defined in the given service definition. The result is set in the infotable
as PROCESSES as defined in the ProcessGeneratorConstants.
The process uses retrieves the service from the Multipart Request in the
infotable. The process also sets the MultipartRequest value to null after
use, due to a bug in the framework as of 10/11/2001. This process is
specific to a Servlet deployment. Please see the method
getUploadedServiceLocationString for the reason why this dependence on
a servlet deployment.
- See Also:
ProcessGeneratorConstants
, Serialized Form
Fields inherited from class oracle.cle.process.Process |
condition, DEBUG, endState, FAILURE, name, processes, service, stateMachine, SUCCESS, TRANSITION_CONDITION_FAILURE, TRANSITION_CONDITION_SUCCESS |
Fields inherited from interface oracle.cle.process.ProcessConstants |
ALLINFO, BINARYSIZE, CONNECTION_PROVIDER_DTD_NAME, CONNECTION_PROVIDER_VALIDATION_PROPERTY, CONTENTTYPE, CURRENTPAGEID, CURRENTSERVICE, ERRORMESSAGE, GENERICBINARYRESULT, GENERICTEXTRESULT, GETINFO_CHECK_ALL, GETINFO_CHECK_CONTROLLERONLY, GETINFO_CHECK_SERVICEONLY, HTML, HTMLRESULT, JSPRESULT, LOGOFF, NOMESSAGE, PAGEID, PDF, PDFRESULT, PRE_GROUP_DTD_NAME, PRE_GROUP_VALIDATION_PROPERTY, PROCESS_FEEDBACK, RESTART, RESULTTYPE, RULES_DTD_NAME, SERVICE_DESCRIPTOR, SERVICE_DTD_NAME, SERVICE_VALIDATION_PROPERTY, SERVICEINITIALSTATE, SERVICENAME, SESSIONID, SKIP, STACKTRACE, USER, USERROLE, WML, XML, XMLRESULT |
Method Summary |
java.lang.String |
getUploadedServiceLocation(java.lang.String serviceName)
This method provides the upload location for the submittted file. |
protected void |
registerInfo()
Registers the information from the info table that the process is
interested in. |
void |
start()
Get the processes defined in a service definition and then
set the result as a vector. |
Methods inherited from class oracle.cle.process.GenericProcess |
clone, getBooleanInfo, getFloatInfo, getInfo, getInfo, getInfo, getInfoValue, getInfoValue, getInfoValueFromController, getInfoValueFromService, getIntegerInfo, getParameterNamed, getParameters, getParent, getParents, getResultNamed, getResults, getSessionId, getStringInfo, processParameters, processResults, registerBooleanParameter, registerBooleanResult, registerIntegerParameter, registerIntegerResult, registerParameter, registerProcessInfo, registerResult, registerStringArrayParameter, registerStringArrayResult, registerStringParameter, registerStringParameter, registerStringResult, registerStringResult, retrieveStringParameter, runTest, setParent, setResult, setResult, setResult |
Methods inherited from class oracle.cle.process.Process |
addCondition, addProcess, cloneProcess, debug, generateFailureCondition, generateSuccessCondition, getClassname, getCondition, getConditions, getIconName, getImageName, getName, getProcesses, getProcessNamed, getStateMachine, hashCode, isEndState, removeCondition, removeCondition, reportException, returnCondition, setCondition, setCondition, setEndState, setName, setService, toString |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
INVALID_XML
protected static final java.lang.String INVALID_XML
NO_SERVICE_NAME
protected static final java.lang.String NO_SERVICE_NAME
GetServiceProcesses
public GetServiceProcesses()
registerInfo
protected void registerInfo()
- Registers the information from the info table that the process is
interested in.
- Overrides:
registerInfo
in class GenericProcess
start
public void start()
- Get the processes defined in a service definition and then
set the result as a vector. If the XML Service Reader throws an
exception, then the condition will be set to INVALID_XML. If the
SERVICE_NAME can not be found, the condition will be set to
NO_SERVICE_NAME. If the both of those pass, the ServiceReader
is used to get the vetor of processes.
- Overrides:
start
in class GenericProcess
- See Also:
ServiceReader
getUploadedServiceLocation
public java.lang.String getUploadedServiceLocation(java.lang.String serviceName)
- This method provides the upload location for the submittted file. The
location is determined by the configuration of the HttpServletController
and by default can be found in the upload directory under the web server
root. This method is dependent on the HttpServletController because
there is not an abstaction that allows a process to get a file upload
location for a "Controller", therefore we must use not only the
HttpServletController but the ServletContext available in the HttpRequest
object. Doing this does make this process restricted to a Servlet
deployment and therefore this class must be extended to allow for other
possible deployments.
- See Also:
HttpServletController
Copyright © 2003 ORACLE Corp. All Rights Reserved.