|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.process.filter.Filter atg.process.filter.ExpressionFilter atg.markers.scenario.MarkerExpressionFilter atg.markers.scenario.ItemHasMarker
public abstract class ItemHasMarker
This abstract class can be extended to create marker test expressions for any type of repository item.
Extensions must provide the repository item to used in the hasMarker API calls, and also map the new expressions operator names to the ones provided by this class.
The operator names provided by this class are:
hasMarker
hasLastMarker
hasLastMarkerWithKey
getItemToUse(atg.process.ProcessExecutionContext)
,
MarkerConfiguration.getHasMarkerOperatorMap()
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
static java.lang.String |
OP_HAS_LASTMARKER
|
static java.lang.String |
OP_HAS_LASTMARKER_WITHKEY
|
static java.lang.String |
OP_HAS_MARKER
Scenario operators handled by the evaluate methods |
Fields inherited from class atg.markers.scenario.MarkerExpressionFilter |
---|
mMarkerConfiguration |
Fields inherited from class atg.process.filter.Filter |
---|
FALSE, TRUE |
Constructor Summary | |
---|---|
ItemHasMarker()
|
Method Summary | |
---|---|
protected Filter |
evaluate(ProcessExecutionContext pContext)
Evaluates this filter in the given process execution context. |
protected java.lang.String |
getHasMarkerOperatorToPerform(ProcessExecutionContext pContext)
This method is called by the evaluate method to determine the operator name. |
protected abstract RepositoryItem |
getItemToUse(ProcessExecutionContext pContext)
This method is called by the evaluate method to provide the RepositoryItem that's used in the hasMarker API calls. |
void |
initialize(java.lang.String pOperator,
Expression[] pOperands)
called by Scenario Manager to initialize the expression |
Methods inherited from class atg.markers.scenario.MarkerExpressionFilter |
---|
configure, getData, getDuplicationMode, getExtendedProperties, getKey, getMarkedItemType, getMarkerConfiguration, getMarkerItemType, getMarkerPropertyName, getRepositoryMarkerManager, getValue, setMarkerConfiguration |
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 |
---|
public static java.lang.String CLASS_VERSION
public static final java.lang.String OP_HAS_MARKER
public static final java.lang.String OP_HAS_LASTMARKER
public static final java.lang.String OP_HAS_LASTMARKER_WITHKEY
Constructor Detail |
---|
public ItemHasMarker()
Method Detail |
---|
protected abstract RepositoryItem getItemToUse(ProcessExecutionContext pContext)
pContext
- the scenario execution context
protected java.lang.String getHasMarkerOperatorToPerform(ProcessExecutionContext pContext)
By default, this method uses the operator name returned by getOperator to lookup to the appropriate base operator name provided by ItemHasMarker.
The base operator names for ItemHasMarker are: hasMarker, hasLastMarker and hasLastMarkerWithKey
Because this class can be extended to implement any number of scenario hasMarker expressions, the new expression operator names must be mapped in the configuration component to one of the standard operators above.
MarkerConfiguration.getHasMarkerOperatorMap()
public void initialize(java.lang.String pOperator, Expression[] pOperands) throws ProcessException
initialize
in class MarkerExpressionFilter
pOperator
- the filter operator namespOperands
- the operands to the filter.
ProcessException
- if the operands argument is invalidprotected Filter evaluate(ProcessExecutionContext pContext) throws ProcessException
The possible return values of this method are as follows:
Filter.TRUE
- if the filter can be fully
evaluated, and is satisfied in the given context
Filter.FALSE
- if the filter can be fully
evaluated, and is not satisfied in the given context
evaluate
in class Filter
ProcessException
- if there is a problem evaluating the
filter (other than information missing from the context)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |