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

Sets the value of a property More...

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

Public Attributes

OtxName property
 This attribute identifies the property to set. More...
 
OtxLink providerType
 This attribute identifies the external provider to execute the service on. The link shall point to the corresponding ServiceProviderSignature. More...
 
ServiceProviderTerm serviceProvider
 A property of this ServiceProvider will be set. More...
 
Term value
 This term represents the value that will be stored in the property. More...
 
- Public Attributes inherited from OpenTestSystem.Otx.Core.Actions.ActionRealisation
OtxLink validFor
 Validity of ActionRealisation. More...
 

Detailed Description

Sets the value of a property

The SetProperty activity sets the value of a property.

Exceptions
Exceptions.ProviderDisposedException
Core.Exceptions.TypeMismatchException
Checker rules
CheckerRule.ExternalServiceProvider_Chk001 - Correct target for service provider
CheckerRule.ExternalServiceProvider_Chk007 - Correct property attribute reference
CheckerRule.ExternalServiceProvider_Chk008 - Correct Property access
Syntax
ExternalServiceProvider.SetProperty(OtxLink providerType, OtxName property, ServiceProviderTerm serviceProvider, Term value);
OtxLink providerType
This attribute identifies the external provider to execute the service on. The link shall point to th...
Definition: ExternalServiceProvider.cs:1242
Term value
This term represents the value that will be stored in the property.
Definition: ExternalServiceProvider.cs:1232
ServiceProviderTerm serviceProvider
A property of this ServiceProvider will be set.
Definition: ExternalServiceProvider.cs:1222
OtxName property
This attribute identifies the property to set.
Definition: ExternalServiceProvider.cs:1252
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;
// Flow
ExternalServiceProvider.CreateProvider(ServiceProvider1, ServiceProviderSignature1, ConstructorSignature1, { ConstructorExternalInParameter1 = String1, ConstructorExternalInParameter2 = String1, ConstructorExternalInParameter3 = String3});
ExternalServiceProvider.SetProperty(ServiceProvider1, ServiceProviderSignature1, PropertySignature1, Integer1);
ExternalServiceProvider.DisposeProvider(ServiceProvider1);
}

Member Data Documentation

◆ property

OtxName OpenTestSystem.Otx.Extensions.ExternalServiceProvider.Actions.SetProperty.property

This attribute identifies the property to set.

◆ providerType

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

This attribute identifies the external provider to execute the service on. The link shall point to the corresponding ServiceProviderSignature.

◆ serviceProvider

ServiceProviderTerm OpenTestSystem.Otx.Extensions.ExternalServiceProvider.Actions.SetProperty.serviceProvider

A property of this ServiceProvider will be set.

◆ value

Term OpenTestSystem.Otx.Extensions.ExternalServiceProvider.Actions.SetProperty.value

This term represents the value that will be stored in the property.