| FRAMES NO FRAMES | |||||||
| |||||||
| SUMMARY: IMPORT | CONSTANT | FIELD | ACTION | DETAIL: IMPORT | CONSTANT | FIELD | ACTION | ||||||
| Constant summary | |
|---|---|
string | CUMULOCITY_TIME_PATTERN := "yyyy-MM-dd'T'HH:mm:ss.SSSXXX"Static time contant defining cumulocity time pattern / iso 8601 datetime string. |
| Action summary | |
|---|---|
string | static ensureSMSLength(string text)Truncate a string to max length of 160 characters. |
string | static formatTime(float t)Format time into human readable form, as used by Cumulocity. |
integer | static generateReqId()Use this action for generating all reqIds for use with the Cumulocity API. |
boolean | static inMaintenanceMode(com.apama.cumulocity.ManagedObject device)Determine if ManagedObject is in maintenance mode. |
boolean | static isMicroserviceMode()Determine if the application is running as a cumulocity microservice. |
boolean | static isMultiTenantIsolation()Determine if the application is running in MULTI_TENANT isolation mode. |
string | static replacePlaceholders(string value, any e)Replace placeholders in string from an Event. |
| Constant detail |
|---|
string CUMULOCITY_TIME_PATTERN := "yyyy-MM-dd'T'HH:mm:ss.SSSXXX"Static time contant defining cumulocity time pattern / iso 8601 datetime string.
| Action detail |
|---|
string static ensureSMSLength(string text)Truncate a string to max length of 160 characters.
string static formatTime(float t)Format time into human readable form, as used by Cumulocity.
integer static generateReqId()Use this action for generating all reqIds for use with the Cumulocity API.
boolean static inMaintenanceMode(com.apama.cumulocity.ManagedObject device)Determine if ManagedObject is in maintenance mode.
boolean static isMicroserviceMode()Determine if the application is running as a cumulocity microservice.
boolean static isMultiTenantIsolation()Determine if the application is running in MULTI_TENANT isolation mode.
string static replacePlaceholders(string value, any e)Replace placeholders in string from an Event.
myMailText := Util.replacePlaceholders("The device #{source} with the serial number #{source.c8y_Hardware.serialNumber} created an event with the text #{text} at #{time}. The device is located at #{source.c8y_Address.street} in #{source.c8y_Address.city}.", alarm);
myMailText := myMailText.replaceAll("#{source.", "#{");
myMailText := Util.replacePlaceholders(myMailText, managedObject);| FRAMES NO FRAMES | |||||||
| |||||||
| SUMMARY: IMPORT | CONSTANT | FIELD | ACTION | DETAIL: IMPORT | CONSTANT | FIELD | ACTION | ||||||