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

Checks the event indicates the termination of a Service or not More...

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

Public Attributes

EventTerm _event
 Represents the Event whose type shall be tested. More...
 
ServiceTerm serviceHandle
 The events of this Service instance will be tested. 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

Checks the event indicates the termination of a Service or not

The IsServiceExecutionFinishedEvent activity to tests if the given event indicates the termination of a Service. Events that indicate termination of a Service are fired by a ServiceExecutionFinishedEventSource. ServiceExecutionFinishedEvents shall be fired at normal termination of service and also abnormal termination by the TerminateService action.

Syntax
BooleanTerm = ExternalServiceProvider.IsServiceExecutionFinishedEvent(EventTerm event, ServiceTerm serviceHandle);
ServiceTerm serviceHandle
The events of this Service instance will be tested.
Definition: ExternalServiceProvider.cs:2861
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;
// Flow
ExternalServiceProvider.CreateProvider(ServiceProvider1, BookLibrary, BookLibrary1, { });
ExternalServiceProvider.ExecuteService(ServiceProvider1, BookLibrary, UserBorrowBooks, { name = "Computer hardware", message = OutMessage}, Service1, true);
EventSource1 = ExternalServiceProvider.ServiceExecutionFinishedEventSource(Service1);
EventHandling.WaitForEvent({ EventSource1}, Event1);
IsExecutionFinished = ExternalServiceProvider.IsServiceExecutionFinishedEvent(Event1);
ExternalServiceProvider.DisposeProvider(ServiceProvider1);
}

Member Data Documentation

◆ _event

EventTerm OpenTestSystem.Otx.Extensions.ExternalServiceProvider.Terms.IsServiceExecutionFinishedEvent._event

Represents the Event whose type shall be tested.

◆ serviceHandle

ServiceTerm OpenTestSystem.Otx.Extensions.ExternalServiceProvider.Terms.IsServiceExecutionFinishedEvent.serviceHandle

The events of this Service instance will be tested.