public class ProfileHasMarker extends ItemHasMarker
This class was created for the following expression operator names, but could be extended for other operators. Additional operator names must be added to the configuration component's hasMarkerOperatorMap
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
static java.lang.String |
PROFILE_HAS_LASTMARKER
Scenario profileHasLastMarker condition name
|
static java.lang.String |
PROFILE_HAS_LASTMARKER_WITHKEY
Scenario profileHasLastMarkerWithKey condition name
|
static java.lang.String |
PROFILE_HAS_MARKER
Scenario profileHasMarker condition name
|
OP_HAS_LASTMARKER, OP_HAS_LASTMARKER_WITHKEY, OP_HAS_MARKER
mMarkerConfiguration
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 and Description |
---|
ProfileHasMarker() |
Modifier and Type | Method and Description |
---|---|
protected Query |
createMarkerQuery()
Creates a marker query object that qualifies markers based on the filter's
requirements.
|
Query |
createProcessInstanceQuery(QueryBuilder pSubjectQueryBuilder,
QueryBuilder pProcessInstanceQueryBuilder)
Creates a process instance query that qualifies the instances by the subject with a marker
that matches the filter's requirements
|
Query |
createSubjectQuery(QueryBuilder pSubjectQueryBuilder)
Creates a subject query that qualifies the subjects with a marker
that matches the filter's requirements.
|
protected RepositoryItem |
getItemToUse(ProcessExecutionContext pContext)
This method is called by the evaluate method
to provide the RepositoryItem that's used in the hasMarker
API calls.
|
evaluate, getHasMarkerOperatorToPerform, initialize
configure, getData, getDuplicationMode, getExtendedProperties, getKey, getMarkedItemType, getMarkerConfiguration, getMarkerItemType, getMarkerPropertyName, getRepositoryMarkerManager, getValue, setMarkerConfiguration
equals, getOperands, getOperator, operandsEquals, setOperands, setOperator, toString
andFilters, andFilters, assumeFalse, assumeTrue, getResourceBundle, getSubjectType, hashCode, implies, isCacheable, negate, orFilters, orFilters, setCacheable, test
public static java.lang.String CLASS_VERSION
public static final java.lang.String PROFILE_HAS_MARKER
public static final java.lang.String PROFILE_HAS_LASTMARKER
public static final java.lang.String PROFILE_HAS_LASTMARKER_WITHKEY
protected Query createMarkerQuery() throws RepositoryException, ProcessException
RepositoryException
ProcessException
public Query createProcessInstanceQuery(QueryBuilder pSubjectQueryBuilder, QueryBuilder pProcessInstanceQueryBuilder) throws RepositoryException, ProcessException
createProcessInstanceQuery
in class Filter
RepositoryException
- if there is a repository problem
constructing the queryProcessException
- if there is any other problem
creating the querypublic Query createSubjectQuery(QueryBuilder pSubjectQueryBuilder) throws RepositoryException, ProcessException
createSubjectQuery
in class Filter
RepositoryException
- if there is a repository problem
constructing the queryProcessException
- if there is any other problem
creating the queryprotected RepositoryItem getItemToUse(ProcessExecutionContext pContext)
getItemToUse
in class ItemHasMarker
pContext
- the scenario execution context