public abstract class BusinessProcessConfiguration extends ConfigurableMarkerValidator implements BusinessProcessConstants
This is the base class for a business process configuration. It contains the properties that are common to all types of configurations.
BusinessProcessManager.deleteBusinessProcessMarkers
API.
doStartService
method adds
the configuration object to the MarkerValidatorContainer. Typically, the
marker validator container is the same as the marker manager that will
handle markers for the business process.This class is abstract to prevent instantiation of components based on this class.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
protected java.lang.String |
mBusinessProcessName |
protected java.lang.String |
mDuplicationMode |
protected boolean |
mEnabled |
protected boolean |
mGenerateEvents |
protected java.lang.String |
mMarkedItemType |
protected java.lang.String |
mMarkerItemType |
protected java.lang.String |
mMarkerPropertyName |
protected MarkerValidatorContainer |
mMarkerValidatorContainer |
protected java.lang.String[] |
mStageNames |
mAcceptAllValues, mNullValueValid
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 |
---|
BusinessProcessConfiguration() |
Modifier and Type | Method and Description |
---|---|
void |
doStartService()
Validates the configuration by calling validateConfiguration
and adds this object to the MarkerValidatorContainer.
|
java.lang.String |
getBusinessProcessName()
Returns the name of the business process
|
java.lang.String |
getDuplicationMode() |
java.lang.String |
getMarkedItemType() |
java.lang.String |
getMarkerItemType() |
java.lang.String |
getMarkerPropertyName() |
MarkerValidatorContainer |
getMarkerValidatorContainer()
Returns the MarkerValidatorContainer associated with this Business Process.
|
java.lang.String[] |
getPossibleValues()
Gets the array of possible marker values.
|
java.lang.String[] |
getStageNames()
Gets the array of possible business process stage names.
|
boolean |
isEnabled()
Boolean flag for optionally disabling a business process.
|
boolean |
isGenerateEvents()
Boolean flag for optionally generating JMS events for this
business process.
|
boolean |
isNullValueValid()
Override to make null an invalid stage for a bp marker.
|
void |
setBusinessProcessName(java.lang.String pBusinessProcessName)
Sets the name of the business process
|
void |
setDuplicationMode(java.lang.String pDuplicationMode)
Sets the duplication mode used for adding new
business process markers.
|
void |
setEnabled(boolean pEnabled)
Sets the boolean flag for optionally disabling a business process
|
void |
setGenerateEvents(boolean pGenerateEvents)
Sets the boolean flag for optionally generating JMS events for this
business process
|
void |
setMarkedItemType(java.lang.String pMarkedItemType)
Sets the marked item type.
|
void |
setMarkerItemType(java.lang.String pMarkerItemType)
Sets the marker item type used when creating new business process
markers.
|
void |
setMarkerPropertyName(java.lang.String pMarkerPropertyName)
Sets the marker property name where the business process
markers are maintained on the containing object.
|
void |
setMarkerValidatorContainer(MarkerValidatorContainer pMarkerValidatorContainer)
Sets the MarkerValidatorContainer associated with this Business Process.
|
void |
setStageNames(java.lang.String[] pStageNames)
Sets the array of possible business process stage names.
|
void |
validateConfiguration()
Validates the property settings for the configuration component
|
getValidValuesForKey, setPossibleValues
isAcceptAllValues, isValidMarker, isValidValueForKey, setAcceptAllValues, setNullValueValid
addLogListener, createAdminServlet, 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
protected java.lang.String mBusinessProcessName
protected java.lang.String[] mStageNames
protected java.lang.String mDuplicationMode
protected java.lang.String mMarkerPropertyName
protected java.lang.String mMarkedItemType
protected java.lang.String mMarkerItemType
protected boolean mEnabled
protected boolean mGenerateEvents
protected MarkerValidatorContainer mMarkerValidatorContainer
public boolean isNullValueValid()
isNullValueValid
in class ValidateMarkerByPossibleValue
public void setBusinessProcessName(java.lang.String pBusinessProcessName)
public java.lang.String getBusinessProcessName()
public java.lang.String[] getStageNames()
public void setStageNames(java.lang.String[] pStageNames)
public java.lang.String[] getPossibleValues()
This override returns the values from the stageNames
property
getPossibleValues
in class ConfigurableMarkerValidator
public void setDuplicationMode(java.lang.String pDuplicationMode)
public java.lang.String getDuplicationMode()
public void setMarkerPropertyName(java.lang.String pMarkerPropertyName)
public java.lang.String getMarkerPropertyName()
public void setMarkedItemType(java.lang.String pMarkedItemType)
public java.lang.String getMarkedItemType()
public void setMarkerItemType(java.lang.String pMarkerItemType)
public java.lang.String getMarkerItemType()
public void setEnabled(boolean pEnabled)
public boolean isEnabled()
When a business process is disabled, stages cannot be added or removed. Also, conditional testing for the existence of stages will always return false or null.
public void setGenerateEvents(boolean pGenerateEvents)
public boolean isGenerateEvents()
public void setMarkerValidatorContainer(MarkerValidatorContainer pMarkerValidatorContainer)
public MarkerValidatorContainer getMarkerValidatorContainer()
MarkerValidatorContainer
associated with this Business Processpublic void doStartService() throws ServiceException
doStartService
in class GenericService
ServiceException
- if the Service had a problem starting uppublic void validateConfiguration() throws BusinessProcessException
BusinessProcessException
- for properties that aren't properly
configured.