Product documentation

04. NOTIFICATION

This routine sends a notification through MQTT using the following routing key `f.z.e.*.fav.notifENUW_SCOPE_ID.TARGET`.

{
  "name": "notification",
  "rootVenueScopeId": "999",
  "description": "notification",
  "routineType": "NOTIFICATION",
  "title": "title {{trackableId}}",
  "text": "text {{trackableId}}",
  "priority": 1,
  "targetList": ["VIEWER"],
  "executionOrder": 3,
  "durationInSeconds": 10,
  "conditionalExpression":"assignedAssetDto!=null"
}
FieldDescriptionPossible values
nameThe name of the routine.

Any text (has to be unique)
For example:
  • “Notification”
descriptionThe description of the routine.Any text.
For example:
  • “This routine sends a notification to the Viewer.”
rootVenueScopeIdDelivered by Favendo. This is the ID of the venue.A specific integer
routineTypeThe type of the routine.NOTIFICATION
bodyOnly needed when the routineType “HTTP_WEB_HOOK_ROUTINE” is selected.N.A.
requestUrlOnly needed when the routineType “HTTP_WEB_HOOK_ROUTINE” is selected.N.A.
httpMethodOnly needed when the routineType “HTTP_WEB_HOOK_ROUTINE” is selected.N.A.
httpHeadersOnly needed when the routineType “HTTP_WEB_HOOK_ROUTINE” is selected.N.A.
TitleOnly needed when the routineType “NOTIFICATION” is selected.Any text. This is the title of the notification, that the users will see.
TextOnly needed when the routineType “NOTIFICATION” is selected.Any text. This is the text of the notification, that the users will see.
PriorityOnly needed when the routineType “NOTIFICATION” is selected.Integer from 1 to 5.
5 being the highest priority.
targetListOnly needed when the routineType “NOTIFICATION” is selected.
  • [“VIEWER”]
  • [“TAGGER”]
  • [“VIEWER”,”TAGGER”]
This is where the notification will be shown to the users.
durationInSecondsOnly needed when the routineType “NOTIFICATION” is selected.Describes the duration in seconds of the notification. default value is 0
executionOrderDescribes the order of the routines executions in case a managed event has more than one routine assigned.Integer
conditionalExpressionCondition that needs to be met in order for the routine to be executed.
It is expressed in SpEL, and it always needs to return a boolean value.
The expression can also reference properties from the triggered event. 

If the field is empty, the routine is always executed (defaults to true).

For SpEL docs see https://docs.spring.io/spring-framework/docs/4.1.x/spring-framework-reference/html/expressions.html
Spring expression language.
See 04. Spring expression language for more information.