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

Fires an event if a service execution has finished More...

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

Public Attributes

ServiceTerm serviceHandle
 Specifies the service to check for events. 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

Fires an event if a service execution has finished

The ServiceExecutionFinishedEventSource is an EventSourceTerm which fires an event if a service execution has finished. This event is also fired if an asynchronous running service is stopped via the TerminateService action.

Syntax
EventSourceTerm = ExternalServiceProvider.ServiceExecutionFinishedEventSource(ServiceTerm serviceHandle);
ServiceTerm serviceHandle
Specifies the service to check for events.
Definition: ExternalServiceProvider.cs:3230
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

◆ serviceHandle

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

Specifies the service to check for events.