Difference between revisions of "Services"

From AMTech WikiDocs
Jump to: navigation, search
Line 1: Line 1:
 
When an activity is published a new resource of type service is created, representing a Software as a Service.
 
When an activity is published a new resource of type service is created, representing a Software as a Service.
 
*This service can be public to all tenants (_ALL) or restricted to a subset of tenants, controlled by the property guesttenants. This property is defined on activity publication.  
 
*This service can be public to all tenants (_ALL) or restricted to a subset of tenants, controlled by the property guesttenants. This property is defined on activity publication.  
*This is the service that followers can subscribe to if they have access to it (based on the service guest tenants)
+
*These are the services that followers can subscribe to if they have access(based on the service guest tenants)
 
*Services can be grouped using tags to simplify the search  
 
*Services can be grouped using tags to simplify the search  
 
[[File:Service-status.png|thumbnail|left|Validate]]
 
[[File:Service-status.png|thumbnail|left|Validate]]
Line 7: Line 7:
 
**Types that produce observations must have instances
 
**Types that produce observations must have instances
 
**Types in observations production configuration must have Actors.
 
**Types in observations production configuration must have Actors.
**If the same entity type is configured to produce an observation type in more than one activity, then all the instances of that entity typemust have the disambiguation property activityForObsProduction set
+
**If the same entity type is configured to produce an observation type in more than one activity, then all the instances of that entity type must have the disambiguation property activityForObsProduction set
 
**Validate there is only one bridge instance in the tenant of the user performing the validation. It may have several bridge instances shared with him, but it must own only one
 
**Validate there is only one bridge instance in the tenant of the user performing the validation. It may have several bridge instances shared with him, but it must own only one
 
**No empty topics
 
**No empty topics
**All configurations for producing observations of type Observationresourcecrud must have the same topic
+
**All configurations for producing observations of type observationresourcecrud must have the same topic
***sendCommand topic (because m2mBridge listens to only websocket crud and commands must be send to one topic)
+
***sendCommand topic (m2mBridge listens to only websocket crud and commands must be send to same topic)

Revision as of 19:20, 27 April 2016

When an activity is published a new resource of type service is created, representing a Software as a Service.

  • This service can be public to all tenants (_ALL) or restricted to a subset of tenants, controlled by the property guesttenants. This property is defined on activity publication.
  • These are the services that followers can subscribe to if they have access(based on the service guest tenants)
  • Services can be grouped using tags to simplify the search
Validate
  • Check if the requirements specified by the activity configuration have been fulfilled.
    • Types that produce observations must have instances
    • Types in observations production configuration must have Actors.
    • If the same entity type is configured to produce an observation type in more than one activity, then all the instances of that entity type must have the disambiguation property activityForObsProduction set
    • Validate there is only one bridge instance in the tenant of the user performing the validation. It may have several bridge instances shared with him, but it must own only one
    • No empty topics
    • All configurations for producing observations of type observationresourcecrud must have the same topic
      • sendCommand topic (m2mBridge listens to only websocket crud and commands must be send to same topic)