Annotation Type ThingworxSubscription
-
@Target(ANNOTATION_TYPE) @Retention(RUNTIME) @ThingworxExtensionApiAnnotation(since={6,6}) public @interface ThingworxSubscription
Defines a subscription that the entity wishes to handle. Subscriptions defined with this annotation can target standard events and property events, and may also specify a source entity. The source entity should be another entity that is part of the platform, the extension, or an entity in a dependent extension.- See Also:
Subscription
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description java.lang.String
eventName
Required parameter: the name of the event to subscribe to.java.lang.String
handler
Required parameter: the name of the service that should be invoked whenever the subscription receives an event.
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.String
description
Optional parameter: A short description for the service.boolean
enabled
Optional parameter: whether the subscription should listen for events.java.lang.String
name
Optional parameter: The name of the Subscription.java.lang.String
source
Optional parameter: the name of the entity to subscribe to for events.java.lang.String
sourceProperty
Optional parameter: the name of the property that this subscription should monitor.
-