Interface DataStrategy<C>
- Type Parameters:
C
- the output type of onGet
public interface DataStrategy<C>
Service Provider Interface: this is not intended for external implementation
See DataStrategies for available implementers of this interface.
DataStrategy provides a strategy for conversion of data between internal and external forms.
Use one of the constants provided in autoscale for process execution.
Note: Only process models with autoscaling mode enabled are compatible with this interface.
-
Method Summary
Modifier and TypeMethodDescriptionConvert the sourceValue using this DataStrategy into an instance of class C.Convert the sourceValue of class C using this DataStrategy into an object suitable for putting into autoscale for process execution.parameter
(VariableReference variableReference, C data) Construct a Parameter, e.g., for Model.initiateAsynchronous.Construct a Parameter, e.g., for Model.initiateAsynchronous.
-
Method Details
-
parameter
Construct a Parameter, e.g., for Model.initiateAsynchronous. Note: Only process models with autoscaling mode enabled are compatible with this function.- Parameters:
namespace
-variableName
-data
-- Returns:
-
parameter
Construct a Parameter, e.g., for Model.initiateAsynchronous. Note: Only process models with autoscaling mode enabled are compatible with this function.- Parameters:
variableReference
-data
-- Returns:
-
onGet
Convert the sourceValue using this DataStrategy into an instance of class C. Note: Only process models with autoscaling mode enabled are compatible with this function.- Parameters:
sourceValue
- must be of a class that this DataStrategy implementation expects.- Returns:
- value representing sourceValue as an instance of class C.
-
onPut
Convert the sourceValue of class C using this DataStrategy into an object suitable for putting into autoscale for process execution. Note: Only process models with autoscaling mode enabled are compatible with this function.- Parameters:
sourceValue
-- Returns:
- value suitable for usage in autoscaling mode
-