public abstract class BusinessProcessDroplet extends MarkerDroplet implements BusinessProcessConstants
It provides methods to access the business process parameter values, and overrides validateInput to ensure the required business process params are provided.
property defintions
Modifier and Type | Field and Description |
---|---|
static ParameterName |
BPNAME_PARAM
the parameter name for the business process name parameter
|
static ParameterName |
BPSTAGE_PARAM
the parameter name for the business process stage parameter
|
static java.lang.String |
CLASS_VERSION
Class version string
|
protected BusinessProcessManager |
mBusinessProcessManager
the parameter name for the data parameter
|
protected java.lang.String |
mDefaultBusinessProcessName |
DATA_PARAM, DUPLICATION_MODE_PARAM, EMPTY_OPARAM, ERROR_MSG_PARAM, ERROR_OPARAM, FALSE_OPARAM, ITEM_ID_PARAM, ITEM_PARAM, KEY_PARAM, MARKED_ITEM_TYPE_PARAM, MARKER_COUNT, MARKER_ELEMENT, MARKER_EXTPROPS_PARAM, MARKER_ITEM_TYPE_PARAM, MARKER_MANAGER_PARAM, MARKER_PROPERTY_NAME_PARAM, MARKERS_ELEMENT, mRepositoryMarkerManager, mTransactionManager, OUTPUT_OPARAM, TRUE_OPARAM, VALUE_PARAM
mAllowCleanupRequest, mParameters
SERVLET_INFO_KEY
SERVICE_INFO_KEY
BUSINESS_PROCESS_RESOURCE_NAME, sBusinessProcessResourceBundle
ALLOW_DUPLICATES, ANY_VALUE, DEFAULT_MARKER_ID_PROPERTY_NAME, DEFAULT_MARKER_ITEM_TYPE, DEFAULT_MARKER_PROPERTY_NAME, DEFAULT_MARKER_SORT_PROPERTY_NAME, MARKER_CREATIONDATE_PROPERTY_NAME, MARKER_DATA_PROPERTY_NAME, MARKER_DUPLICATIONMODE_PROPERTY_NAME, MARKER_KEY_PROPERTY_NAME, MARKER_OWNER_PROPERTY_NAME, MARKER_RESOURCE_NAME, MARKER_VALUE_PROPERTY_NAME, NO_DUPLICATES, PARAM_DATA, PARAM_DUPMODE, PARAM_EXTENDED_PROPERTIES, PARAM_ITEM, PARAM_ITEM_ID, PARAM_KEY, PARAM_MARKED_ITEM_TYPE, PARAM_MARKER_ITEM_TYPE, PARAM_MARKER_MANAGER, PARAM_MARKER_PROPERTY_NAME, PARAM_VALUE, REPLACE_DUPLICATES, sResourceBundle
DEFAULT_LOG_TRACE_STATUS
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS
Constructor and Description |
---|
BusinessProcessDroplet() |
Modifier and Type | Method and Description |
---|---|
BusinessProcessManager |
getBusinessProcessManager()
Returns the Business Process Manager used for all business
process api calls.
|
protected java.lang.String |
getBusinessProcessName(DynamoHttpServletRequest req)
Returns the business process name parameter value from the request.
|
protected java.lang.String |
getBusinessProcessStage(DynamoHttpServletRequest req)
Returns the business process stage parameter value from the request
|
java.lang.String |
getDefaultBusinessProcessName()
Returns the default business process name for the droplet.
|
void |
setBusinessProcessManager(BusinessProcessManager pBusinessProcessManager)
Sets the Business Process Manager used for all business
process api calls.
|
void |
setDefaultBusinessProcessName(java.lang.String pDefaultBusinessProcessName)
Sets the default business process name for the droplet.
|
protected void |
validateInput(DynamoHttpServletRequest req,
DynamoHttpServletResponse res)
Validates the input parameters.
- verifies that there's a business process name - verifies that there's a business process stage |
doService, getANY_VALUE, getData, getDefaultDuplicationMode, getDefaultMarkedItemType, getDefaultMarkerItemType, getDefaultMarkerPropertyName, getDuplicationMode, getExtendedProperties, getItem, getItemId, getKey, getMarkedItemType, getMarkerItemType, getMarkerManager, getMarkerPropertyName, getRepositoryMarkerManager, getTransactionManager, getValue, service, setDefaultDuplicationMode, setDefaultMarkedItemType, setDefaultMarkerItemType, setDefaultMarkerPropertyName, setRepositoryMarkerManager, setTransactionManager
doDelete, doGet, doPost, doPut, getParameter, getParameters, getServletContext, init, service, service, setParameter
destroy, getServletConfig, getServletInfo, setServletInfo
getAverageRequestHandlingTime, getHandledRequestCount, getRequestStartTime, getTotalRequestHandlingTime, isKeepingStatistics, notifyHandledRequest, resetStatistics, setKeepingStatistics
addLogListener, createAdminServlet, doStartService, doStopService, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning
public static java.lang.String CLASS_VERSION
public static final ParameterName BPNAME_PARAM
public static final ParameterName BPSTAGE_PARAM
protected BusinessProcessManager mBusinessProcessManager
protected java.lang.String mDefaultBusinessProcessName
public void setBusinessProcessManager(BusinessProcessManager pBusinessProcessManager)
public BusinessProcessManager getBusinessProcessManager()
public void setDefaultBusinessProcessName(java.lang.String pDefaultBusinessProcessName)
public java.lang.String getDefaultBusinessProcessName()
protected java.lang.String getBusinessProcessName(DynamoHttpServletRequest req) throws MarkerException
MarkerException
protected java.lang.String getBusinessProcessStage(DynamoHttpServletRequest req) throws MarkerException
MarkerException
protected void validateInput(DynamoHttpServletRequest req, DynamoHttpServletResponse res) throws MarkerException
validateInput
in class MarkerDroplet
on
- validation errorMarkerException