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

Checks if a service is still running or not More...

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

Public Attributes

ServiceTerm serviceHandle
 With serviceHandle of a CreateProvider action, a check can be performed to determine if the service is still running. Specifies the service to test. 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 if a service is still running or not

The IsServiceRunning activity checks if a service is still running. This check can be performed while a synchronous or asynchronous service is running. For a synchronous ExcecuteService call this term can be called in parallel lane.

Syntax
BooleanTerm = ExternalServiceProvider.IsServiceRunning(ServiceTerm serviceHandle);
ServiceTerm serviceHandle
With serviceHandle of a CreateProvider action, a check can be performed to determine if the service i...
Definition: ExternalServiceProvider.cs:2305
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";
ExternalServiceProvider.Service Service1;
ByteField ByteField1 = &1234;
Integer Integer1 = 5678;
Float Float1 = 9.9;
// 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);
Boolean1 = ExternalServiceProvider.IsServiceRunning(Service1);
ExternalServiceProvider.DisposeProvider(ServiceProvider1);
}

Member Data Documentation

◆ serviceHandle

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

With serviceHandle of a CreateProvider action, a check can be performed to determine if the service is still running. Specifies the service to test.