public final class TaskAbstractFilterCriteria extends Object implements TaskAbstractFetchCriteria
SAP API Classification: | Constructor and Description |
|---|
TaskAbstractFilterCriteria(TaskAbstractFilterProperty<T> property,
T... values)
One or more instances of this class might be instantiated with different properties and values to apply them as filter arguments to
the method
TaskInstanceManager.getTaskAbstracts(com.sap.bpm.api.QueryResultParameters, TaskAbstractFetchCriteria...). |
| Modifier and Type | Method and Description |
|---|---|
TaskAbstractFilterProperty<?> |
getProperty() |
Object[] |
getValues() |
public TaskAbstractFilterCriteria(TaskAbstractFilterProperty<T> property, T... values)
One or more instances of this class might be instantiated with different properties and values to apply them as filter arguments to
the method TaskInstanceManager.getTaskAbstracts(com.sap.bpm.api.QueryResultParameters, TaskAbstractFetchCriteria...).
| Property Type | Valid occurrence of values |
|---|---|
TaskAbstractFilterProperty.STATUS |
one to many values of type Status |
TaskAbstractFilterProperty.PRIORITY |
one to many values of type Priority |
TaskAbstractFilterProperty.INITIATOR |
one to many string literals representing the initiator of the task |
TaskAbstractFilterProperty.MODEL_ID |
one to many values of type URI representing a TaskModelId |
TaskAbstractFilterProperty.CREATED_FROM |
exactly one value of type Date |
TaskAbstractFilterProperty.CREATED_TO |
exactly one value of type Date |
TaskAbstractFilterProperty.COMPLETED_FROM |
exactly one value of type Date |
TaskAbstractFilterProperty.COMPLETED_TO |
exactly one value of type Date |
TaskAbstractFilterProperty.COMPLETION_DEADLINE_FROM |
exactly one value of type Date |
TaskAbstractFilterProperty.COMPLETION_DEADLINE_TO |
exactly one value of type Date |
TaskAbstractFilterProperty.INSTANCE_ID_GREATER |
exactly one value of type URI representing a TaskInstanceId |
In case the same property type is specified multiple times, the values are connected with 'OR' logic. Different property types are connected with 'AND' logic.
The following example queries for TaskAbstracts owned by the logged on user, filtered by the following logical condition:
(status == READY or status == RESERVED) and (modelId == model1 or modelId == model2)
TaskAbstractFetchCriteria statusCriteria = new TaskAbstractFilterCriteria(TaskAbstractFilterProperty.STATUS, Status.READY, Status.RESERVED);
TaskAbstractFetchCriteria model1Criteria = new TaskAbstractFilterCriteria(TaskAbstractFilterProperty.MODEL_ID, model1);
TaskAbstractFetchCriteria model2Criteria = new TaskAbstractFilterCriteria(TaskAbstractFilterProperty.MODEL_ID, model2);
List<TaskAbstract> taskAbstracts = taskInstanceManager.getTaskAbstracts(null, taskAbstractOwnerCriteria, statusCriteria, model1Criteria,
model2Criteria);
T - The datatype depending on the valuesproperty - A constant value from TaskAbstractFilterPropertyvalues - Depending on the property type as described in the table abovepublic final TaskAbstractFilterProperty<?> getProperty()
public final Object[] getValues()
| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] BPEM-FACADE
|
[sap.com] tc/bpem/facade/ear
|
-
|
BC-BMT-BPM-DSK
|
[sap.com] BPEM-FACADE
|
[sap.com] tc/bpem/facade/ear
|
api
|
BC-BMT-BPM-DSK
|
Copyright 2018 SAP AG Complete Copyright Notice