| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectatg.nucleus.logging.VariableArgumentApplicationLoggingImpl
atg.nucleus.GenericService
atg.nucleus.TimedOperationService
atg.nucleus.servlet.ServletService
atg.nucleus.servlet.HttpServletService
atg.servlet.DynamoServlet
atg.workflow.servlet.WorkflowInstanceQueryDroplet
public class WorkflowInstanceQueryDroplet
A droplet used to perform workflow instance queries.
This droplet performs an instance query, sets the output
 instances parameter to the resulting Collection of
 ProcessInstanceInfo objects, and renders its output
 parameter.  It is typically used in conjunction with another
 droplet, such as ForEach or Range, which specifies the formatting
 of each of the ProcessInstanceInfo objects.  In addition, the
 information contained in each ProcessInstanceInfo (namely, the
 subjectId, processName, and
 segmentName properties) can be passed as input
 parameters to WorkflowTaskQueryDroplet, in order to obtain the
 tasks corresponding to the workflow instance.
 
 
Here is the complete description of the parameters to the WorkflowInstanceQueryDroplet:
The following properties of WorkflowInstanceQueryDroplet should be set in the properties file for this component:
ProcessInstanceInfo, 
ForEach, 
Range| Field Summary | |
|---|---|
| static java.lang.String | CLASS_VERSIONClass version string | 
| static ParameterName | EMPTY | 
| static ParameterName | ERROR | 
| static java.lang.String | ERROR_MESSAGE | 
| static java.lang.String | INSTANCES | 
| static ParameterName | OUTPUT | 
| static ParameterName | PROCESS_NAME | 
| static ParameterName | SEGMENT_NAME | 
| static ParameterName | SUBJECT_ID | 
| static ParameterName | TASK_ELEMENT_ID | 
| static ParameterName | TASK_ELEMENT_IDS | 
| static ParameterName | TASK_NAME | 
| static ParameterName | TASK_NAMES | 
| Fields inherited from class atg.servlet.DynamoServlet | 
|---|
| mAllowCleanupRequest, mParameters | 
| Fields inherited from class atg.nucleus.servlet.ServletService | 
|---|
| SERVLET_INFO_KEY | 
| Fields inherited from class atg.nucleus.GenericService | 
|---|
| SERVICE_INFO_KEY | 
| Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging | 
|---|
| DEFAULT_LOG_TRACE_STATUS | 
| Fields inherited from interface atg.nucleus.logging.ApplicationLogging | 
|---|
| DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS | 
| Constructor Summary | |
|---|---|
| WorkflowInstanceQueryDroplet() | |
| Method Summary | |
|---|---|
|  void | doStartService()Called after the service has been created, placed into the naming hierarchy, and initialized with its configured property values. | 
| protected  java.util.Collection | getProcessInstances(DynamoHttpServletRequest pRequest)Performs the process instance query, and returns a Collection of ProcessInstanceInfo objects which satisfy the given criteria. | 
|  ProcessManager | getProcessManager()Returns the ProcessManager which will be used to find workflow instances. | 
|  WorkflowManager | getWorkflowManager()Returns the WorkflowManager which provides access to workflow information. | 
|  void | service(DynamoHttpServletRequest pRequest,
        DynamoHttpServletResponse pResponse)Called when a request needs to be processed. | 
|  void | setProcessManager(ProcessManager pProcessManager)Sets the ProcessManager which will be used to find workflow instances. | 
|  void | setWorkflowManager(WorkflowManager pWorkflowManager)Sets the WorkflowManager which provides access to workflow information. | 
| Methods inherited from class atg.servlet.DynamoServlet | 
|---|
| doDelete, doGet, doPost, doPut, getParameter, getParameters, getServletContext, init, service, service, setParameter | 
| Methods inherited from class atg.nucleus.servlet.ServletService | 
|---|
| destroy, getServletConfig, getServletInfo, setServletInfo | 
| Methods inherited from class atg.nucleus.TimedOperationService | 
|---|
| getAverageRequestHandlingTime, getHandledRequestCount, getRequestStartTime, getTotalRequestHandlingTime, isKeepingStatistics, notifyHandledRequest, resetStatistics, setKeepingStatistics | 
| Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl | 
|---|
| vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static java.lang.String CLASS_VERSION
public static final ParameterName SUBJECT_ID
public static final ParameterName PROCESS_NAME
public static final ParameterName SEGMENT_NAME
public static final ParameterName TASK_ELEMENT_ID
public static final ParameterName TASK_ELEMENT_IDS
public static final ParameterName TASK_NAME
public static final ParameterName TASK_NAMES
public static final ParameterName OUTPUT
public static final ParameterName EMPTY
public static final ParameterName ERROR
public static final java.lang.String INSTANCES
public static final java.lang.String ERROR_MESSAGE
| Constructor Detail | 
|---|
public WorkflowInstanceQueryDroplet()
| Method Detail | 
|---|
public ProcessManager getProcessManager()
public void setProcessManager(ProcessManager pProcessManager)
public WorkflowManager getWorkflowManager()
public void setWorkflowManager(WorkflowManager pWorkflowManager)
protected java.util.Collection getProcessInstances(DynamoHttpServletRequest pRequest)
                                            throws javax.servlet.ServletException,
                                                   ProcessException
javax.servlet.ServletException - if missing or invalid parameters were
 encountered
ProcessException - if there was a problem performing the
 process instance queryProcessInstanceInfo
public void doStartService()
                    throws ServiceException
doStartService in class GenericServiceServiceException - if the service had a problem starting
 up
public void service(DynamoHttpServletRequest pRequest,
                    DynamoHttpServletResponse pResponse)
             throws javax.servlet.ServletException,
                    java.io.IOException
service in class DynamoServletpRequest - the request to be processedpResponse - the response object for this request
javax.servlet.ServletException - if an application specific error
 occurred processing this request
java.io.IOException - if an error occurred reading data from the
 request or writing data to the response| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||