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

Create an new instance of the related provider More...

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

Classes

class  ConstructorArguments
 Represents the list of arguments for a constructor. More...
 

Public Attributes

ConstructorArguments arguments
 This simple container element represents the list of arguments for a constructor More...
 
OtxName constructor
 This attribute identifies the constructor that shall be called. If this attribute is not given no constructor is called within the runtime environment More...
 
OtxLink providerType
 This attribute identifies the external provider. From this provider the constructor shall be called. The link shall point to the corresponding ServiceProviderSignature More...
 
ServiceProviderVariable serviceProvider
 Specifies a ServiceProvider declaration to hold the new instance of ServiceProvider More...
 
- Public Attributes inherited from OpenTestSystem.Otx.Core.Actions.ActionRealisation
OtxLink validFor
 Validity of ActionRealisation. More...
 

Detailed Description

Create an new instance of the related provider

The CreateProvider activity returns an instance of the related provider via calling the specified constructor. If a new instance is created, this depends on the underlying system.

Exceptions
Core.Exceptions.TypeMismatchException
Checker rules
CheckerRule.ExternalServiceProvider_Chk001 - Correct target for service provider
CheckerRule.ExternalServiceProvider_Chk002 - Correct CreateProvider constructor arguments
CheckerRule.ExternalServiceProvider_Chk004 - Correct CreateProvider constructor reference
CheckerRule.ExternalServiceProvider_Chk010 - Correct CreateProvider constructor attribute
Syntax
ExternalServiceProvider.CreateProvider(OtxName constructor, OtxLink providerType, ServiceProviderVariable serviceProvider, ConstructorArguments arguments);
OtxName constructor
This attribute identifies the constructor that shall be called. If this attribute is not given no con...
Definition: ExternalServiceProvider.cs:2017
OtxLink providerType
This attribute identifies the external provider. From this provider the constructor shall be called....
Definition: ExternalServiceProvider.cs:2027
ServiceProviderVariable serviceProvider
Specifies a ServiceProvider declaration to hold the new instance of ServiceProvider
Definition: ExternalServiceProvider.cs:1997
ConstructorArguments arguments
This simple container element represents the list of arguments for a constructor
Definition: ExternalServiceProvider.cs:2007
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";
// Flow
ExternalServiceProvider.CreateProvider(ServiceProvider1, ServiceProviderSignature1, ConstructorSignature1, { ConstructorExternalInParameter1 = String1, ConstructorExternalInParameter2 = String1, ConstructorExternalInParameter3 = String3});
ExternalServiceProvider.DisposeProvider(ServiceProvider1);
}

Member Data Documentation

◆ arguments

ConstructorArguments OpenTestSystem.Otx.Extensions.ExternalServiceProvider.Actions.CreateProvider.arguments

This simple container element represents the list of arguments for a constructor

◆ constructor

OtxName OpenTestSystem.Otx.Extensions.ExternalServiceProvider.Actions.CreateProvider.constructor

This attribute identifies the constructor that shall be called. If this attribute is not given no constructor is called within the runtime environment

◆ providerType

OtxLink OpenTestSystem.Otx.Extensions.ExternalServiceProvider.Actions.CreateProvider.providerType

This attribute identifies the external provider. From this provider the constructor shall be called. The link shall point to the corresponding ServiceProviderSignature

◆ serviceProvider

ServiceProviderVariable OpenTestSystem.Otx.Extensions.ExternalServiceProvider.Actions.CreateProvider.serviceProvider

Specifies a ServiceProvider declaration to hold the new instance of ServiceProvider