|
|||||||||
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.markers.bp.BusinessProcessManager
atg.commerce.markers.bp.CommerceBusinessProcessManager
public class CommerceBusinessProcessManager
This class extends BusinessProcessManager to provide processing for
business process configurations that are an instance of
atg.commerce.markers.bp.OrderBasedProcessConfiguration
BusinessProcessManager
,
OrderBasedProcessConfiguration
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
static java.lang.String |
COMMERCE_BUSINESS_PROCESS_RESOURCE_NAME
The resource bundle name for user resources |
static java.util.ResourceBundle |
sCommerceBusinessProcessResourceBundle
The resource bundle gor user resources |
Fields inherited from class atg.markers.bp.BusinessProcessManager |
---|
mBusinessProcessConfiguration, mBusinessProcessNameToConfiguration, mGenerateEvents, mMarkerMessageSource, mStageReachedJMSType, mTransactionManager |
Fields inherited from class atg.nucleus.GenericService |
---|
SERVICE_INFO_KEY |
Fields inherited from interface atg.markers.bp.BusinessProcessConstants |
---|
BUSINESS_PROCESS_RESOURCE_NAME, sBusinessProcessResourceBundle |
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 | |
---|---|
CommerceBusinessProcessManager()
|
Method Summary | |
---|---|
RepositoryItem |
addBusinessProcessStage(java.lang.String pBusinessProcessName,
java.lang.String pBusinessProcessStage,
java.lang.String pData,
java.lang.String pMarkerItemType,
java.lang.String pMarkerPropertyName,
java.util.Map pExtendedProperties,
java.lang.String pDuplicationMode)
Adds a business process marker to the order defined by the business process configuration. |
RepositoryItem |
addBusinessProcessStageToOrder(Order pOrder,
java.lang.String pBusinessProcessName,
java.lang.String pBusinessProcessStage,
java.lang.String pData,
java.lang.String pMarkerItemType,
java.lang.String pMarkerPropertyName,
java.util.Map pExtendedProperties,
java.lang.String pDuplicationMode)
Adds a business process marker to an order. |
int |
deleteBusinessProcessMarkers(java.lang.String pBusinessProcessName,
java.lang.String pBusinessProcessStage)
Use this method to delete all markers that match the input parameters. |
int |
deleteOrderBasedBusinessProcessMarkers(java.lang.String pBusinessProcessName,
java.lang.String pBusinessProcessStage,
java.lang.String pData,
java.util.Map pExtendedProperties)
Use this method to delete all markers that match the input parameters. |
protected OrderBasedProcessConfiguration |
findOrderBasedProcessConfiguration(java.lang.String pBusinessProcessName)
Finds an order based business process configuration component using the business process name |
java.sql.Timestamp |
findProcessStartTime(Order pOrder,
java.lang.String pBusinessProcessName,
java.lang.String pMarkerPropertyName)
This method determines the time an order started a business process. |
boolean |
hasBusinessProcessStage(java.lang.String pBusinessProcessName,
java.lang.String pBusinessProcessStage,
java.lang.String pData,
java.lang.String pMarkerPropertyName,
java.util.Map pExtendedProperties)
Use this method to test for a business process marker. |
RepositoryItem |
matchMostRecentBusinessProcessStage(java.lang.String pBusinessProcessName,
java.lang.String pBusinessProcessStage,
java.lang.String pData,
java.lang.String pMarkerPropertyName,
java.util.Map pExtendedProperties)
Use this method to match the most recent marker for a business process. |
RepositoryItem |
matchMostRecentBusinessProcessStageOnOrder(Order pOrder,
java.lang.String pBusinessProcessName,
java.lang.String pBusinessProcessStage,
java.lang.String pData,
java.lang.String pMarkerPropertyName,
java.util.Map pExtendedProperties)
Use this method to match the most recent marker for a business process. |
boolean |
orderHasBusinessProcessStage(Order pOrder,
java.lang.String pBusinessProcessName,
java.lang.String pBusinessProcessStage,
java.lang.String pData,
java.lang.String pMarkerPropertyName,
java.util.Map pExtendedProperties)
Use this method to test for a business process marker on an order. |
int |
removeBusinessProcessStage(java.lang.String pBusinessProcessName,
java.lang.String pBusinessProcessStage,
java.lang.String pData,
java.lang.String pMarkerPropertyName,
java.util.Map pExtendedProperties)
Use this method to remove markers for a business process. |
int |
removeBusinessProcessStageFromOrder(Order pOrder,
java.lang.String pBusinessProcessName,
java.lang.String pBusinessProcessStage,
java.lang.String pData,
java.lang.String pMarkerPropertyName,
java.util.Map pExtendedProperties)
Use this method to remove markers for a business process. |
Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl |
---|
vlogDebug, vlogDebug, vlogDebug, vlogDebug, 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 final java.lang.String CLASS_VERSION
public static final java.lang.String COMMERCE_BUSINESS_PROCESS_RESOURCE_NAME
public static final java.util.ResourceBundle sCommerceBusinessProcessResourceBundle
Constructor Detail |
---|
public CommerceBusinessProcessManager()
Method Detail |
---|
public RepositoryItem addBusinessProcessStage(java.lang.String pBusinessProcessName, java.lang.String pBusinessProcessStage, java.lang.String pData, java.lang.String pMarkerItemType, java.lang.String pMarkerPropertyName, java.util.Map pExtendedProperties, java.lang.String pDuplicationMode) throws BusinessProcessException, MarkerException
This method calls the addBusinessProcessStageToOrder method if the
business process configuration is an instance of
atg.commerce.markers.bp.OrderBasedProcessConfiguration
.
Otherwise super is called.
addBusinessProcessStage
in class BusinessProcessManager
BusinessProcessException
MarkerException
addBusinessProcessStageToOrder(atg.commerce.order.Order, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.util.Map, java.lang.String)
public RepositoryItem addBusinessProcessStageToOrder(Order pOrder, java.lang.String pBusinessProcessName, java.lang.String pBusinessProcessStage, java.lang.String pData, java.lang.String pMarkerItemType, java.lang.String pMarkerPropertyName, java.util.Map pExtendedProperties, java.lang.String pDuplicationMode) throws BusinessProcessException, MarkerException
If an order is provided in pOrder, the caller is responsible for doing the order update.
If an order is not provided, the order returned by the configuration component's
findOrder
method is used and order update is called automatically.
If pMarkerPropertyName is not provided, the markerPropertyName returned by the OrderBasedProcessConfiguration is used.
If pMarkerItemType is not provided, the markerItemType returned by the OrderBasedProcessConfiguration is used.
If pDuplicationMode is not provided, the duplicationMode returned by the OrderBasedProcessConfiguration is used.
pOrder
- the order that will be marked. if null, the order defined by the
business process is used.pBusinessProcessName
- the marker key.pBusinessProcessStage
- the marker value.pData
- the marker datapMarkerItemType
- the item type of the marker to be created.pMarkerPropertyName
- name of the order property that contains the collection of markers.pExtendedProperties
- the marker extended propertiespDuplicationMode
- the duplication mode used when adding the marker.
BusinessProcessException
MarkerException
public int removeBusinessProcessStage(java.lang.String pBusinessProcessName, java.lang.String pBusinessProcessStage, java.lang.String pData, java.lang.String pMarkerPropertyName, java.util.Map pExtendedProperties) throws BusinessProcessException, MarkerException
This method calls the removeBusinessProcessStageFromOrder method if the
business process configuration is an instance of
atg.commerce.markers.bp.OrderBasedProcessConfiguration
.
Otherwise, super is called.
removeBusinessProcessStage
in class BusinessProcessManager
BusinessProcessException
MarkerException
removeBusinessProcessStageFromOrder(atg.commerce.order.Order, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.util.Map)
public int removeBusinessProcessStageFromOrder(Order pOrder, java.lang.String pBusinessProcessName, java.lang.String pBusinessProcessStage, java.lang.String pData, java.lang.String pMarkerPropertyName, java.util.Map pExtendedProperties) throws BusinessProcessException, MarkerException
If an order is provided in pOrder, the caller is responsible for doing the order update.
If an order is not provided, the order returned by the configuration component's
findOrder
method is used and order update is called automatically.
If pMarkerPropertyName is not provided, the markerPropertyName returned by the OrderBasedProcessConfiguration is used.
All markers that match are removed. For a match to be successful,
all the marker properties must match the parameter values provided. Use null for a
parameter value if the associated property was originally created with null.
For string properties that are not null but should not be included in the match, use the
atg.markers.MarkerConstants.ANY_VALUE
token string.
This string indicates that the property can be any value for a successful
match.
If the extended properties map is null then none of the extended properties will be included in the match.
For instance, using ANY_VALUE for pBusinessProcessStage will remove all markers for the given business process name.
pOrder
- the order that contains the markers. if null, the order defined by the
business process is used.pBusinessProcessName
- marker key to matchpBusinessProcessStage
- marker value to matchpData
- the marker data to matchpMarkerPropertyName
- name of the order property that contains the collection of markers.pExtendedProperties
- the marker extended properties
BusinessProcessException
MarkerException
public boolean hasBusinessProcessStage(java.lang.String pBusinessProcessName, java.lang.String pBusinessProcessStage, java.lang.String pData, java.lang.String pMarkerPropertyName, java.util.Map pExtendedProperties) throws BusinessProcessException, MarkerException
This method calls the orderHasBusinessProcessStage method if the
business process configuration is an instance of
atg.commerce.markers.bp.OrderBasedProcessConfiguration
.
Otherwise, super is called.
hasBusinessProcessStage
in class BusinessProcessManager
BusinessProcessException
MarkerException
orderHasBusinessProcessStage(atg.commerce.order.Order, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.util.Map)
public boolean orderHasBusinessProcessStage(Order pOrder, java.lang.String pBusinessProcessName, java.lang.String pBusinessProcessStage, java.lang.String pData, java.lang.String pMarkerPropertyName, java.util.Map pExtendedProperties) throws BusinessProcessException, MarkerException
For a match to be successful, all the marker properties must match the parameter values
provided. Use null for a parameter value if the associated property was originally created
with null. For string properties that are not null, but should not be included in the match,
use the atg.markers.MarkerConstants.ANY_VALUE
token string.
This string indicates that the property can be any value for a successful
match.
If the extended properties map is null then none of the extended properties will be included in the match.
For instance, using ANY_VALUE for pBusinessProcessStage will attempt to find a matching marker using only the business process name.
pOrder
- the order that contains the markers. if null, the order defined by the
business process is used.pBusinessProcessName
- the marker key to match.pBusinessProcessStage
- the marker value to matchpData
- the marker data to match.pMarkerPropertyName
- name of the order property that contains the collection of markers.pExtendedProperties
- the marker extended properties to match
BusinessProcessException
MarkerException
public RepositoryItem matchMostRecentBusinessProcessStage(java.lang.String pBusinessProcessName, java.lang.String pBusinessProcessStage, java.lang.String pData, java.lang.String pMarkerPropertyName, java.util.Map pExtendedProperties) throws BusinessProcessException, MarkerException
This method calls the matchMostRecentBusinessProcessStageOnOrder method if the
business process configuration is an instance of
atg.commerce.markers.bp.OrderBasedProcessConfiguration
.
Otherwise super is called.
matchMostRecentBusinessProcessStage
in class BusinessProcessManager
BusinessProcessException
MarkerException
#matchLastBusinessProcessStageOnOrder
public RepositoryItem matchMostRecentBusinessProcessStageOnOrder(Order pOrder, java.lang.String pBusinessProcessName, java.lang.String pBusinessProcessStage, java.lang.String pData, java.lang.String pMarkerPropertyName, java.util.Map pExtendedProperties) throws BusinessProcessException, MarkerException
For a match to be successful, all the marker properties must match the parameter values
provided. Use null for a parameter value if the associated property was originally created
with null. For string properties that are not null, but should not be included in the match,
use the atg.markers.MarkerConstants.ANY_VALUE
token string.
This string indicates that the property can be any value for a successful
match.
If the extended properties map is null then none of the extended properties will be included in the match.
pOrder
- the order that contains the markers. if null the order defined by the
business process is used.pBusinessProcessName
- the marker key to match.pBusinessProcessStage
- the marker value to match.pData
- the marker data to match.pMarkerPropertyName
- name of the order property that contains the collection of markers.pExtendedProperties
- the marker extended properties to match.
BusinessProcessException
MarkerException
public java.sql.Timestamp findProcessStartTime(Order pOrder, java.lang.String pBusinessProcessName, java.lang.String pMarkerPropertyName) throws BusinessProcessException
pOrder
- the order in the business process.pBPName
- the business process namepMarkerPropertyName
- the name of the property that contains the markers for the business process
BusinessProcessException
protected OrderBasedProcessConfiguration findOrderBasedProcessConfiguration(java.lang.String pBusinessProcessName) throws BusinessProcessException
pBusinessProcessName
- the business process name that identifies the configuration component
BusinessProcessException
- is the process configuration is not an
instance of OrderBasedProcessConfigurationpublic int deleteBusinessProcessMarkers(java.lang.String pBusinessProcessName, java.lang.String pBusinessProcessStage) throws BusinessProcessException
deleteBusinessProcessMarkers
in class BusinessProcessManager
BusinessProcessException
deleteOrderBasedBusinessProcessMarkers(java.lang.String, java.lang.String, java.lang.String, java.util.Map)
public int deleteOrderBasedBusinessProcessMarkers(java.lang.String pBusinessProcessName, java.lang.String pBusinessProcessStage, java.lang.String pData, java.util.Map pExtendedProperties) throws BusinessProcessException
Use the atg.markers.MarkerConstants.ANY_VALUE
token string as the
pBusinessProcessStage and pData parameters to delete all markers for the business process.
In contrast with removeMarkers
, this method
deletes ALL markers for the business process, and
not just those for a single owner.
pBusinessProcessName
- (required) the name of the business processpBusinessProcessStage
- the business process stage.pData
- marker datapExtendedProperites
- a map containg the property to value mappings
BusinessProcessException
OrderMarkerManager.deleteMarkers(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.util.Map)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |