Home Manual Reference Source
public class | source

Aggreg

Extends:

src/mapping/core.js~Service → Aggreg

User API for item aggregation

Users can push data and be notified of aggregated data. This service does not allow you to read the data. To achieve that kind of behavior, you could configure a callback to store the data.

Static Member Summary

Static Public Members
public static get

Get default deployment id associated to Aggreg service

Method Summary

Public Methods
public

push(objectPattern: {"items": *, "owner": *}): *

Pushes some data

Static Public Members

public static get DEFAULT_DEPLOYMENT_ID: string: string source

Get default deployment id associated to Aggreg service

Return:

string

Public Methods

public push(objectPattern: {"items": *, "owner": *}): * source

Pushes some data

Pushes the given data. All the items are processed according to the defined rules. At least one push for a given item is needed during a time period to trigger processing and calling of the corresponding callback verb/macro.

Params:

NameTypeAttributeDescription
objectPattern {"items": *, "owner": *}
  • default: {"items":null,"owner":null}

Return:

*