OTX Reference  
OpenTestSystem.Otx.Extensions.ExternalServiceProvider.Actions.TerminateService Class Reference

The running service should be terminated if possible More...

Inheritance diagram for OpenTestSystem.Otx.Extensions.ExternalServiceProvider.Actions.TerminateService:
Inheritance graph

Public Attributes

BooleanVariable isTerminated
 If the service can be terminated the isTerminated returns true. If the service is not interruptible the action returns immediately with the isTerminated flag set to false. More...
 
ServiceTerm serviceHandle
 This term represents the handle to the service More...
 
- Public Attributes inherited from OpenTestSystem.Otx.Core.Actions.ActionRealisation
OtxLink validFor
 Validity of ActionRealisation. More...
 

Detailed Description

The running service should be terminated if possible

The TerminateService activity informs the runtime system, that the running service should be terminated if possible. If the service can be terminated, the action is blocking until the service is terminated. The isTerminated flag is set to true. If the service is not interruptible the action returns immediately with the isTerminated flag set to false.

Exceptions
Exceptions.ProviderDisposedException
Syntax
ExternalServiceProvider.TerminateService(ServiceTerm serviceHandle, BooleanVariable isTerminated);
ServiceTerm serviceHandle
This term represents the handle to the service
Definition: ExternalServiceProvider.cs:1101
BooleanVariable isTerminated
If the service can be terminated the isTerminated returns true. If the service is not interruptible t...
Definition: ExternalServiceProvider.cs:1111
Examples
// Signatures
package ExternalServiceProvider.ServiceProviderSignature ServiceProviderSignature1
{
ExternalServiceProvider.ConstructorSignature ConstructorSignature1(String ConstructorExternalInParameter1, String ConstructorExternalInParameter2, String ConstructorExternalInParameter3);
ExternalServiceProvider.EventSignature EventSignature1(String EventValueParameterDeclaration1);
ExternalServiceProvider.PropertySignature PropertySignature1(String PropertyValueDeclaration1) accessType WRITE-ONLY;
ExternalServiceProvider.ServiceSignature ServiceSignature1(in ByteField ExternalInParameterDeclaration1, ref Float ExternalInOutParameterDeclaration1, out Integer ExternalOutParameterDeclaration1) throws ExternalServiceProvider.ConfigurationException, ExternalServiceProvider.ExecuteException, ExternalServiceProvider.ProviderServiceException;
}
// Global Declarations
public procedure main()
{
// Local Declarations
ExternalServiceProvider.ServiceProvider ServiceProvider1;
String String1 = "Abc";
String String2 = "Def";
String String3 = "Ghi";
Integer Integer1 = 5678;
ExternalServiceProvider.Service Service1;
Boolean Boolean1 = false;
ByteField ByteField1;
Float Float1;
// Flow
ExternalServiceProvider.CreateProvider(ServiceProvider1, ServiceProviderSignature1, ConstructorSignature1, { ConstructorExternalInParameter1 = String1, ConstructorExternalInParameter2 = String1, ConstructorExternalInParameter3 = String3});
ExternalServiceProvider.ExecuteService(ServiceProvider1, ServiceProviderSignature1, ServiceSignature1, { ExternalInParameterDeclaration1 = ByteField1, ExternalInOutParameterDeclaration1 = Float1, ExternalOutParameterDeclaration1 = Integer1}, Service1, false);
ExternalServiceProvider.TerminateService(Service1, Boolean1);
ExternalServiceProvider.DisposeProvider(ServiceProvider1);
}

Member Data Documentation

◆ isTerminated

BooleanVariable OpenTestSystem.Otx.Extensions.ExternalServiceProvider.Actions.TerminateService.isTerminated

If the service can be terminated the isTerminated returns true. If the service is not interruptible the action returns immediately with the isTerminated flag set to false.

◆ serviceHandle

ServiceTerm OpenTestSystem.Otx.Extensions.ExternalServiceProvider.Actions.TerminateService.serviceHandle

This term represents the handle to the service