You are viewing the documentation for Blueriq 14. Documentation for other versions is available in our documentation directory.
What does it do?
AQ_Aggregate_Count retrieves the number of found aggregates and stores this in an attribute.
Parameters
Parameter | Direction | Value | Description | Required |
---|---|---|---|---|
Aggregate type | Input | Module element Aggregate | Select the aggregate type to count. | True |
Target entity | Output | Entity | Select an entity in which you want to store the aggregate count. If this entity is a multiton, an instance is created for each time this service is invoked. If this entity is a singleton, the aggregate count is overwritten each time this service is invoked. | True |
Target attribute for aggregate count | Output | Attribute of target entity | Select an attribute of the target entity on which attribute you want to store the aggregate count. This attribute must be singlevalued. | True |
Only count for latest versions | Input | Checkbox, checked by default | Check when only latest versions of versioned aggregates are counted. | False |
Search criteria | Input | Standard and custom metadata fields | Specify the search criteria, based on standard and custom metadata fields. | True |
Search criteria
The search criteria are all triples that adhere to the pattern <metadata><operator><value>. The value can be single or multi, depending on the operator. See the list below.
Operator | Used with metadata of type | Value can be |
---|---|---|
Equals | All single-valued datatypes | Single value |
Not equals | All single-valued datatypes | Single value |
Less than | All single-valued datatypes | Single value |
Less than or equals | All single-valued datatypes | Single value |
Greater than | All single-valued datatypes | Single value |
Greater than or equals | All single-valued datatypes | Single value |
Like | String | Single value |
Not like | String | Single value |
In | All multivalued datatypes | Multivalued |
Not in | All multivalued datatypes | Multivalued |
Events
This service uses one event for an exception:
Unauthorized
: This exit is triggered when the user does not have one of the roles that is set on the aggregate definition.
Tracing
Counting aggregates is not traced, just like reading aggregates (using Service call type: AQ_Aggregate_Read).