OTX Reference  
OpenTestSystem.Otx.Extensions.ExternalServiceProvider.Terms.ServiceProviderEventSource Class Reference

An event source for all provider events More...

Inheritance diagram for OpenTestSystem.Otx.Extensions.ExternalServiceProvider.Terms.ServiceProviderEventSource:
Inheritance graph

Public Attributes

OtxName eventName
 This attribute identifies the name of the event that is used to select a specific event. The link shall point to the corresponding event in the EventSignature. More...
 
OtxLink providerType
 This attribute identifies the external provider. The link shall point to the corresponding ServiceProviderSignature. More...
 
ServiceProviderTerm serviceProvider
 The serviceProvider is a specific Instance of a ServiceProvider as a result of a ServiceProvider Term. More...
 
- Public Attributes inherited from OpenTestSystem.Otx.Core.Terms.Term
MetaData metaData
 Cardinality [0..1]
The MetaData type allows tools to store additional, mainly tool-specific data. More...
 

Detailed Description

An event source for all provider events

The ServiceProviderEventSource is an EventSourceTerm which is an event source for all provider events.

Depending on the usage of the term three different selections of events can be realised:

  • Only the mandatory providerType attribute is given. All ServiceProviderEvents of all service provider instances of a given providerType are returned.
  • The mandatory providerType attribute and the eventName attribute are given. The ServiceProviderEvents defined by eventName of all service provider instances of a given providerType are returned.
  • The mandatory providerType attribute the eventName attribute, and the serviceProvider term are given. The ServiceProviderEvents defined by eventName of a specific service provider instance of a given providerType are returned.
Checker rules
CheckerRule.ExternalServiceProvider_Chk001 - Correct target for service provider
CheckerRule.ExternalServiceProvider_Chk009 - Correct event attribute reference
CheckerRule.ExternalServiceProvider_Chk012 - Correct provider types
Syntax
EventSourceTerm = ExternalServiceProvider.ServiceProviderEventSource(OtxLink providerType, OtxName eventName = "", ServiceProviderTerm serviceProvider = NULL);
OtxName eventName
This attribute identifies the name of the event that is used to select a specific event....
Definition: ExternalServiceProvider.cs:3129
OtxLink providerType
This attribute identifies the external provider. The link shall point to the corresponding ServicePro...
Definition: ExternalServiceProvider.cs:3119
ServiceProviderTerm serviceProvider
The serviceProvider is a specific Instance of a ServiceProvider as a result of a ServiceProvider Term...
Definition: ExternalServiceProvider.cs:3109
Examples
package ExternalServiceProvider.ServiceProviderSignature BookLibrary
{
ExternalServiceProvider.ConstructorSignature BookLibrary1();
ExternalServiceProvider.ServiceSignature UserBorrowBooks(in String name = "", in String message = "");
ExternalServiceProvider.EventSignature BorrowBooks(String name = "", String message);
}
// Global Declarations
public procedure main()
{
// Local Declarations
ExternalServiceProvider.ServiceProvider ServiceProvider1;
String OutMessage;
ExternalServiceProvider.Service Service1;
EventHandling.EventSource EventSource1;
EventHandling.Event Event1;
Boolean IsExecutionFinished = false;
Boolean IsServiceProviderEvent = false;
// Flow
ExternalServiceProvider.CreateProvider(ServiceProvider1, BookLibrary, BookLibrary1, { });
parallel
{
lane
{
ExternalServiceProvider.ExecuteService(ServiceProvider1, BookLibrary, UserBorrowBooks, { name = "Computer hardware", message = OutMessage}, Service1, true);
}
lane
{
EventSource1 = ExternalServiceProvider.ServiceProviderEventSource(ServiceProvider1, BookLibrary, BorrowBooks);
EventHandling.WaitForEvent({ EventSource1}, Event1);
IsServiceProviderEvent = ExternalServiceProvider.IsServiceProviderEvent(Event1, BookLibrary);
}
}
ExternalServiceProvider.DisposeProvider(ServiceProvider1);
}

Member Data Documentation

◆ eventName

OtxName OpenTestSystem.Otx.Extensions.ExternalServiceProvider.Terms.ServiceProviderEventSource.eventName

This attribute identifies the name of the event that is used to select a specific event. The link shall point to the corresponding event in the EventSignature.

◆ providerType

OtxLink OpenTestSystem.Otx.Extensions.ExternalServiceProvider.Terms.ServiceProviderEventSource.providerType

This attribute identifies the external provider. The link shall point to the corresponding ServiceProviderSignature.

◆ serviceProvider

ServiceProviderTerm OpenTestSystem.Otx.Extensions.ExternalServiceProvider.Terms.ServiceProviderEventSource.serviceProvider

The serviceProvider is a specific Instance of a ServiceProvider as a result of a ServiceProvider Term.