atg.markers.bp.scenario
Class MostRecentBusinessProcessStage

java.lang.Object
  extended by atg.process.filter.Filter
      extended by atg.process.filter.ExpressionFilter
          extended by atg.markers.scenario.MarkerExpressionFilter
              extended by atg.markers.bp.scenario.BusinessProcessExpressionFilter
                  extended by atg.markers.bp.scenario.HasBusinessProcessStage
                      extended by atg.markers.bp.scenario.MostRecentBusinessProcessStage
All Implemented Interfaces:
MarkerConstants

public class MostRecentBusinessProcessStage
extends HasBusinessProcessStage

This scenario action can be used to determine if the most recent marker for a business process has a particular stage.

For instance, you could use this action in a scenario to conditionally change behavior if the most recent stage within process x is stage y.


Field Summary
static java.lang.String CLASS_VERSION
          Class version string
 
Fields inherited from class atg.markers.scenario.MarkerExpressionFilter
mMarkerConfiguration
 
Fields inherited from class atg.process.filter.Filter
FALSE, TRUE
 
Fields inherited from interface atg.markers.MarkerConstants
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
 
Constructor Summary
MostRecentBusinessProcessStage()
           
 
Method Summary
protected  Filter evaluate(ProcessExecutionContext pContext)
          Called when evaluating the condition.
 
Methods inherited from class atg.markers.bp.scenario.BusinessProcessExpressionFilter
getBusinessProcessName, getBusinessProcessStage, setMarkerConfiguration
 
Methods inherited from class atg.markers.scenario.MarkerExpressionFilter
configure, getData, getDuplicationMode, getExtendedProperties, getKey, getMarkedItemType, getMarkerConfiguration, getMarkerItemType, getMarkerPropertyName, getRepositoryMarkerManager, getValue, initialize
 
Methods inherited from class atg.process.filter.ExpressionFilter
equals, getOperands, getOperator, operandsEquals, setOperands, setOperator, toString
 
Methods inherited from class atg.process.filter.Filter
andFilters, andFilters, assumeFalse, assumeTrue, createProcessInstanceQuery, createSubjectQuery, getResourceBundle, getSubjectType, hashCode, implies, isCacheable, negate, orFilters, orFilters, setCacheable, test
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static java.lang.String CLASS_VERSION
Class version string

Constructor Detail

MostRecentBusinessProcessStage

public MostRecentBusinessProcessStage()
Method Detail

evaluate

protected Filter evaluate(ProcessExecutionContext pContext)
                   throws ProcessException
Called when evaluating the condition.

This method calls the BusinessProcessManager to determine if the marker exists.

Overrides:
evaluate in class HasBusinessProcessStage
Throws:
ProcessException - if there is a problem evaluating the filter (other than information missing from the context)
See Also:
atg.markers.bp.BusinessProcessManager#matchLastBusinessProcessStage